models

package
v1.69.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AclPermission

type AclPermission struct {

	/* 被授权的用户名 (Optional) */
	UserName string `json:"userName"`

	/* 资源类型(Topic 或 Group) (Optional) */
	ResourceType string `json:"resourceType"`

	/* 资源名 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 权限类型(DENY,PUB,SUB,PUB|SUB) (Optional) */
	Permission string `json:"permission"`
}

type AclUser

type AclUser struct {

	/* 用户名 (Optional) */
	UserName string `json:"userName"`

	/* 密码 (Optional) */
	Password string `json:"password"`

	/* 用户级别白名单 (Optional) */
	WhiteRemoteAddress string `json:"whiteRemoteAddress"`
}

type AdvancedConfig

type AdvancedConfig struct {

	/* 配置名称 (Optional) */
	ConfigName string `json:"configName"`

	/* 配置描述 (Optional) */
	ConfigDesc string `json:"configDesc"`

	/* 属性值 (Optional) */
	ConfigItems []ConfigItem `json:"configItems"`
}

type ArchSpecConfig

type ArchSpecConfig struct {

	/* cpu架构类型(x86/arm64) (Optional) */
	ArchType string `json:"archType"`

	/* 该架构是否对外售卖 (Optional) */
	OnSale bool `json:"onSale"`

	/* 指定架构下包含的节点的可选配置信息 (Optional) */
	NodeSpecConfig []NodeSpecConfig `json:"nodeSpecConfig"`
}

type Attribute

type Attribute struct {

	/* 属性key (Optional) */
	Key string `json:"key"`

	/* 属性value (Optional) */
	Value string `json:"value"`
}

type AzSpecConf2

type AzSpecConf2 struct {

	/* 可以选择创建的集群版本 (Optional) */
	Version []string `json:"version"`

	/* 描述指定az可选的 arch架构、节点类型、磁盘类型、节点规格 (Optional) */
	AzSpecConfig AzSpecConfig2 `json:"azSpecConfig"`
}

type AzSpecConfig2

type AzSpecConfig2 struct {

	/* az是否对外售卖 (Optional) */
	OnSale bool `json:"onSale"`

	/* 逻辑azId (Optional) */
	AzId string `json:"azId"`

	/* 指定az下包含的节点的可选配置信息 (Optional) */
	ArchSpecConfig []ArchSpecConfig `json:"archSpecConfig"`
}

type Broker

type Broker struct {

	/* 所属集群名称 (Optional) */
	Cluster string `json:"cluster"`

	/* broker名称 (Optional) */
	BrokerName string `json:"brokerName"`

	/* broker地址 (Optional) */
	BrokerAddr string `json:"brokerAddr"`

	/* broker编号 (Optional) */
	BrokerId string `json:"brokerId"`

	/* broker角色 (Optional) */
	BrokerRole string `json:"brokerRole"`

	/* 生产消息TPS (Optional) */
	ProMsgTps string `json:"proMsgTps"`

	/* 消费消息TPS (Optional) */
	CusMsgTps string `json:"cusMsgTps"`

	/* 今天生产总数 (Optional) */
	TodayProCount string `json:"todayProCount"`

	/* 今天消费总数 (Optional) */
	TodayCusCount string `json:"todayCusCount"`

	/* broker运行时状态 (Optional) */
	RuntimeStats []Attribute `json:"runtimeStats"`
}

type BrokerAddr

type BrokerAddr struct {

	/* broker的id (Optional) */
	BrokerId int `json:"brokerId"`

	/* broker地址 (Optional) */
	Addr string `json:"addr"`
}

type ConfigItem

type ConfigItem struct {

	/* 属性名称 (Optional) */
	AttributeName string `json:"attributeName"`

	/* 属性描述 (Optional) */
	AttributeDesc string `json:"attributeDesc"`
}

type Connection

