utsdb

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package utsdb include resources of ucloud utsdb product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {

	// 账户名
	Account string

	// 密码
	Password string

	// 权限
	Privilege string
}

AccountInfo - UInfluxdb 账户信息

type CheckUInfluxdbAllowanceRequest

type CheckUInfluxdbAllowanceRequest struct {
	request.CommonBase

	// 创建实例的数量,[1-10]
	Count *int `required:"true"`

	// 核数 单位:个,范围[2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
	CpuLimit *int `required:"true"`

	// 内存限制 单位:G 范围 [2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
	MemoryLimit *int `required:"true"`
}

CheckUInfluxdbAllowanceRequest is request schema for CheckUInfluxdbAllowance action

type CheckUInfluxdbAllowanceResponse

type CheckUInfluxdbAllowanceResponse struct {
	response.CommonBase

	// 可创建的数量
	Count int
}

CheckUInfluxdbAllowanceResponse is response schema for CheckUInfluxdbAllowance action

type CreateUInfluxdbDatabaseRPRequest

type CreateUInfluxdbDatabaseRPRequest struct {
	request.CommonBase

	// 要创建RP的数据库
	DatabaseName *string `required:"true"`

	// 数据保留策略,以天为单位,比如(1d,2d,3d等,inf为永久保留策略,默认为inf)
	RetentionPolicy *string `required:"true"`

	// 保留策略名
	RetentionPolicyName *string `required:"true"`

	// 实例ID
	UInfluxdbId *string `required:"true"`
}

CreateUInfluxdbDatabaseRPRequest is request schema for CreateUInfluxdbDatabaseRP action

type CreateUInfluxdbDatabaseRPResponse

type CreateUInfluxdbDatabaseRPResponse struct {
	response.CommonBase

	// 如果执行失败, 失败的错误消息
	Message string
}

CreateUInfluxdbDatabaseRPResponse is response schema for CreateUInfluxdbDatabaseRP action

type CreateUInfluxdbDatabaseRequest

type CreateUInfluxdbDatabaseRequest struct {
	request.CommonBase

	// Influxdb数据库账号
	AccoutName *string `required:"false"`

	// Influxdb创建的数据库的名称
	DatabaseName *string `required:"true"`

	// Influxdb数据库的描述
	Description *string `required:"false"`

	// 数据保留策略,以天为单位,比如(1d,2d,3d等,inf为永久保留策略,默认为inf)
	RetentionPolicy *string `required:"false"`

	// 实例ID
	UInfluxdbId *string `required:"true"`
}

CreateUInfluxdbDatabaseRequest is request schema for CreateUInfluxdbDatabase action

type CreateUInfluxdbDatabaseResponse

type CreateUInfluxdbDatabaseResponse struct {
	response.CommonBase
}

CreateUInfluxdbDatabaseResponse is response schema for CreateUInfluxdbDatabase action

type CreateUInfluxdbInstanceRequest

type CreateUInfluxdbInstanceRequest struct {
	request.CommonBase

	// 默认账户
	AccountName *string `required:"true"`

	// 付费类型,后付费阶段固定为:后付费(PostPaid)
	ChargeType *string `required:"true"`

	// 使用的代金券id
	CouponId *string `required:"false"`

	// 核数 单位:个,范围[2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
	CpuLimit *int `required:"true"`

	// 数据库名称
	DatabaseName *string `required:"true"`

	// 内存限制 单位:G 范围 [2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
	MemoryLimit *int `required:"true"`

	// 实例名称,长度(6<=size<=63)
	Name *string `required:"true"`

	// 默认账户的密码,需要 base64 编码
	Password *string `required:"true"`

	// 购买时长,默认值1
	Quantity *int `required:"true"`

	// 子网 id
	SubnetId *string `required:"true"`

	// 业务组名称
	Tag *string `required:"false"`

	// VPC id
	VPCId *string `required:"true"`
}

CreateUInfluxdbInstanceRequest is request schema for CreateUInfluxdbInstance action

type CreateUInfluxdbInstanceResponse

