models

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 11 modules, 10 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 AzId

type AzId struct {

	/* 缓存Redis主实例所在区域的可用区ID (Optional) */
	Master string `json:"master"`

	/* 缓存Redis从实例所在区域的可用区ID (Optional) */
	Slave string `json:"slave"`
}

type AzIdSpec

type AzIdSpec struct {

	/* 缓存Redis主实例所在的可用区ID  */
	Master string `json:"master"`

	/* 缓存Redis从实例所在的可用区ID  */
	Slave string `json:"slave"`
}

type AzSaleStatusVo added in v1.16.0

type AzSaleStatusVo struct {

	/* 物理az (Optional) */
	Az string `json:"az"`

	/* 是否售罄(0未售罄,1售罄) (Optional) */
	CanSale int `json:"canSale"`

	/* 是否可见(1可见,0不可见) (Optional) */
	Visible int `json:"visible"`
}

type Backup added in v1.1.0

type Backup struct {

	/* 备份操作ID  */
	BaseId string `json:"baseId"`

	/* 备份文件的名称  */
	BackupFileName string `json:"backupFileName"`

	/* 备份文件对应的实例ID  */
	CacheInstanceId string `json:"cacheInstanceId"`

	/* 备份开始时间(ISO 8601标准的UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ)  */
	BackupStartTime string `json:"backupStartTime"`

	/* 备份结束时间(ISO 8601标准的UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ)  */
	BackupEndTime string `json:"backupEndTime"`

	/* 备份类型,1表示手动备份,0表示自动备份  */
	BackupType int `json:"backupType"`

	/* 备份文件总字节大小,如果实例是集群版,则表示每个分片备份文件大小的总和  */
	BackupSize int64 `json:"backupSize"`

	/* 备份任务状态状态,0表示备份中,1表示失败,2表示成功  */
	BackupStatus int `json:"backupStatus"`

	/* 备份文件下载地址(已废弃,调用获取备份文件下载地址接口获取)  */
	BackupDownloadURL string `json:"backupDownloadURL"`
}

type BaseProductRegionVo added in v1.16.0

type BaseProductRegionVo struct {

	/* 产品编码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 区域售卖状态列表 (Optional) */
	RegionAzVos []RegionAzVo `json:"regionAzVos"`
}

type CacheAnalysis added in v1.20.0

type CacheAnalysis struct {

	/* 缓存分析的时间,rfc3339格式  */
	AnalysisTime string `json:"analysisTime"`

	/* 缓存分析的任务ID  */
	TaskId string `json:"taskId"`

	/* 缓存分析任务状态, running, success, error, 只有sucess状态,才能根据taskId查询到结果 (Optional) */
	Status string `json:"status"`
}

type CacheInstance

type CacheInstance struct {

	/* 实例ID (Optional) */
	CacheInstanceId string `json:"cacheInstanceId"`

	/* 实例名称 (Optional) */
	CacheInstanceName string `json:"cacheInstanceName"`

	/* 规格代码,2.8、4.0标准版是实例规格,4.0自定义分片集群版实例表示单分片规格 (Optional) */
	CacheInstanceClass string `json:"cacheInstanceClass"`

	/* 实例的总内存(MB) (Optional) */
	CacheInstanceMemoryMB int `json:"cacheInstanceMemoryMB"`

	/* 实例状态:creating表示创建中,running表示运行中,error表示错误,changing表示变更规格中,deleting表示删除中,configuring表示修改参数中,restoring表示备份恢复中 (Optional) */
	CacheInstanceStatus string `json:"cacheInstanceStatus"`

	/* 实例描述 (Optional) */
	CacheInstanceDescription string `json:"cacheInstanceDescription"`

	/* 创建时间(ISO 8601标准的UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ) (Optional) */
	CreateTime string `json:"createTime"`

	/* az信息 (Optional) */
	AzId AzId `json:"azId"`

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

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

	/* 实例的访问域名 (Optional) */
	ConnectionDomain string `json:"connectionDomain"`

	/* 实例的访问端口 (Optional) */
	Port int `json:"port"`

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

	/* 实例的详细版本号,形如x.x-x.x (Optional) */
	InstanceVersion string `json:"instanceVersion"`

	/* 连接实例时,是否需要密码认证,false表示无密码 (Optional) */
	Auth bool `json:"auth"`

	/* 创建实例时选择的引擎版本:目前支持2.8和4.0 (Optional) */
	RedisVersion string `json:"redisVersion"`

	/* 实例类型:master-slave表示主从版,cluster表示集群版 (Optional) */
	CacheInstanceType string `json:"cacheInstanceType"`

	/* 是否支持IPv6,0表示不支持(只能用IPv4),1表示支持 (Optional) */
	Ipv6On int `json:"ipv6On"`

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

	/* 实例分片数,标准版固定为1,自定义分片集群版实例分片数由用户创建时选择,其他实例为固定分片数 (Optional) */
	ShardNumber int `json:"shardNumber"`

	/* 单分片内存大小(MB) (Optional) */
	MemoryMBPerShard int `json:"memoryMBPerShard"`
}