type Connection struct {

	/* 客户端Id(客户端上报的) (Optional) */
	ClientId string `json:"clientId"`

	/* 客户端IP(客户端上报的) (Optional) */
	ClientIp string `json:"clientIp"`

	/* 公网IP (Optional) */
	ClientAddr string `json:"clientAddr"`

	/* 语言 (Optional) */
	Language string `json:"language"`

	/* 版本 (Optional) */
	VersionDesc string `json:"versionDesc"`
}

type ConstantStorageLimit

type ConstantStorageLimit struct {

	/* 本地盘大小 (Optional) */
	DiskGB int `json:"diskGB"`
}

type ConsumeQueueInfo

type ConsumeQueueInfo struct {

	/* broker组名称 (Optional) */
	BrokerName string `json:"brokerName"`

	/* 队列号 (Optional) */
	QueueId int `json:"queueId"`

	/* 消息存储最大位点 (Optional) */
	BrokerOffset int `json:"brokerOffset"`

	/* 当前拉取位点 (Optional) */
	PullOffset int `json:"pullOffset"`

	/* 消费ack位点 (Optional) */
	ConsumerOffset int `json:"consumerOffset"`

	/* 客户端信息 (Optional) */
	ClientInfo string `json:"clientInfo"`
}

type ConsumerGroupCheckResult

type ConsumerGroupCheckResult struct {

	/* consumerGroup 名称 (Optional) */
	ConsumerGroup string `json:"consumerGroup"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 是否开启死信 (Optional) */
	EnableDlq bool `json:"enableDlq"`

	/* 消费重试次数 (Optional) */
	RetryMaxTimes int `json:"retryMaxTimes"`

	/* 导入状态,exists:已存在; imported:已导入; error:格式错误; waiting:待导入 (Optional) */
	Status string `json:"status"`

	/* 错误详情 (Optional) */
	ErrorMsg string `json:"errorMsg"`
}

type ConsumerGroupInfo

type ConsumerGroupInfo struct {

	/* 消费组名称 (Optional) */
	ConsumerGroup string `json:"consumerGroup"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 描述 (Optional) */
	Description string `json:"description"`
}

type ConsumerGroupStatus