type CreateUInfluxdbInstanceResponse struct {
	response.CommonBase

	// 返回的实例id
	UInfluxdbId string
}

CreateUInfluxdbInstanceResponse is response schema for CreateUInfluxdbInstance action

type DatabaseInfo

type DatabaseInfo struct {

	// 账户信息
	AccountInfo []AccountInfo

	// 数据库名
	DatabaseName string

	// 数据库描述
	Description string

	// 保留策略
	RetentionPolicy string

	// 数据库状态
	State string
}

DatabaseInfo -

type DeleteUInfluxdbDatabaseRPRequest

type DeleteUInfluxdbDatabaseRPRequest struct {
	request.CommonBase

	// 要删除的RP所在数据库
	DatabaseName *string `required:"true"`

	// 要删除的保留策略
	RetentionPolicyName *string `required:"true"`

	// 实例ID
	UInfluxdbId *string `required:"true"`
}

DeleteUInfluxdbDatabaseRPRequest is request schema for DeleteUInfluxdbDatabaseRP action

type DeleteUInfluxdbDatabaseRPResponse

type DeleteUInfluxdbDatabaseRPResponse struct {
	response.CommonBase

	// 如果执行失败, 失败的错误消息
	Message string
}

DeleteUInfluxdbDatabaseRPResponse is response schema for DeleteUInfluxdbDatabaseRP action

type DeleteUInfluxdbDatabaseRequest

type DeleteUInfluxdbDatabaseRequest struct {
	request.CommonBase

	// 数据库名称
	DatabaseName *string `required:"true"`

	// 实例id
	UInfluxdbId *string `required:"true"`
}

DeleteUInfluxdbDatabaseRequest is request schema for DeleteUInfluxdbDatabase action

type DeleteUInfluxdbDatabaseResponse

type DeleteUInfluxdbDatabaseResponse struct {
	response.CommonBase
}

DeleteUInfluxdbDatabaseResponse is response schema for DeleteUInfluxdbDatabase action

type DeleteUInfluxdbInstanceRequest

type DeleteUInfluxdbInstanceRequest struct {
	request.CommonBase

	// UInfluxdb 实例id
	UInfluxdbId *string `required:"true"`
}

DeleteUInfluxdbInstanceRequest is request schema for DeleteUInfluxdbInstance action

type DeleteUInfluxdbInstanceResponse

type DeleteUInfluxdbInstanceResponse struct {
	response.CommonBase
}

DeleteUInfluxdbInstanceResponse is response schema for DeleteUInfluxdbInstance action

type DescribeUInfluxdbDatabaseRPRequest

type DescribeUInfluxdbDatabaseRPRequest struct {
	request.CommonBase

	// 数据库名称
	DatabaseName *string `required:"true"`

	// 实例ID
	UInfluxdbId *string `required:"true"`
}

DescribeUInfluxdbDatabaseRPRequest is request schema for DescribeUInfluxdbDatabaseRP action

type DescribeUInfluxdbDatabaseRPResponse

type DescribeUInfluxdbDatabaseRPResponse struct {
	response.CommonBase

	// 返回保留策略数组(RpData类型)
	DataSet []RpData

	// 如果执行失败, 失败的错误消息
	Message string
}

DescribeUInfluxdbDatabaseRPResponse is response schema for DescribeUInfluxdbDatabaseRP action

type DescribeUInfluxdbDatabaseRequest

type DescribeUInfluxdbDatabaseRequest struct {
	request.CommonBase

	//
	DatabaseName *string `required:"false"`

	//
	Limit *int `required:"false"`

	//
	Offset *int `required:"false"`

	//
	UInfluxdbId *string `required:"true"`
}

DescribeUInfluxdbDatabaseRequest is request schema for DescribeUInfluxdbDatabase action

type DescribeUInfluxdbDatabaseResponse

type DescribeUInfluxdbDatabaseResponse struct {
	response.CommonBase

	//
	DatabaseInfo []DatabaseInfo
}

DescribeUInfluxdbDatabaseResponse is response schema for DescribeUInfluxdbDatabase action

