models

package
v1.67.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 9 modules, 8 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 Account

type Account struct {

	/* 账号名 (Optional) */
	AccountName string `json:"accountName"`

	/* 权限 (Optional) */
	Privileges string `json:"privileges"`

	/* 账号状态 (Optional) */
	AccountStatus string `json:"accountStatus"`

	/* 账号创建时间 (Optional) */
	CreateTime int `json:"createTime"`
}

type AuditLog

type AuditLog struct {

	/* 源IP (Optional) */
	Ip string `json:"ip"`

	/* 初始请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 节点名称 (Optional) */
	SegmentName string `json:"segmentName"`

	/* SQL语句 (Optional) */
	Sql string `json:"sql"`

	/* accountName (Optional) */
	AccountName string `json:"accountName"`

	/* SQL开始执行时间 (Optional) */
	StartTime string `json:"startTime"`
}

type Az

type Az struct {

	/* az名称 (Optional) */
	AzId string `json:"azId"`

	/* 1正常0售罄 (Optional) */
	AzStatus int `json:"azStatus"`

	/*  (Optional) */
	OrderableStorageTypes []Disk `json:"orderableStorageTypes"`
}

type ChSpec

type ChSpec struct {

	/* 规格代码 (Optional) */
	Flavors []Flavor `json:"flavors"`

	/* 支持的最大分片数 (Optional) */
	PartitionMaxNum int `json:"partitionMaxNum"`

	/* 支持的最大副本数 (Optional) */
	ReplicaMaxNum int `json:"replicaMaxNum"`
}

type ClickhouseInstanceAttributes

type ClickhouseInstanceAttributes struct {

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

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

	/* 实例引擎版本 (Optional) */
	EngineVersion string `json:"engineVersion"`

	/* 实例副本数 (Optional) */
	ReplicaNum int `json:"replicaNum"`

	/* 实例分片数 (Optional) */
	ShardNum int `json:"shardNum"`

	/* 规格 (Optional) */
	ChNodeClass string `json:"chNodeClass"`

	/* 存储类型 (Optional) */
	ChNodeStorageType string `json:"chNodeStorageType"`

	/* 节点存储空间 (Optional) */
	ChNodeStorageGB int `json:"chNodeStorageGB"`

	/* CPU核数 (Optional) */
	ChNodeCPU int `json:"chNodeCPU"`

	/* 内存单位GB (Optional) */
	ChNodeMemoryGB int `json:"chNodeMemoryGB"`

	/* zk节点规格 (Optional) */
	ZkNodeClass string `json:"zkNodeClass"`

	/* zk节点数目 (Optional) */
	ZkNodeNum int `json:"zkNodeNum"`

	/* CPU核数 (Optional) */
	ZkNodeCPU int `json:"zkNodeCPU"`

	/* 内存单位GB (Optional) */
	ZkNodeMemoryGB int `json:"zkNodeMemoryGB"`

	/* zk节点存储空间 (Optional) */
	ZkNodeStorageGB int `json:"zkNodeStorageGB"`

	/* monitor节点规格 (Optional) */
	MonitorNodeClass string `json:"monitorNodeClass"`

	/* monitor节点数目 (Optional) */
	MonitorNodeNum int `json:"monitorNodeNum"`

	/* CPU核数 (Optional) */
	MonitorNodeCPU int `json:"monitorNodeCPU"`

	/* 内存单位GB (Optional) */
	MonitorNodeMemoryGB int `json:"monitorNodeMemoryGB"`

	/* monitor节点存储空间 (Optional) */
	MonitorNodeStorageGB int `json:"monitorNodeStorageGB"`

	/* 总CPU核数 (Optional) */
	TotalCPU int `json:"totalCPU"`

	/* 总内存单位GB (Optional) */
	TotalMemoryGB int `json:"totalMemoryGB"`

	/* 总节点存储空间 (Optional) */
	TotalStorageGB int `json:"totalStorageGB"`

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

	/* 可用区ID,目前仅支持单可用区 (Optional) */
	AzId []string `json:"azId"`

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

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

	/* Clickhouse内网域名 (Optional) */
	InternalDomainName string `json:"internalDomainName"`

	/* Clickhouse公网域名 (Optional) */
	PublicDomainName string `json:"publicDomainName"`

	/* ClickhouseDB监控服务的内网域名 (Optional) */
	MonitorInternalDomainName string `json:"monitorInternalDomainName"`

	/* ClickhouseDB监控服务的公网域名 (Optional) */
	MonitorPublicDomainName string `json:"monitorPublicDomainName"`

	/* ClickhouseDB监控服务端口 (Optional) */
	MonitorPort string `json:"monitorPort"`

	/* tcp端口 (Optional) */
	TcpPort string `json:"tcpPort"`

	/* http端口 (Optional) */
	HttpPort string `json:"httpPort"`

	/* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceStatus string `json:"instanceStatus"`

	/* 实例创建时间, UTC 时间格式 (Optional) */
	CreateTime string `json:"createTime"`

	/*  (Optional) */
	SupersetInternalDomainName string `json:"supersetInternalDomainName"`

	/*  (Optional) */
	SupersetPublicDomainName string `json:"supersetPublicDomainName"`

	/*  (Optional) */
	SupersetPort string `json:"supersetPort"`

	/*  (Optional) */
	AeStatus int `json:"aeStatus"`

	/* 计费配置 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 标签信息 (Optional) */
	Tags []Tag `json:"tags"`
}