type ConsumerGroupStatus struct {

	/* 消费组名称 (Optional) */
	Group string `json:"group"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 消费组是否开启死信队列 (Optional) */
	EnableDlq bool `json:"enableDlq"`

	/* 消费者消费失败最大重试次数 (Optional) */
	RetryMaxTimes int `json:"retryMaxTimes"`

	/* 消费者是否在线 (Optional) */
	Online bool `json:"online"`

	/* 消费者在线个数 (Optional) */
	Count int `json:"count"`

	/* 消费模式(集群/广播/null,如果返回null前端显示未知) (Optional) */
	MessageModel string `json:"messageModel"`

	/* 消费组总积压数量 (Optional) */
	DiffTotol int `json:"diffTotol"`

	/* 是否开启消费 (Optional) */
	EnableConsume bool `json:"enableConsume"`
}

type ConsumerInfoDetail

type ConsumerInfoDetail struct {

	/* 消费者客户端地址 (Optional) */
	ConsumerAddress string `json:"consumerAddress"`

	/* 消费开始时间 (Optional) */
	ConsumeBeginTime string `json:"consumeBeginTime"`

	/* 消费结束时间 (Optional) */
	ConsumeEndTime string `json:"consumeEndTime"`

	/* 消费耗时 (Optional) */
	CostTime int `json:"costTime"`

	/* 重试次数 (Optional) */
	RetryTimes int `json:"retryTimes"`

	/* 消费状态 (Optional) */
	ConsumerStatus string `json:"consumerStatus"`
}

type ConsumerSubTopics

type ConsumerSubTopics struct {

	/* 订阅的topic名称 (Optional) */
	Topic string `json:"topic"`

	/* 订阅规则 (Optional) */
	SubscriptionRule string `json:"subscriptionRule"`
}

type DiffItem

type DiffItem struct {

	/* 变更项 (Optional) */
	Name string `json:"name"`

	/* 变更值 (Optional) */
	Value string `json:"value"`
}

type DlqMessage

type DlqMessage struct {

	/* 客户端生成的消息id(消费失败的msgId,前端展示这个) (Optional) */
	MsgId string `json:"msgId"`

	/* topic名称(原来topic的名称) (Optional) */
	Topic string `json:"topic"`

	/* 消息tag (Optional) */
	Tags string `json:"tags"`

	/* 消息key (Optional) */
	Key string `json:"key"`

	/* 消息的存储时间 (Optional) */
	StoreTime string `json:"storeTime"`

	/* 消息的产生时间 (Optional) */
	BornTime string `json:"bornTime"`

	/* 总消费次数 (Optional) */
	ReconsumeTimes int `json:"reconsumeTimes"`

	/* 原消息offsetId (Optional) */
	OriginalMsgId string `json:"originalMsgId"`
}

type EndpointEntry

type EndpointEntry struct {

	/* 协议 (Optional) */
	Protocol string `json:"protocol"`

	/* 地址 (Optional) */
	Address string `json:"address"`
}

type ExternalEndpoint

type ExternalEndpoint struct {

	/* 外部访问地址 (Optional) */
	External []EndpointEntry `json:"external"`

	/* 内部访问地址 (Optional) */
	Internal []EndpointEntry `json:"internal"`

	/* 公网访问地址 (Optional) */
	PublicNetwork []EndpointEntry `json:"publicNetwork"`
}

type FipExposure

type FipExposure struct {

	/* 是否开启floatingIp暴露 (Optional) */
	EnableFipExposure bool `json:"enableFipExposure"`

	/* 带宽 (Optional) */
	BandwidthMbps int `json:"bandwidthMbps"`
}

type FlavorConfig

type FlavorConfig struct {

	/* 指定规格是否售卖 (Optional) */
	OnSale bool `json:"onSale"`

	/* 规格代码 (Optional) */
	InstanceClassCode string `json:"instanceClassCode"`

	/* 指定规格表示的cpu核数 (Optional) */
	Cpu int `json:"cpu"`

	/* 指定规格表示的内存 (Optional) */
	MemoryGB int `json:"memoryGB"`

	/* 存储配置(是不是云盘、本地盘的大小、云盘的最小值、最大值、默认值、步长) (Optional) */
	StorageLimit StorageLimit `json:"storageLimit"`

	/* 节点个数配置(节点个数最小值、最大值、默认值、步长) (Optional) */
	NodeCountLimit NodeCountLimit `json:"nodeCountLimit"`

	/* 副本组个数配置(副本组个数最小值、最大值、默认值、步长) (Optional) */
	ReplicaPeGroupLimit ReplicaPeGroupLimit `json:"replicaPeGroupLimit"`
}

type FlexibleStorageLimit

type FlexibleStorageLimit struct {

	/* 云盘最小值 (Optional) */
	MinStorage int `json:"minStorage"`

	/* 云盘最大值 (Optional) */
	MaxStorage int `json:"maxStorage"`

	/* 云盘默认值 (Optional) */
	DefaultStorage int `json:"defaultStorage"`

	/* 云盘步长 (Optional) */
	StepStorage int `json:"stepStorage"`
}

type Instance

type Instance struct {

	/* 实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 实例名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* rocketmq实例版本 (Optional) */
	InstanceVersion string `json:"instanceVersion"`

	/* 实例状态,running:运行,error:错误,creating:创建中,changing:变配,stop:停止 (Optional) */
	InstanceStatus string `json:"instanceStatus"`

	/* 创建时间,遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */
	CreateTime string `json:"createTime"`

	/* 所属VPC的ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 所属子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* azId (Optional) */
	AzId []string `json:"azId"`

	/* 集群规格信息 (Optional) */
	InstanceClass []InstanceClass `json:"instanceClass"`

	/* 计费信息 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* Tag信息 (Optional) */
	Tags []resourcetag.Tag `json:"tags"`

	/* 扩展参数 (Optional) */
	Extension RespExtension `json:"extension"`
}

type InstanceClass

type InstanceClass struct {

	/* 角色 (Optional) */
	Role string `json:"role"`

	/* 节点规格代码 (Optional) */
	NodeClassCode string `json:"nodeClassCode"`

	/* 节点cpu核数 (Optional) */
	NodeCpu int `json:"nodeCpu"`

	/* 节点内存单位GB (Optional) */
	NodeMemoryGB int `json:"nodeMemoryGB"`

	/* 节点个数 (Optional) */
	NodeCount int `json:"nodeCount"`

	/* 磁盘类型 (Optional) */
	NodeDiskType string `json:"nodeDiskType"`

	/* 单节点磁盘大小单位GB (Optional) */
	NodeDiskGB int `json:"nodeDiskGB"`

	/* 副本数 (Optional) */
	ReplicaPerGroup int `json:"replicaPerGroup"`
}

type InstanceClassSpec

type InstanceClassSpec struct {

	/* 节点角色 [broker] (Optional) */
	Role string `json:"role"`

	/* 节点规格代码 (Optional) */
	NodeClassCode string `json:"nodeClassCode"`

	/* 节点个数 (Optional) */
	NodeCount int `json:"nodeCount"`

	/* 磁盘类型规格代码 (Optional) */
	NodeDiskType string `json:"nodeDiskType"`

	/* 单节点磁盘大小单位GB (Optional) */
	NodeDiskGB int `json:"nodeDiskGB"`

	/* 副本数 (Optional) */
	ReplicaPerGroup int `json:"replicaPerGroup"`
}

type InstanceName

type InstanceName struct {

	/* 实例ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 实例名称 (Optional) */
	ResourceName string `json:"resourceName"`
}

type InstanceSpec

type InstanceSpec struct {

	/* 私有网络vpcId  */
	VpcId string `json:"vpcId"`

	/* 子网subnetId  */
	SubnetId string `json:"subnetId"`

	/* rocketmq版本,[5.1.3]  */
	InstanceVersion string `json:"instanceVersion"`

	/* rocketmq集群名称,不可为空,只支持大小写字母、数字、英文下划线或者中划线,以字母开头且不能超过32位  */
	InstanceName string `json:"instanceName"`

	/* 可用区  */
	AzId []string `json:"azId"`

	/* 集群规格配置  */
	InstanceClassSpec []InstanceClassSpec `json:"instanceClassSpec"`

	/* 扩展配置 (Optional) */
	Extension ReqExtension `json:"extension"`

	/* 支持的cpu架构类型, 创建时选择,不选默认创建x86架构的实例 (Optional) */
	CpuArch string `json:"cpuArch"`

	/* 用于标识资源分类的Tag键值对 (Optional) */
	OpsTags []Tag `json:"opsTags"`

	/* 用于标识资源分类的Tag键值对 (Optional) */
	UserTags []Tag `json:"userTags"`
}

type Message

type Message struct {

	/* 消息id (Optional) */
	MsgId string `json:"msgId"`

	/* topic名称 (Optional) */
	Topic string `json:"topic"`

	/* 消息体 (Optional) */
	MessageBody string `json:"messageBody"`

	/* 消息tag (Optional) */
	Tags string `json:"tags"`

	/* 消息key (Optional) */
	Key string `json:"key"`

	/* 消息的存储时间 (Optional) */
	StoreTime string `json:"storeTime"`

	/* 消息的生产时间 (Optional) */
	BornTime string `json:"bornTime"`
}

type NodeCountLimit

type NodeCountLimit struct {

	/* 节点个数最大值 (Optional) */
	AvailableCount int `json:"availableCount"`

	/* 节点个数最小值 (Optional) */
	MinCount int `json:"minCount"`

	/* 节点个数默认值 (Optional) */
	DefaultCount int `json:"defaultCount"`

	/* 节点个数步长 (Optional) */
	StepCount int `json:"stepCount"`
}

type NodeSpecConfig

type NodeSpecConfig struct {

	/* 节点类型(data) (Optional) */
	NodeType string `json:"nodeType"`

	/* 指定节点可选的磁盘类型 (Optional) */
	StorageType []string `json:"storageType"`

	/* 指定节点类型下的各种磁盘配置详情 (Optional) */
	StorageConfig []StorageConfig `json:"storageConfig"`
}

type ProduceInfo

type ProduceInfo struct {

	/* 生产者地址 (Optional) */
	ProduceAddress string `json:"produceAddress"`

	/* 发送开始时间 (Optional) */
	SendBeginTime string `json:"sendBeginTime"`

	/* 发送结束时间 (Optional) */
	SendEndTime string `json:"sendEndTime"`

	/* 发送耗时(millionSecond) (Optional) */
	CostTime int `json:"costTime"`

	/* 发送状态[success,failed,unknown] (Optional) */
	MessageSendStatus string `json:"messageSendStatus"`

	/* 发送重试次数 (Optional) */
	RetryTimes int `json:"retryTimes"`

	/* 消息类型 (Optional) */
	MessageType string `json:"messageType"`
}

type PublicExposure

type PublicExposure struct {

	/* 是否开启公网暴露 (Optional) */
	EnablePublicExposure bool `json:"enablePublicExposure"`

	/* 公网带宽 (Optional) */
	BandwidthMbps int `json:"bandwidthMbps"`
}

type RegionSpecConfig2

type RegionSpecConfig2 struct {

	/* 可选择的rocketmq版本 (Optional) */
	Version []string `json:"version"`

	/* 每个az下可选 arch架构、节点类型、磁盘类型、节点规格 (Optional) */
	AzSpecConfig []AzSpecConfig2 `json:"azSpecConfig"`
}

type ReplicaPeGroupLimit

type ReplicaPeGroupLimit struct {

	/* 副本个数最大值 (Optional) */
	AvailableCount int `json:"availableCount"`

	/* 副本个数最小值 (Optional) */
	MinCount int `json:"minCount"`

	/* 副本个数默认值 (Optional) */
	DefaultCount int `json:"defaultCount"`

	/* 副本个数步长 (Optional) */
	StepCount int `json:"stepCount"`
}

type ReqExtension

type ReqExtension struct {

	/* 服务暴露 (Optional) */
	ServiceExposure ServiceExposure `json:"serviceExposure"`

	/* 部署模式,Cluster或Local (Optional) */
	DeployMode string `json:"deployMode"`

	/* 高级配置 (Optional) */
	AdvancedConfigs interface{} `json:"advancedConfigs"`

	/* ACL模式, PLAIN 或 NONE (Optional) */
	AclMode string `json:"aclMode"`
}

type ResendDlqResults

type ResendDlqResults struct {

	/* 消息id (Optional) */
	MsgId string `json:"msgId"`

	/* 发送结果 (Optional) */
	SendStatus string `json:"sendStatus"`
}

type RespExtension

type RespExtension struct {

	/* 外部访问地址 (Optional) */
	Endpoints ExternalEndpoint `json:"endpoints"`

	/* 服务暴露 (Optional) */
	ServiceExposure ServiceExposure `json:"serviceExposure"`

	/* 公网访问 (Optional) */
	PublicExposure PublicExposure `json:"publicExposure"`

	/* 公网访问 (Optional) */
	FipExposure FipExposure `json:"fipExposure"`

	/* rocketmq实例管理地址 (Optional) */
	WebUI string `json:"webUI"`

	/* rocketmq部署模式 (Optional) */
	DeployMode string `json:"deployMode"`

	/* ACL模式, PLAIN 或 NONE (Optional) */
	AclMode string `json:"aclMode"`

	/* 当前实例是否支持acl功能 (Optional) */
	SupportAcl bool `json:"supportAcl"`
}

type ResultMap

type ResultMap struct {

	/* 待导入数量 (Optional) */
	Waiting int `json:"waiting"`

	/* 格式错误数量 (Optional) */
	Error int `json:"error"`

	/* 已存在数量 (Optional) */
	Exists int `json:"exists"`

	/* 已导入数量 (Optional) */
	Imported int `json:"imported"`

	/* 总数 (Optional) */
	Total int `json:"total"`
}

type ServiceExposure

type ServiceExposure struct {

	/* 是否开启服务暴露 (Optional) */
	Enabled bool `json:"enabled"`

	/* 外部访问方式,支持的值为HybridExpose (Optional) */
	ServiceType string `json:"serviceType"`
}

type Step

type Step struct {

	/* 步骤编号 (Optional) */
	StepSeqId int `json:"stepSeqId"`

	/* 步骤名称 (Optional) */
	StepName string `json:"stepName"`

	/* 步骤开始执行时间 (Optional) */
	StepStartTime string `json:"stepStartTime"`

	/* 步骤结束执行时间 (Optional) */
	StepEndTime string `json:"stepEndTime"`

	/* 步骤状态 (Optional) */
	StepStatus string `json:"stepStatus"`

	/* 步骤详细信息。主要是步骤失败, 需要展示失败原因。 (Optional) */
	StepDetailInfo string `json:"stepDetailInfo"`
}

type StorageConfig

type StorageConfig struct {

	/* 指定磁盘类型是否售卖 (Optional) */
	OnSale bool `json:"onSale"`

	/* 磁盘类型(zbs/local_ssd/ssd.gp1/hdd.std1) (Optional) */
	StorageType string `json:"storageType"`

	/* 指定磁盘类型下的各种计算规格详情 (Optional) */
	FlavorConfig []FlavorConfig `json:"flavorConfig"`
}

type StorageLimit

type StorageLimit struct {

	/* 是不是云盘 (Optional) */
	StorageScale bool `json:"storageScale"`

	/* 本地盘限制 (Optional) */
	ConstantStorageLimit ConstantStorageLimit `json:"constantStorageLimit"`

	/* 云盘限制 (Optional) */
	FlexibleStorageLimit FlexibleStorageLimit `json:"flexibleStorageLimit"`
}

type SubTopic

type SubTopic struct {

	/* topic名称 (Optional) */
	Topic string `json:"topic"`

	/* 订阅规则 (Optional) */
	SubscriptionRule string `json:"subscriptionRule"`
}

type SubscriptionByConsumer

type SubscriptionByConsumer struct {

	/* 客户端IP(客户端上报的) (Optional) */
	ClientIp []string `json:"clientIp"`

	/* 客户端Id(客户端上报的) (Optional) */
	ClientId []string `json:"clientId"`

	/* 订阅列表 (Optional) */
	Subscription []SubTopic `json:"subscription"`
}

type SupportCrossAzNumber

type SupportCrossAzNumber struct {

	/* 是不是支持跨2个AZ (Optional) */
	IsSupportCross2Azs bool `json:"isSupportCross2Azs"`

	/* 是不是支持跨3个AZ (Optional) */
	IsSupportCross3Azs bool `json:"isSupportCross3Azs"`
}

type Tag

type Tag struct {

	/* 用于标识资源分类的Tag键 (Optional) */
	Key string `json:"key"`

	/* 用于标识资源分类的Tag值 (Optional) */
	Value string `json:"value"`
}

type TaskBasicInfo

type TaskBasicInfo struct {

	/* 任务开始执行时间 (Optional) */
	TaskStartTime string `json:"taskStartTime"`

	/* 任务结束执行时间 (Optional) */
	TaskEndTime string `json:"taskEndTime"`

	/* 任务执行人(主账户) (Optional) */
	User string `json:"user"`

	/* 任务执行人(子用户) (Optional) */
	SubUser string `json:"subUser"`

	/* 任务的执行状态
	init - 初始化。代表任务刚初始化, 待调度运行。中间态, 允许中断
	executing - 进行中。 代表任务被调度执行。 中间态, 允许中断
	succ - 已完成。 终止态, 任务运行完成
	fail - 变更中断。 终止态
	error - 失败。 中间态, 允许重试
	 (Optional) */
	TaskStatus string `json:"taskStatus"`
}

type TaskDetail

type TaskDetail struct {

	/* 任务基本信息 (Optional) */
	TaskBasicInfo TaskBasicInfo `json:"taskBasicInfo"`

	/* 变更信息 (Optional) */
	TaskModifyInfo TaskModifyInfo `json:"taskModifyInfo"`

	/* 一个任务是有多个步骤组成, 这里展示步骤列表 (Optional) */
	Steps []Step `json:"steps"`
}

type TaskListItem

type TaskListItem struct {

	/* 任务ID (Optional) */
	TaskId int `json:"taskId"`

	/* 任务的开始时间(包括变配, 创建, 重启等任务), 时间格式 2022-07-04T09:55:20Z (Optional) */
	TaskStartTime string `json:"taskStartTime"`

	/* 任务类型(包括但不限于创建、变配、重启 等任务), 用于前端展示使用 (Optional) */
	TaskType string `json:"taskType"`

	/* 任务类型, 是数字枚举类型, 用于查询过滤条件 (Optional) */
	TaskOpType int `json:"taskOpType"`

	/* 任务执行人(主账户) (Optional) */
	User string `json:"user"`

	/* 任务执行人(子用户) (Optional) */
	SubUser string `json:"subUser"`

	/* 任务的执行状态
	init - 初始化, 代表任务刚初始化, 待调度运行。中间态, 允许中断
	executing - 执行中, 代表任务被调度执行。 中间态, 允许中断
	succ - 执行成功。 终止态, 任务运行完成
	fail - 执行失败。 终止态
	error - 执行出错。 中间态, 允许重试
	 (Optional) */
	TaskStatus string `json:"taskStatus"`

	/* 0-100 正整数,任务进度条 (Optional) */
	TaskProgress int `json:"taskProgress"`

	/* 任务的持续运行时间,单位为s(秒);如果任务成功则返回0 (Optional) */
	TaskTimeConsuming int `json:"taskTimeConsuming"`

	/* 标志任务的持续运行时间(taskTimeConsuming)是否还会继续增加。 (Optional) */
	IsTaskTimeConsumeContinueIncrease bool `json:"isTaskTimeConsumeContinueIncrease"`

	/* taskStatus==error时, 展示错误信息 (Optional) */
	TaskErrorInfo string `json:"taskErrorInfo"`

	/* 任务的结束时间(包括变配、创建、重启等任务),时间格式 2022-07-04T09:55:20Z (Optional) */
	TaskEndTime string `json:"taskEndTime"`

	/* 任务是否可以中断, 任务状态从 executing => fail, error => fail, init => fail (Optional) */
	CanInterruptTask bool `json:"canInterruptTask"`

	/* 任务是否可以重试, 任务状态从 error => executing (Optional) */
	CanRetryTask bool `json:"canRetryTask"`

	/* 任务关联的实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 地域 (Optional) */
	RegionId string `json:"regionId"`
}

type TaskModifyInfo

type TaskModifyInfo struct {

	/* 任务类型 (Optional) */
	TaskType string `json:"taskType"`

	/* 任务变更前后对比信息 (Optional) */
	ModifyDiffs interface{} `json:"modifyDiffs"`
}

type TaskTypeListItem

type TaskTypeListItem struct {

	/* 任务类型英文名称 (Optional) */
	TaskTypeEnglishName string `json:"taskTypeEnglishName"`

	/* 任务类型中文名称 (Optional) */
	TaskTypeChineseName string `json:"taskTypeChineseName"`
}

type Topic

type Topic struct {

	/* topic名称 (Optional) */
	Topic string `json:"topic"`

	/* 消息类型 (Optional) */
	TopicType string `json:"topicType"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 分区数 (Optional) */
	QueueNums int `json:"queueNums"`
}