type DescribeUInfluxdbInstanceRequest

type DescribeUInfluxdbInstanceRequest struct {
	request.CommonBase

	// 分页显示数量,列表操作则指定
	Limit *int `required:"false"`

	// 分页显示起始偏移位置,列表操作则指定
	Offset *int `required:"false"`

	// 指定id的话,会拉取该实例信息,否则拉取该帐号所有信息
	UInfluxdbId *string `required:"false"`
}

DescribeUInfluxdbInstanceRequest is request schema for DescribeUInfluxdbInstance action

type DescribeUInfluxdbInstanceResponse

type DescribeUInfluxdbInstanceResponse struct {
	response.CommonBase

	// UInfluxdb实例信息
	DataSet []UInfluxdbDataSet
}

DescribeUInfluxdbInstanceResponse is response schema for DescribeUInfluxdbInstance action

type DescribeUInfluxdbPriceRequest

type DescribeUInfluxdbPriceRequest struct {
	request.CommonBase

	// 付费类型,后付费。填:PostPaid (后付费)
	ChargeType *string `required:"false"`

	// 核数 单位:个,规格[2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
	CpuLimit *int `required:"true"`

	// 内存限制 单位:G 规格 [2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
	MemoryLimit *int `required:"false"`

	// 付费周期数量
	Quantity *int `required:"false"`
}

DescribeUInfluxdbPriceRequest is request schema for DescribeUInfluxdbPrice action

type DescribeUInfluxdbPriceResponse

type DescribeUInfluxdbPriceResponse struct {
	response.CommonBase

	// 原价
	OriginalPrice float64

	// 价格
	Price float64
}

DescribeUInfluxdbPriceResponse is response schema for DescribeUInfluxdbPrice action

type DescribeUInfluxdbUpgradePriceRequest

type DescribeUInfluxdbUpgradePriceRequest struct {
	request.CommonBase

	// 核数
	CpuLimit *int `required:"true"`

	// 容量,单位GB
	MemoryLimit *int `required:"true"`

	// UInfluxdb 实例id
	UInfluxdbId *string `required:"true"`
}

DescribeUInfluxdbUpgradePriceRequest is request schema for DescribeUInfluxdbUpgradePrice action

type DescribeUInfluxdbUpgradePriceResponse

type DescribeUInfluxdbUpgradePriceResponse struct {
	response.CommonBase

	// 原价
	OriginalPrice float64

	// 升降级价格
	TotalPrice float64
}

DescribeUInfluxdbUpgradePriceResponse is response schema for DescribeUInfluxdbUpgradePrice action

type ModifyUInfluxdbDatabasePolicyRequest

type ModifyUInfluxdbDatabasePolicyRequest struct {
	request.CommonBase

	// 数据库名
	DatabaseName *string `required:"true"`

	// 数据库数据保留策略。自定义格式如:10d(即10天),2w(即两周),
	RetentionPolicy *string `required:"true"`

	// Influxdb实例id
	UInfluxdbId *string `required:"true"`
}

ModifyUInfluxdbDatabasePolicyRequest is request schema for ModifyUInfluxdbDatabasePolicy action

type ModifyUInfluxdbDatabasePolicyResponse

type ModifyUInfluxdbDatabasePolicyResponse struct {
	response.CommonBase
}

ModifyUInfluxdbDatabasePolicyResponse is response schema for ModifyUInfluxdbDatabasePolicy action

type RebootUInfluxdbInstanceRequest

type RebootUInfluxdbInstanceRequest struct {
	request.CommonBase

	// UInfluxdb实例id
	UInfluxdbId *string `required:"true"`
}

RebootUInfluxdbInstanceRequest is request schema for RebootUInfluxdbInstance action

type RebootUInfluxdbInstanceResponse

type RebootUInfluxdbInstanceResponse struct {
	response.CommonBase
}

RebootUInfluxdbInstanceResponse is response schema for RebootUInfluxdbInstance action

type ResetUInfluxdbInstanceNameRequest