type CacheInstanceSpec

type CacheInstanceSpec struct {

	/* 缓存Redis实例所属的私有网络ID  */
	VpcId string `json:"vpcId"`

	/* 缓存Redis实例在私有网络下所属的子网ID  */
	SubnetId string `json:"subnetId"`

	/* 缓存Redis实例名称,只支持数字、字母、英文下划线、中文,且不少于2字符不超过32字符  */
	CacheInstanceName string `json:"cacheInstanceName"`

	/* 缓存Redis实例的规格代码(可调用describeInstanceClass接口获取),或者自定义分片实例的单分片规格代码(可调用describeSpecConfig接口获取)  */
	CacheInstanceClass string `json:"cacheInstanceClass"`

	/* 缓存Redis实例的连接密码,为空即为免密,包含且只支持字母及数字,不少于8字符不超过16字符 (Optional) */
	Password *string `json:"password"`

	/* 缓存Redis实例所在区域的可用区ID  */
	AzId *AzIdSpec `json:"azId"`

	/* 缓存Redis实例的描述,不能超过256个字符 (Optional) */
	CacheInstanceDescription *string `json:"cacheInstanceDescription"`

	/* 缓存Redis引擎主次版本号:目前支持2.8和4.0,默认为2.8 (Optional) */
	RedisVersion *string `json:"redisVersion"`

	/* 是否支持IPv6,0或空表示不支持,1表示支持IPv6,注意不是所有区域都支持IPv6,且必须保证VPC支持IPv6 (Optional) */
	Ipv6On *int `json:"ipv6On"`

	/* 分片数,自定义分片规格集群版实例必须有,且大于1。每种分片规格支持的分片数可调用describeSpecConfig接口获取 (Optional) */
	ShardNumber *int `json:"shardNumber"`
}

type ClusterInfo added in v1.10.0

type ClusterInfo struct {

	/* proxy列表 (Optional) */
	Proxies Proxy `json:"proxies"`

	/* shard列表 (Optional) */
	Shards Shard `json:"shards"`
}

type ConfigItem added in v1.1.0

