models

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 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 DBInstance

type DBInstance struct {

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

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

	/* 节点规格 (Optional) */
	NodeType string `json:"nodeType"`

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

	/* 内存容量,单位GB (Optional) */
	Memory int `json:"memory"`

	/* 存储空间容量,单位GB (Optional) */
	Storage int `json:"storage"`

	/* 节点数量 (Optional) */
	NodeNumber int `json:"nodeNumber"`

	/* 可用区 (Optional) */
	AzId string `json:"azId"`

	/* VPCID (Optional) */
	VpcId string `json:"vpcId"`

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

	/* 实例状态 (Optional) */
	InstanceStatus string `json:"instanceStatus"`

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

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

type DBInstanceAttribute

type DBInstanceAttribute struct {

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

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

	/* 实例规格 (Optional) */
	NodeType string `json:"nodeType"`

	/* 节点数量 (Optional) */
	NodeNumber int `json:"nodeNumber"`

	/* 可用区 (Optional) */
	AzId string `json:"azId"`

	/* VPCID (Optional) */
	VpcId string `json:"vpcId"`

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

	/* 域名 (Optional) */
	InstanceDomain string `json:"instanceDomain"`

	/* 端口号 (Optional) */
	InstancePort string `json:"instancePort"`

	/* 数据库账号 (Optional) */
	AccountName string `json:"accountName"`

	/* 实例状态,Available:运行, Failure:故障 ,Creating:创建中, Deleting:删除中 (Optional) */
	InstanceStatus string `json:"instanceStatus"`

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

	/* 节点信息 (Optional) */
	Nodes []Node `json:"nodes"`

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

type DBInstanceSpec

type DBInstanceSpec struct {

	/* 实例名称,名称只支持数字、小写字母、中文及英文下划线,且不少于2字符不超过32字符;未填写取实例ID作为实例名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 节点规格,目前支持jdw.dc1.4xlarge  */
	NodeType string `json:"nodeType"`

	/* 节点数量,目前支持3个  */
	NodeNumber int `json:"nodeNumber"`

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

	/* VPCID  */
	VpcId string `json:"vpcId"`

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

	/* 数据库账号,账号只支持数字、大小写字母及英文下划线“_”,不超过16字符 ,非必填 (Optional) */
	AccountName string `json:"accountName"`

	/* 数据库密码,密码必须包含且只支持大小写字母及数字,不少于8字符不超过16字符,非必填,可创建后设置 (Optional) */
	AccountPassword string `json:"accountPassword"`

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

type Node

type Node struct {

	/* 节点类型:Master,Segment-N (Optional) */
	NodeRole string `json:"nodeRole"`

	/* 节点状态,Available:运行, Failure:故障 (Optional) */
	NodeStatus string `json:"nodeStatus"`

	/* CPU使用率 (Optional) */
	CpuUtilization string `json:"cpuUtilization"`

	/* 内存使用率 (Optional) */
	MemoryUtilization string `json:"memoryUtilization"`

	/* 磁盘使用率 (Optional) */
	DiskUtilization string `json:"diskUtilization"`
}

type NodeType

type NodeType struct {

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

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

	/* 内存容量,单位GB (Optional) */
	Memory int `json:"memory"`

	/* 存储空间容量,单位GB (Optional) */
	Storage int `json:"storage"`

	/* 最小节点数量 (Optional) */
	MiniNodeNumber int `json:"miniNodeNumber"`

	/* 最大节点数量 (Optional) */
	MaxNodeNumber int `json:"maxNodeNumber"`
}

Jump to

Keyboard shortcuts

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