type ClickhouseInstanceSpec

type ClickhouseInstanceSpec struct {

	/* 实例名  */
	InstanceName string `json:"instanceName"`

	/* Clickhouse引擎版本 (Optional) */
	EngineVersion *string `json:"engineVersion"`

	/* 实例规格  */
	ChNodeClass string `json:"chNodeClass"`

	/* 实例副本数  */
	ReplicaNum int `json:"replicaNum"`

	/* 实例分片数  */
	ShardNum int `json:"shardNum"`

	/* 存储空间,单位GB  */
	ChNodeStorageGB int `json:"chNodeStorageGB"`

	/* 存储空间类型 (Optional) */
	ChNodeStorageType *string `json:"chNodeStorageType"`

	/* ZooKeeper单个节点的规格代码  */
	ZkNodeClass string `json:"zkNodeClass"`

	/* Monitor单个节点的规格代码  */
	MonitorNodeClass string `json:"monitorNodeClass"`

	/* ZooKeeper节点数目  */
	ZkNodeNum int `json:"zkNodeNum"`

	/* 可用区ID,目前仅支持单可用区部署  */
	AzId []string `json:"azId"`

	/* VPC的ID  */
	VpcId string `json:"vpcId"`

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

	/* 存储空间,单位GB  */
	ZkNodeStorageGB int `json:"zkNodeStorageGB"`

	/* 存储空间,单位GB  */
	MonitorNodeStorageGB int `json:"monitorNodeStorageGB"`

	/* 计费规格,包括计费类型,计费周期等  */
	ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`

	/* 标签信息 (Optional) */
	TagSpec []Tag `json:"tagSpec"`
}

type Disk

type Disk struct {

	/* disk名称 (Optional) */
	StorageType string `json:"storageType"`

	/* 1正常0售罄 (Optional) */
	StorageTypeStatus int `json:"storageTypeStatus"`

	/*  (Optional) */
	OrderableinstanceClasses []Flavor `json:"orderableinstanceClasses"`
}

type FilterGroup

type FilterGroup struct {

	/*  (Optional) */
	Filters []common.Filter `json:"filters"`
}

type Flavor

type Flavor struct {

	/* 规格代码 (Optional) */
	NodeClass string `json:"nodeClass"`

	/* cup核数 (Optional) */
	Cpu int `json:"cpu"`

	/* 内存大小 (Optional) */
	MemoryGB int `json:"memoryGB"`

	/* 该规格支持的存储空间的最小值,最大值及步长,用英文逗号分隔,例如100,4000,50 表示最小存储空间100GB,最大空间4000GB,步长50GBZK节点无须返回该字段 (Optional) */
	StorageGBRange string `json:"storageGBRange"`
}

type Instance

type Instance struct {

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

	/* resrouceId (Optional) */
	ResourceId string `json:"resourceId"`

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

	/* 实例引擎版本 (Optional) */
	EngineVersion string `json:"engineVersion"`

	/* 实例副本数 (Optional) */
	ReplicaNum int `json:"replicaNum"`

	/* 实例分片数 (Optional) */
	ShardNum int `json:"shardNum"`

	/* 规格 (Optional) */
	ChNodeClass string `json:"chNodeClass"`

	/* 存储类型 (Optional) */
	ChNodeStorageType string `json:"chNodeStorageType"`

	/* 节点存储空间 (Optional) */
	ChNodeStorageGB int `json:"chNodeStorageGB"`

	/* CPU核数 (Optional) */
	ChNodeCPU int `json:"chNodeCPU"`

	/* 内存单位GB (Optional) */
	ChNodeMemoryGB int `json:"chNodeMemoryGB"`

	/* zk节点规格 (Optional) */
	ZkNodeClass string `json:"zkNodeClass"`

	/* zk节点数目 (Optional) */
	ZkNodeNum int `json:"zkNodeNum"`

	/* CPU核数 (Optional) */
	ZkNodeCPU int `json:"zkNodeCPU"`

	/* 内存单位GB (Optional) */
	ZkNodeMemoryGB int `json:"zkNodeMemoryGB"`

	/* zk节点存储空间 (Optional) */
	ZkNodeStorageGB int `json:"zkNodeStorageGB"`

	/* monitor节点规格 (Optional) */
	MonitorNodeClass string `json:"monitorNodeClass"`

	/* monitor节点数目 (Optional) */
	MonitorNodeNum int `json:"monitorNodeNum"`

	/* CPU核数 (Optional) */
	MonitorNodeCPU int `json:"monitorNodeCPU"`

	/* 内存单位GB (Optional) */
	MonitorNodeMemoryGB int `json:"monitorNodeMemoryGB"`

	/* monitor节点存储空间 (Optional) */
	MonitorNodeStorageGB int `json:"monitorNodeStorageGB"`

	/* 总CPU核数 (Optional) */
	TotalCPU int `json:"totalCPU"`

	/* 总内存单位GB (Optional) */
	TotalMemoryGB int `json:"totalMemoryGB"`

	/* 总节点存储空间 (Optional) */
	TotalStorageGB int `json:"totalStorageGB"`

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

	/* 可用区ID,目前仅支持单可用区 (Optional) */
	AzId []string `json:"azId"`

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

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

	/* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
	InstanceStatus string `json:"instanceStatus"`

	/* 实例创建时间, UTC 时间格式 (Optional) */
	CreateTime string `json:"createTime"`

	/* 计费配置 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 标签信息 (Optional) */
	Tags []Tag `json:"tags"`
}

type InstanceParameter

type InstanceParameter struct {

	/* 参数名称 (Optional) */
	Name string `json:"name"`

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

	/* 参数的当前值,但不一定生效,需要视该参数生效是否需要重启 (Optional) */
	CurrentValue string `json:"currentValue"`

	/* 参数默认值 (Optional) */
	DefaultValue string `json:"defaultValue"`

	/* 是否需要重启 (Optional) */
	NeedRestart bool `json:"needRestart"`
}

type K8sServiceAddr

type K8sServiceAddr struct {

	/* 连接信息的类型 (Optional) */
	AddrType string `json:"addrType"`

	/* K8S集群外部访问实例的方式 (Optional) */
	AccessType string `json:"accessType"`

	/* 从K8S集群外部访问实例的地址,如域名或IP (Optional) */
	Addr string `json:"addr"`

	/* 端口 (Optional) */
	Port string `json:"port"`
}

type MonitorSpec

type MonitorSpec struct {

	/* 规格代码 (Optional) */
	Flavors []Flavor `json:"flavors"`
}

type Node

type Node struct {

	/* 节点ID (Optional) */
	NodeId string `json:"nodeId"`

	/* 节点序号,格式为“分片序号-副本序号”,分片序号和副本序号都是从0开始。例如,节点序号:"0-0",表示该节点位于分片0,副本0上 (Optional) */
	NodeSeqNo string `json:"nodeSeqNo"`

	/* 节点状态 (Optional) */
	NodeStatus string `json:"nodeStatus"`

	/* CPU 使用百分比 (Optional) */
	CpuUtil float32 `json:"cpuUtil"`

	/* 内存使用百分比 (Optional) */
	MemeryUtil float32 `json:"memeryUtil"`

	/* 存储使用百分比 (Optional) */
	DiskUsage float32 `json:"diskUsage"`
}

type Parameters

type Parameters struct {

	/* 参数名称 (Optional) */
	Name string `json:"name"`

	/* 参数修改值 (Optional) */
	Value string `json:"value"`
}

type ResourceInfo

type ResourceInfo struct {

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

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

type Shards

type Shards struct {

	/* 分片名 (Optional) */
	Index string `json:"index"`

	/* 各个副本域名 (Optional) */
	ReplicaDomainNames []string `json:"replicaDomainNames"`
}

type SlowLog

type SlowLog struct {

	/* 源IP (Optional) */
	Ip string `json:"ip"`

	/* 初始请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 节点名称 (Optional) */
	SegmentName string `json:"segmentName"`

	/* SQL开始时间 (Optional) */
	StartTime string `json:"startTime"`

	/* 慢日志SQL执行时间 (Optional) */
	QueryTime string `json:"queryTime"`

	/* SQL语句 (Optional) */
	Sql string `json:"sql"`

	/* 读取慢日志SQL的行数 (Optional) */
	LineNumber int `json:"lineNumber"`

	/* 读取慢日志SQL的数据量 (Optional) */
	DataSize string `json:"dataSize"`

	/* 返回结果数据量大小 (Optional) */
	ExecutingResult string `json:"executingResult"`

	/* 返回结果内存使用量 (Optional) */
	MemoryUsage string `json:"memoryUsage"`
}

type Tag

type Tag struct {

	/* 标签键 (Optional) */
	Key *string `json:"key"`

	/* 标签值 (Optional) */
	Value *string `json:"value"`
}

type WhiteList

type WhiteList struct {

	/* 白名单名称 (Optional) */
	Name string `json:"name"`

	/* IP或IP段,不同的IP/IP段之间用英文逗号分隔,例如0.0.0.0/0,192.168.0.10 (Optional) */
	Ips string `json:"ips"`
}

type ZkSpec

type ZkSpec struct {

	/* 规格代码 (Optional) */
	Flavors []Flavor `json:"flavors"`

	/* ZooKeeper节点的最小数目 (Optional) */
	MinNum int `json:"minNum"`

	/* ZooKeeper节点的最大数目 (Optional) */
	MaxNum int `json:"maxNum"`
}

Jump to

Keyboard shortcuts

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