type ResetUInfluxdbInstanceNameRequest struct {
	request.CommonBase

	// 实例的新名字, 长度要求为6~63位
	NewName *string `required:"true"`

	// UInfluxdb实例id
	UInfluxdbId *string `required:"true"`
}

ResetUInfluxdbInstanceNameRequest is request schema for ResetUInfluxdbInstanceName action

type ResetUInfluxdbInstanceNameResponse

type ResetUInfluxdbInstanceNameResponse struct {
	response.CommonBase
}

ResetUInfluxdbInstanceNameResponse is response schema for ResetUInfluxdbInstanceName action

type RpData

type RpData struct {

	// 保留策略
	Policy string

	// 保留策略名
	RetentionPolicyName string
}

RpData - 保留策略信息

type StartUInfluxdbInstanceRequest

type StartUInfluxdbInstanceRequest struct {
	request.CommonBase

	// UInfluxdb实例id
	UInfluxdbId *string `required:"true"`
}

StartUInfluxdbInstanceRequest is request schema for StartUInfluxdbInstance action

type StartUInfluxdbInstanceResponse

type StartUInfluxdbInstanceResponse struct {
	response.CommonBase
}

StartUInfluxdbInstanceResponse is response schema for StartUInfluxdbInstance action

type StopUInfluxdbInstanceRequest

type StopUInfluxdbInstanceRequest struct {
	request.CommonBase

	// UInfluxdb实例id
	UInfluxdbId *string `required:"true"`
}

StopUInfluxdbInstanceRequest is request schema for StopUInfluxdbInstance action

type StopUInfluxdbInstanceResponse

type StopUInfluxdbInstanceResponse struct {
	response.CommonBase
}

StopUInfluxdbInstanceResponse is response schema for StopUInfluxdbInstance action

type UInfluxdbDataSet

type UInfluxdbDataSet struct {

	// 账户名
	AccountName string

	// 实例核数
	CPULimit int

	// 付费类型,可选值如下: Year: 按年付费 Month: 按月付费 Dynamic: 按需付费(单位: 小时) Trial: 免费试用
	ChargeType string

	// 创建时间
	CreateTime int

	// 修改时间
	ExpiredTime int

	// 实例内存
	MemoryLimit int

	// 实例名称
	Name string

	// 实例端口
	Port int

	// 实例状态
	State string

	// 子网ID
	SubnetId string

	// 业务组信息
	Tag string

	// 实例id
	UInfluxdbId string

	// 硬盘使用量
	UsedSize int

	// VPC的ID
	VPCId string

	// 实例ip
	VirtualIP string

	// UInfluxdb实例所在可用区
	Zone string
}

UInfluxdbDataSet - UInfluxdb信息的DataSet

type UTSDBClient

type UTSDBClient struct {
	*ucloud.Client
}

UTSDBClient is the client of UTSDB

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UTSDBClient

NewClient will return a instance of UTSDBClient

func (*UTSDBClient) CheckUInfluxdbAllowance

API: CheckUInfluxdbAllowance

检查UInfluxdb剩余资源

func (*UTSDBClient) CreateUInfluxdbDatabase

API: CreateUInfluxdbDatabase

创建Influxdb数据库

func (*UTSDBClient) CreateUInfluxdbDatabaseRP

API: CreateUInfluxdbDatabaseRP

给指定的database创建一个保留策略,最多可以创建10个RP

func (*UTSDBClient) CreateUInfluxdbInstance

API: CreateUInfluxdbInstance

创建UInfluxdb实例

func (*UTSDBClient) DeleteUInfluxdbDatabase

API: DeleteUInfluxdbDatabase

删除Influxdb实例的数据库

func (*UTSDBClient) DeleteUInfluxdbDatabaseRP

API: DeleteUInfluxdbDatabaseRP

删除指定数据库下面的一个数据保留策略

func (*UTSDBClient) DeleteUInfluxdbInstance

API: DeleteUInfluxdbInstance

删除UInfluxdb实例

func (*UTSDBClient) DescribeUInfluxdbDatabase

API: DescribeUInfluxdbDatabase

描述UInfluxdb数据库

func (*UTSDBClient) DescribeUInfluxdbDatabaseRP