type TopicBrokerData

type TopicBrokerData struct {

	/* cluster名称 (Optional) */
	Cluster string `json:"cluster"`

	/* broker名称 (Optional) */
	BrokerName string `json:"brokerName"`

	/* broker地址 (Optional) */
	BrokerAddrs interface{} `json:"brokerAddrs"`
}

type TopicCheckResult

type TopicCheckResult struct {

	/* topic 名称 (Optional) */
	Topic string `json:"topic"`

	/* topic 类型 (Optional) */
	TopicType string `json:"topicType"`

	/* topic 描述 (Optional) */
	Description string `json:"description"`

	/* 导入状态。 exists:已存在; error:格式错误; waiting:待导入; imported:已导入 (Optional) */
	Status string `json:"status"`

	/* 错误详情 (Optional) */
	ErrorMsg string `json:"errorMsg"`
}

type TopicConsumersInfo

type TopicConsumersInfo struct {

	/* topic名称 (Optional) */
	Topic string `json:"topic"`

	/* 消费组名称 (Optional) */
	ConsumerGroup string `json:"consumerGroup"`

	/* 总积压数 (Optional) */
	DiffTotal int `json:"diffTotal"`

	/* 是否在线 (Optional) */
	Online bool `json:"online"`

	/* 消费队列列表详情 (Optional) */
	QueueStatInfoList []ConsumeQueueInfo `json:"queueStatInfoList"`
}