type ConfigItem struct {

	/* configName目前只支持以下参数:
	maxmemory-policy(redis 2.8和redis 4.0都支持,但配置值不相同):内存剔除策略的最大使用内存限制
	hash-max-ziplist-entries(redis 2.8和redis 4.0都支持):用ziplist编码实现的哈希对象,ziplist中最多能存放entry个数的阈值
	hash-max-ziplist-value(redis 2.8和redis 4.0都支持):用ziplist编码实现的哈希对象,ziplist中能存放的value长度的最大值
	list-max-ziplist-entries(只有redis 2.8支持):用ziplist编码实现的列表对象,ziplist中最多能存放entry个数的阈值
	list-max-ziplist-value(只有redis 2.8支持):用ziplist编码实现的列表对象,ziplist中能存放的value长度的最大值
	list-max-ziplist-size(只有redis 4.0支持):用ziplist编码实现的列表对象,按照数据项个数或占用的字节数,限定ziplist的长度
	list-compress-depth(只有redis 4.0支持):用ziplist编码实现的列表对象,quicklist两端不被压缩的节点个数
	set-max-intset-entries(redis 2.8和redis 4.0都支持):用intset编码实现的集合对象,intset中最多能存放entry个数的阈值
	zset-max-ziplist-entries(redis 2.8和redis 4.0都支持):用ziplist编码实现的有序集合对象,ziplist中最多能存放entry个数的阈值
	zset-max-ziplist-value(redis 2.8和redis 4.0都支持):用ziplist编码实现的有序集合对象,ziplist中能存放的value长度的最大值
	slowlog-log-slower-than(redis 2.8和redis 4.0都支持):慢查询日志超时时间,单位微秒(1000000表示1秒),0表示记录所有的命令
	notify-keyspace-events(只有redis 4.0支持):事件通知
	*/
	ConfigName string `json:"configName"`

	/* 参数的配置值,默认值、参考值如下:
	maxmemory-policy(redis 2.8和redis 4.0的默认值都为volatile-lru):redis 4.0 的参考值有[volatile-lru, allkeys-lru, volatile-lfu, allkeys-lfu, volatile-random, allkeys-random, volatile-ttl, noeviction],redis 2.8的参考值有[volatile-lru , allkeys-lru , volatile-random , allkeys-random , volatile-ttl , noeviction]
	hash-max-ziplist-entries(redis 2.8和redis 4.0的默认值都为512):[0-10000]
	hash-max-ziplist-value(redis 2.8和redis 4.0的默认值都为64):[0-10000]
	list-max-ziplist-entries(redis 2.8的默认值为512,redis 4.0不支持):[0-10000]
	list-max-ziplist-value(redis 2.8的默认值为64,redis 4.0不支持):[0-10000]
	list-max-ziplist-size(redis 4.0的默认值为-2,redis 2.8不支持):[-5-10000]
	list-compress-depth(redis 4.0的默认值为0,redis 2.8不支持):[0-10000]
	set-max-intset-entries(redis 2.8和redis 4.0的默认值都为512):[0-10000]
	zset-max-ziplist-entries(redis 2.8和redis 4.0的默认值都为128):[0-10000]
	zset-max-ziplist-value(redis 2.8和redis 4.0的默认值都为64):[0-10000]
	slowlog-log-slower-than(redis 2.8和redis 4.0的默认值都为10000):[0-10000]
	notify-keyspace-events(redis 4.0的默认值为空,redis 2.8不支持):[K , E , g , $ , l , s , h , z , x , e , A]字母的组合,区分大小写,或为空
	*/
	ConfigValue string `json:"configValue"`
}

type DownloadUrl added in v1.7.0

type DownloadUrl struct {

	/* 名称  */
	Name string `json:"name"`

	/* 下载链接  */
	Link string `json:"link"`
}

type InstanceClass

type InstanceClass struct {

	/* 规格代码:redis 2.8与redis 4.0的规格码不同,具体参考 https://docs.jdcloud.com/cn/jcs-for-redis/specifications (Optional) */
	InstanceClass string `json:"instanceClass"`

	/* 规格类型:master-slave表示主从版,cluster表示集群版 (Optional) */
	InstanceType string `json:"instanceType"`

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

	/* 内存总容量(MB) (Optional) */
	MemoryMB int `json:"memoryMB"`

	/* 磁盘总容量(GB) (Optional) */
	DiskGB int `json:"diskGB"`

	/* 最大连接数 (Optional) */
	MaxConnection int `json:"maxConnection"`

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

type InstanceName added in v1.7.0

type InstanceName struct {

	/* 资源id(即实例id)  */
	ResourceId string `json:"resourceId"`

	/* 资源名称(即实例名称)  */
	ResourceName string `json:"resourceName"`

	/* service code(redis)  */
	ServiceCode string `json:"serviceCode"`
}

type InstanceSpec added in v1.20.0

type InstanceSpec struct {

	/* region id (Optional) */
	Region string `json:"region"`

	/* 版本信息列表 (Optional) */
	InstanceVersions []VersionInfo `json:"instanceVersions"`
}

type InternalInstance added in v1.16.0

type InternalInstance struct {

	/* pin (Optional) */
	Pin string `json:"pin"`

	/* region (Optional) */
	Region string `json:"region"`

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

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

	/* 实例类型:master-slave表示主从版,cluster表示集群版 (Optional) */
	InstanceType string `json:"instanceType"`

	/* 实例状态:creating表示创建中,running表示运行中,error表示错误,changing表示变更规格中,deleting表示删除中,configuring表示修改参数中,restoring表示备份恢复中 (Optional) */
	InstanceStatus string `json:"instanceStatus"`

	/* 实例版本:包括2.8、4.0 (Optional) */
	InstanceVersion string `json:"instanceVersion"`

	/* 创建时间(ISO 8601标准的UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ) (Optional) */
	CreatedTime string `json:"createdTime"`

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

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

	/* 访问域名 (Optional) */
	ConnectionDomain string `json:"connectionDomain"`

	/* 访问端口 (Optional) */
	ConnectionPort int `json:"connectionPort"`

	/* 连接redis实例时,是否需要密码认证,false表示无密码 (Optional) */
	Auth bool `json:"auth"`

	/* 前端app ip (Optional) */
	FrontAppIp string `json:"frontAppIp"`

	/* 实例内部节点ip列表 (Optional) */
	Ips []string `json:"ips"`

	/* 实例内部节点所在宿主机ip列表 (Optional) */
	HostIps []string `json:"hostIps"`
}

type OrderStatus added in v1.1.0

type OrderStatus struct {

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

	/* 成功的订单数 (Optional) */
	Success int `json:"success"`

	/* 失败的订单数 (Optional) */
	Fail int `json:"fail"`

	/* 正在处理的订单数 (Optional) */
	InProcess int `json:"inProcess"`

	/* 成功的资源Id (Optional) */
	ResourceIds []string `json:"resourceIds"`
}

type Proxy added in v1.10.0

type Proxy struct {

	/*   */
	Id string `json:"id"`
}

type RedisCmd added in v1.20.0

type RedisCmd struct {

	/* 命令名称  */
	Name string `json:"name"`

	/* 命令调用次数或命令使用cpu的毫秒数  */
	Data int64 `json:"data"`
}

type RedisKey added in v1.20.0

type RedisKey struct {

	/* key名称  */
	Name string `json:"name"`

	/* key所在的db号  */
	Db int `json:"db"`

	/* string类型的key表示字节数,list类型的key表示列表长度,set或zset类型的key表示集合或有序集合的大小、hash类型的key表示字典的大小等等  */
	Size int `json:"size"`

	/* string、list、set、zset、hash五种类型  */
	KeyType string `json:"keyType"`

	/* key访问的频度 (Optional) */
	Frequency int `json:"frequency"`
}

type RedisType added in v1.20.0

type RedisType struct {

	/* type名称  */
	Name string `json:"name"`

	/* 当前type的key个数  */
	KeyNumber int64 `json:"keyNumber"`

	/* 当前type的key的内存大小,单位:字节,redis2.8无此项  */
	KeySize int64 `json:"keySize"`

	/* type占比  */
	Ratio float32 `json:"ratio"`
}

type RegionAzVo added in v1.16.0

type RegionAzVo struct {

	/* 别名 (Optional) */
	Alias string `json:"alias"`

	/* 地域ID (Optional) */
	Region string `json:"region"`

	/* 是否可见(1可见,0不可见) (Optional) */
	Visible int `json:"visible"`

	/* az售卖状态列表 (Optional) */
	AzStatusList []AzSaleStatusVo `json:"azStatusList"`
}

type Shard added in v1.10.0

type Shard struct {

	/*   */
	Id string `json:"id"`
}

type ShardInfo added in v1.20.0

type ShardInfo struct {

	/* 默认分片数 (Optional) */
	DefaultShardNumber int `json:"defaultShardNumber"`

	/* 默认单分片规格代码 (Optional) */
	DefaultShardClass string `json:"defaultShardClass"`

	/* 分片数列表 (Optional) */
	ShardNumberList []int `json:"shardNumberList"`

	/* 需要的IP数列表 (Optional) */
	IpNumberList []int `json:"ipNumberList"`
}

type ShardSpec added in v1.20.0

type ShardSpec struct {

	/* 单分片规格代码,自定义分片集群实例才需要,标准版不需要 (Optional) */
	ShardClass string `json:"shardClass"`

	/* 单分片CPU核数 (Optional) */
	Cpu int `json:"cpu"`

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

	/* 单分片磁盘大小(GB) (Optional) */
	DiskGB int `json:"diskGB"`

	/* 单分片最大连接数 (Optional) */
	MaxConnection int `json:"maxConnection"`

	/* 单分片带宽(Mbps) (Optional) */
	BandwidthMbps int `json:"bandwidthMbps"`

	/* 支持的分片数列表 (Optional) */
	ShardNumberList []int `json:"shardNumberList"`
}

type SlowLog added in v1.12.0

type SlowLog struct {

	/* 命令  */
	Command string `json:"command"`

	/* 命令开始执行时间(ISO 8601标准的UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ)  */
	StartTime string `json:"startTime"`

	/* 命令执行时长(带单位)  */
	ExecutionTime string `json:"executionTime"`

	/* 执行命令的分片id (Optional) */
	ShardId string `json:"shardId"`
}

type SpecInfo added in v1.20.0

type SpecInfo struct {

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

	/* 实例规格,标准版不为空,4.0 自定义分片集群版规格为空,具体规格参考单分片规格 (Optional) */
	InstanceClass string `json:"instanceClass"`

	/* 实例CPU核数,0表示自定义分片集群版规格,CPU核数由分片数变化 (Optional) */
	Cpu int `json:"cpu"`

	/* 实例磁盘大小(GB),0表示自定义分片集群版规格,磁盘大小由分片数变化 (Optional) */
	DiskGB int `json:"diskGB"`

	/* 最大连接数,0表示自定义分片集群版规格,最大连接数由分片数变化 (Optional) */
	MaxConntion int `json:"maxConntion"`

	/* 带宽(Mbps),0表示自定义分片集群版规格,带宽由分片数变化 (Optional) */
	BandwidthMbps int `json:"bandwidthMbps"`

	/* 需要的IP数,0表示自定义分片集群版规格,IP数由分片数变化 (Optional) */
	IpNumber int `json:"ipNumber"`

	/* 实例的分片列表信息,redis 2.8标准版、集群版以及redis 4.0标准版没有分片列表信息 (Optional) */
	Shard ShardInfo `json:"shard"`

	/* az列表 (Optional) */
	Azs []string `json:"azs"`
}

type Tag added in v1.7.0

type Tag struct {

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

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

type TypeInfo added in v1.20.0

type TypeInfo struct {

	/* 实例类型:目前支持标准版(master-slave)、集群版(cluster) (Optional) */
	InstanceType string `json:"instanceType"`

	/* 规格列表 (Optional) */
	Specs []SpecInfo `json:"specs"`
}

type VersionInfo added in v1.20.0

type VersionInfo struct {

	/* redis引擎版本:目前支持2.8、4.0 (Optional) */
	RedisVersion string `json:"redisVersion"`

	/* 类型信息列表 (Optional) */
	InstanceTypes []TypeInfo `json:"instanceTypes"`
}

Jump to

Keyboard shortcuts

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