API: DescribeUInfluxdbDatabaseRP

获取指定数据库下面的所有保留策略

func (*UTSDBClient) DescribeUInfluxdbInstance

API: DescribeUInfluxdbInstance

拉取UInfluxdb实例列表

func (*UTSDBClient) DescribeUInfluxdbPrice

API: DescribeUInfluxdbPrice

获取UInfluxdb价格

func (*UTSDBClient) DescribeUInfluxdbUpgradePrice

API: DescribeUInfluxdbUpgradePrice

获取UIfluxdb升降级价格

func (*UTSDBClient) ModifyUInfluxdbDatabasePolicy

API: ModifyUInfluxdbDatabasePolicy

更改UInfluxdb实例数据库数据保留策略

func (*UTSDBClient) NewCheckUInfluxdbAllowanceRequest

func (c *UTSDBClient) NewCheckUInfluxdbAllowanceRequest() *CheckUInfluxdbAllowanceRequest

NewCheckUInfluxdbAllowanceRequest will create request of CheckUInfluxdbAllowance action.

func (*UTSDBClient) NewCreateUInfluxdbDatabaseRPRequest

func (c *UTSDBClient) NewCreateUInfluxdbDatabaseRPRequest() *CreateUInfluxdbDatabaseRPRequest

NewCreateUInfluxdbDatabaseRPRequest will create request of CreateUInfluxdbDatabaseRP action.

func (*UTSDBClient) NewCreateUInfluxdbDatabaseRequest

func (c *UTSDBClient) NewCreateUInfluxdbDatabaseRequest() *CreateUInfluxdbDatabaseRequest

NewCreateUInfluxdbDatabaseRequest will create request of CreateUInfluxdbDatabase action.

func (*UTSDBClient) NewCreateUInfluxdbInstanceRequest

func (c *UTSDBClient) NewCreateUInfluxdbInstanceRequest() *CreateUInfluxdbInstanceRequest

NewCreateUInfluxdbInstanceRequest will create request of CreateUInfluxdbInstance action.

func (*UTSDBClient) NewDeleteUInfluxdbDatabaseRPRequest

func (c *UTSDBClient) NewDeleteUInfluxdbDatabaseRPRequest() *DeleteUInfluxdbDatabaseRPRequest

NewDeleteUInfluxdbDatabaseRPRequest will create request of DeleteUInfluxdbDatabaseRP action.

func (*UTSDBClient) NewDeleteUInfluxdbDatabaseRequest

func (c *UTSDBClient) NewDeleteUInfluxdbDatabaseRequest() *DeleteUInfluxdbDatabaseRequest

NewDeleteUInfluxdbDatabaseRequest will create request of DeleteUInfluxdbDatabase action.

func (*UTSDBClient) NewDeleteUInfluxdbInstanceRequest

func (c *UTSDBClient) NewDeleteUInfluxdbInstanceRequest() *DeleteUInfluxdbInstanceRequest

NewDeleteUInfluxdbInstanceRequest will create request of DeleteUInfluxdbInstance action.

func (*UTSDBClient) NewDescribeUInfluxdbDatabaseRPRequest

func (c *UTSDBClient) NewDescribeUInfluxdbDatabaseRPRequest() *DescribeUInfluxdbDatabaseRPRequest

NewDescribeUInfluxdbDatabaseRPRequest will create request of DescribeUInfluxdbDatabaseRP action.

func (*UTSDBClient) NewDescribeUInfluxdbDatabaseRequest

func (c *UTSDBClient) NewDescribeUInfluxdbDatabaseRequest() *DescribeUInfluxdbDatabaseRequest

NewDescribeUInfluxdbDatabaseRequest will create request of DescribeUInfluxdbDatabase action.

func (*UTSDBClient) NewDescribeUInfluxdbInstanceRequest

func (c *UTSDBClient) NewDescribeUInfluxdbInstanceRequest() *DescribeUInfluxdbInstanceRequest

NewDescribeUInfluxdbInstanceRequest will create request of DescribeUInfluxdbInstance action.