type TopicQueueData

type TopicQueueData struct {

	/* broker名称 (Optional) */
	BrokerName string `json:"brokerName"`

	/* 写队列数量 (Optional) */
	WriteQueueNums int `json:"writeQueueNums"`

	/* 读队列数量 (Optional) */
	ReadQueueNums int `json:"readQueueNums"`

	/* 权限 (Optional) */
	Perm int `json:"perm"`
}

type TopicRoute

type TopicRoute struct {

	/* topic路由的queue列表 (Optional) */
	QueueDatas []TopicQueueData `json:"queueDatas"`

	/* topic路由的broker组列表 (Optional) */
	BrokerDatas []TopicBrokerData `json:"brokerDatas"`
}

type TopicSubscription

type TopicSubscription struct {

	/* 订阅组名称 (Optional) */
	ConsumerGroup string `json:"consumerGroup"`

	/* 客户端是否在线 (Optional) */
	Online bool `json:"online"`

	/* 消费模式 (Optional) */
	MessageModel string `json:"messageModel"`

	/* 订阅规则 (Optional) */
	SubscriptionRule string `json:"subscriptionRule"`
}

type UserPermission

type UserPermission struct {

	/* 被授权给的用户Id (Optional) */
	UserId string `json:"userId"`

	/* 资源种类 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 权限类型,topic或consumerGroup (Optional) */
	Permission string `json:"permission"`
}

type VerifyConsumeResult

type VerifyConsumeResult struct {

	/* 消费验证,客户端消费的结果 (Optional) */
	ConsumeResult string `json:"consumeResult"`

	/* 消费花费时间 (Optional) */
	SpentTimeMills int `json:"spentTimeMills"`

	/*  (Optional) */
	AutoCommit bool `json:"autoCommit"`

	/*  (Optional) */
	Order bool `json:"order"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL