Documentation ¶
Index ¶
- type Account
- type AuditLog
- type Az
- type ChSpec
- type ClickhouseInstanceAttributes
- type ClickhouseInstanceSpec
- type Disk
- type FilterGroup
- type Flavor
- type Instance
- type InstanceParameter
- type K8sServiceAddr
- type MonitorSpec
- type Node
- type Parameters
- type ResourceInfo
- type Shards
- type SlowLog
- type Tag
- type WhiteList
- type ZkSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 FilterGroup ¶
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 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 ResourceInfo ¶
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"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.