func (*UTSDBClient) NewDescribeUInfluxdbPriceRequest

func (c *UTSDBClient) NewDescribeUInfluxdbPriceRequest() *DescribeUInfluxdbPriceRequest

NewDescribeUInfluxdbPriceRequest will create request of DescribeUInfluxdbPrice action.

func (*UTSDBClient) NewDescribeUInfluxdbUpgradePriceRequest

func (c *UTSDBClient) NewDescribeUInfluxdbUpgradePriceRequest() *DescribeUInfluxdbUpgradePriceRequest

NewDescribeUInfluxdbUpgradePriceRequest will create request of DescribeUInfluxdbUpgradePrice action.

func (*UTSDBClient) NewModifyUInfluxdbDatabasePolicyRequest

func (c *UTSDBClient) NewModifyUInfluxdbDatabasePolicyRequest() *ModifyUInfluxdbDatabasePolicyRequest

NewModifyUInfluxdbDatabasePolicyRequest will create request of ModifyUInfluxdbDatabasePolicy action.

func (*UTSDBClient) NewRebootUInfluxdbInstanceRequest

func (c *UTSDBClient) NewRebootUInfluxdbInstanceRequest() *RebootUInfluxdbInstanceRequest

NewRebootUInfluxdbInstanceRequest will create request of RebootUInfluxdbInstance action.

func (*UTSDBClient) NewResetUInfluxdbInstanceNameRequest

func (c *UTSDBClient) NewResetUInfluxdbInstanceNameRequest() *ResetUInfluxdbInstanceNameRequest

NewResetUInfluxdbInstanceNameRequest will create request of ResetUInfluxdbInstanceName action.

func (*UTSDBClient) NewStartUInfluxdbInstanceRequest

func (c *UTSDBClient) NewStartUInfluxdbInstanceRequest() *StartUInfluxdbInstanceRequest

NewStartUInfluxdbInstanceRequest will create request of StartUInfluxdbInstance action.

func (*UTSDBClient) NewStopUInfluxdbInstanceRequest

func (c *UTSDBClient) NewStopUInfluxdbInstanceRequest() *StopUInfluxdbInstanceRequest

NewStopUInfluxdbInstanceRequest will create request of StopUInfluxdbInstance action.

func (*UTSDBClient) NewUpgradeUInfluxdbInstanceRequest

func (c *UTSDBClient) NewUpgradeUInfluxdbInstanceRequest() *UpgradeUInfluxdbInstanceRequest

NewUpgradeUInfluxdbInstanceRequest will create request of UpgradeUInfluxdbInstance action.

func (*UTSDBClient) RebootUInfluxdbInstance

API: RebootUInfluxdbInstance

重启UInfluxdb实例

func (*UTSDBClient) ResetUInfluxdbInstanceName

API: ResetUInfluxdbInstanceName

更改UIfluxdb实例名称

func (*UTSDBClient) StartUInfluxdbInstance

API: StartUInfluxdbInstance

启动UInfluxdb实例

func (*UTSDBClient) StopUInfluxdbInstance

API: StopUInfluxdbInstance

关闭UInfluxdb实例

func (*UTSDBClient) UpgradeUInfluxdbInstance

API: UpgradeUInfluxdbInstance

UInfluxdb实例配置升降级

type UpgradeUInfluxdbInstanceRequest

type UpgradeUInfluxdbInstanceRequest struct {
	request.CommonBase

	// UInfluxdb 实例 新的核数,单位个
	CpuLimit *int `required:"true"`

	// UInfluxdb 实例 新的内存
	MemoryLimit *int `required:"true"`

	// 实例ID
	UInfluxdbId *string `required:"true"`
}

UpgradeUInfluxdbInstanceRequest is request schema for UpgradeUInfluxdbInstance action

type UpgradeUInfluxdbInstanceResponse

type UpgradeUInfluxdbInstanceResponse struct {
	response.CommonBase
}

UpgradeUInfluxdbInstanceResponse is response schema for UpgradeUInfluxdbInstance action

Jump to

Keyboard shortcuts

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