rds

package
v0.9.195 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Overview

Package rds defines the RDS services of BCE. The supported APIs are all defined in sub-package

rds.go - the rds APIs definition supported by the RDS service

util.go - define the utilities for api package of RDS service

Index

Constants

View Source
const (
	URI_PREFIX       = bce.URI_PREFIX + "v1"
	DEFAULT_ENDPOINT = "rds.bj.baidubce.com"
	REQUEST_RDS_URL  = "/instance"
)
View Source
const (
	DEFAULT_PAGE_SIZE = 10
	DEFAULT_PAGE_NUM  = 1
)

Variables

This section is empty.

Functions

func Aes128EncryptUseSecreteKey

func Aes128EncryptUseSecreteKey(sk string, data string) (string, error)

Types

type Account

type Account struct {
	AccountName        string              `json:"accountName"`
	Status             string              `json:"status"`
	Type               string              `json:"type"`
	AccountType        string              `json:"accountType"`
	DatabasePrivileges []DatabasePrivilege `json:"databasePrivileges"`
	Desc               string              `json:"desc"`
}

type AccountPrivilege added in v0.9.157

type AccountPrivilege struct {
	AccountName string `json:"accountName"`
	AuthType    string `json:"authType"`
}

type AppList added in v0.9.173

type AppList struct {
	AppId       string `json:"appId"`
	AppName     string `json:"appName"`
	Weight      int    `json:"weight"`
	RoGroupId   string `json:"roGroupId"`
	SourceAppId string `json:"sourceAppId"`
	Status      string `json:"status"`
	CreateTime  string `json:"createTime"`
	UpdateTime  string `json:"updateTime"`
	AppStatus   string `json:"appStatus"`
	AppIdShort  string `json:"appIdShort"`
}

type AutoRenewArgs added in v0.9.43

type AutoRenewArgs struct {
	InstanceIds       []string `json:"instanceIds"`
	AutoRenewTimeUnit string   `json:"autoRenewTimeUnit"`
	AutoRenewTime     int      `json:"autoRenewTime"`
}

type AutoResizeConfigResult added in v0.9.157

type AutoResizeConfigResult struct {
	AutoResizeDisk     int `json:"autoResizeDisk"`
	FreeSpaceThreshold int `json:"freeSpaceThreshold"`
	DiskMaxLimit       int `json:"diskMaxLimit"`
	ExtendStepPercent  int `json:"extendStepPercent"`
}

type AzoneMigration added in v0.9.157

type AzoneMigration struct {
	MasterAzone   string      `json:"master_azone"`
	BackupAzone   string      `json:"backup_azone"`
	ZoneNames     []string    `json:"zoneNames"`
	Subnets       []SubnetMap `json:"subnets"`
	EffectiveTime string      `json:"effectiveTime"`
}

type BackupDetail added in v0.9.157

type BackupDetail struct {
	BackupSize      int    `json:"backupSize"`
	BackupStatus    string `json:"backupStatus"`
	BackupId        string `json:"backupId"`
	BackupEndTime   string `json:"backupEndTime"`
	DownloadUrl     string `json:"downloadUrl"`
	BackupType      string `json:"backupType"`
	BackupStartTime string `json:"backupStartTime"`
	DownloadExpires string `json:"downloadExpires"`
}

type BackupPolicy

type BackupPolicy struct {
	BackupDays    string `json:"backupDays"`
	BackupTime    string `json:"backupTime"`
	Persistent    bool   `json:"persistent"`
	ExpireInDays  int    `json:"expireInDays"`
	FreeSpaceInGB int    `json:"freeSpaceInGb"`
}

type Billing

type Billing struct {
	PaymentTiming string      `json:"paymentTiming"`
	Reservation   Reservation `json:"reservation,omitempty"`
}

type Binlog added in v0.9.157

type Binlog struct {
	BinlogId          string `json:"binlogId"`
	BinlogSizeInBytes int64  `json:"binlogSize"`
	BinlogStatus      string `json:"binlogStatus"`
	BinlogStartTime   string `json:"binlogStartTime"`
	BinlogEndTime     string `json:"binlogEndTime"`
}

type BinlogInfo added in v0.9.157

type BinlogInfo struct {
	DownloadUrl     string `json:"downloadUrl"`
	DownloadExpires string `json:"downloadExpires"`
}

type CheckDataArgs added in v0.9.157

type CheckDataArgs struct {
	InstanceId string `json:"instanceId"`
}

type CheckDataResult added in v0.9.157

type CheckDataResult struct {
	Result bool `json:"result"`
}

type CheckGtidArgs added in v0.9.157

type CheckGtidArgs struct {
	InstanceId string `json:"instanceId"`
}

type CheckGtidResult added in v0.9.157

type CheckGtidResult struct {
	Result bool `json:"result"`
}

type CheckPingArgs added in v0.9.157

type CheckPingArgs struct {
	SourceId string `json:"sourceId"`
	TargetId string `json:"targetId"`
}

type CheckPingResult added in v0.9.157

type CheckPingResult struct {
	Result bool `json:"result"`
}

type CheckVersionArgs added in v0.9.157

type CheckVersionArgs struct {
	LeaderId   string `json:"leaderId"`
	FollowerId string `json:"followerId"`
}

type CheckVersionResult added in v0.9.157

type CheckVersionResult struct {
	Result bool `json:"result"`
}

type Client

type Client struct {
	*bce.BceClient
}

Client of RDS service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk, endPoint string) (*Client, error)

func (*Client) AddSqlFilter added in v0.9.157

func (c *Client) AddSqlFilter(instanceId string, args *SqlFilterArgs) error

AddSqlFilter - add sql filter PARAMS:

  • InstanceId: instance id
  • *AddSqlFilterArgs: add sql filter arguments

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) AddToFailInjectWhiteList added in v0.9.157

func (c *Client) AddToFailInjectWhiteList(args *FailInjectArgs) error

AddToFailInjectWhiteList - add instance to failinject whitelist PARAMS:

  • *AddFailInjectArgs: add failinject args

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) AutoRenew added in v0.9.43

func (c *Client) AutoRenew(args *AutoRenewArgs) error

autoRenew - create autoRenew

PARAMS:

  • Args: *autoRenewArgs

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) AzoneMigration added in v0.9.157

func (c *Client) AzoneMigration(instanceId string, args *AzoneMigration) error

AzoneMigration - azone migration

PARAMS:

  • instanceId: the specific rds Instance's ID
  • args: the arguments to set azone migration

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) CheckKillSessionAuth added in v0.9.157

func (c *Client) CheckKillSessionAuth(instanceId string, args *KillSessionAuthArgs) (*KillSessionAuthResult, error)

CheckKillSessionAuth - check kill session auth PARAMS:

  • InstanceId: instance id
  • *KillSessionAuthArgs: the arguments of kill session auth

RETURNS:

  • *KillSessionAuthResult: the result of kill session auth
  • error: nil if success otherwise the specific error

func (*Client) ConfigDiskAutoResize added in v0.9.157

func (c *Client) ConfigDiskAutoResize(instanceId, action string, args *DiskAutoResizeArgs) error

diskAutoResizeConfig - config disk auto resize

PARAMS:

  • Args: *diskAutoResizeArgs

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ConnectionList added in v0.9.157

func (c *Client) ConnectionList(instanceId string) (*ConnectionListResult, error)

ConnectionList - get connection list PARAMS:

  • InstanceId: instance id

RETURNS:

  • *ConnectionListResult: the result of transaction list
  • error: nil if success otherwise the specific error

func (*Client) CreateAccount

func (c *Client) CreateAccount(instanceId string, args *CreateAccountArgs) error

CreateAccount - create a account with the specific parameters

PARAMS:

  • instanceId: the specific instanceId
  • args: the arguments to create a account

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) CreateDatabase added in v0.9.157

func (c *Client) CreateDatabase(instanceId string, args *CreateDatabaseArgs) error

CreateDatabase - create a database with the specific parameters

PARAMS:

  • instanceId: the specific instanceId
  • args: the arguments to create a database

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) CreateInstanceGroup added in v0.9.157

func (c *Client) CreateInstanceGroup(args *InstanceGroupArgs) (*CreateInstanceGroupResult, error)

CreateInstanceGroup - create instance group

PARAMS:

  • args: the arguments to group create

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) CreateRds

func (c *Client) CreateRds(args *CreateRdsArgs) (*CreateResult, error)

CreateRds - create a RDS with the specific parameters

PARAMS:

  • args: the arguments to create a rds

RETURNS:

  • *InstanceIds: the result of create RDS, contains new RDS's instanceIds
  • error: nil if success otherwise the specific error

func (*Client) CreateRdsProxy

func (c *Client) CreateRdsProxy(args *CreateRdsProxyArgs) (*CreateResult, error)

CreateRdsProxy - create a proxy RDS with the specific parameters

PARAMS:

  • args: the arguments to create a readReplica rds

RETURNS:

  • *InstanceIds: the result of create a readReplica RDS, contains the readReplica RDS's instanceIds
  • error: nil if success otherwise the specific error

func (*Client) CreateReadReplica

func (c *Client) CreateReadReplica(args *CreateReadReplicaArgs) (*CreateResult, error)

CreateReadReplica - create a readReplica RDS with the specific parameters

PARAMS:

  • args: the arguments to create a readReplica rds

RETURNS:

  • *InstanceIds: the result of create a readReplica RDS, contains the readReplica RDS's instanceIds
  • error: nil if success otherwise the specific error

func (*Client) DeleteAccount

func (c *Client) DeleteAccount(instanceId, accountName string) error

DeleteAccount - delete an account of a RDS instance

PARAMS:

  • instanceId: the specific instanceId
  • accountName: the specific account's name

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteBackup added in v0.9.157

func (c *Client) DeleteBackup(instanceId, backupId string) error

DeleteBackup - delete backup detail

PARAMS:

  • instanceId: the specific instanceId
  • backupId: the specific backupId

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteDatabase added in v0.9.157

func (c *Client) DeleteDatabase(instanceId, dbName string) error

DeleteDatabase - delete database of RDS instance

PARAMS:

  • instanceId: the specific instanceId
  • dbName: the specific database's name

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteInstanceGroup added in v0.9.157

func (c *Client) DeleteInstanceGroup(groupId string) error

DeleteInstanceGroup - delete instance group

PARAMS:

  • groupId: the instance group id

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteRds

func (c *Client) DeleteRds(instanceIds string) error

DeleteRds - delete a rds

PARAMS:

  • instanceIds: the specific instanceIds

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteRecyclerInstance added in v0.9.157

func (c *Client) DeleteRecyclerInstance(instanceId string) error

DeleteRecyclerInstance - delete recycler instance

PARAMS:

  • instanceId: the specific instanceId

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteSqlFilter added in v0.9.157

func (c *Client) DeleteSqlFilter(instanceId, sqlFilterId string) error

DeleteSqlFilter - delete sql filter

  • InstanceId: instance id
  • SqlFilterId: sql filter id

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DisableErrorLog added in v0.9.157

func (c *Client) DisableErrorLog(instanceId string) (*ErrorLogResult, error)

DisableErrorLog - disable error log PARAMS:

  • InstanceId: instance id

RETURNS:

  • *ErrorLogResult: the result of disable error log
  • error: nil if success otherwise the specific error

func (*Client) DisableSlowSqlFlow added in v0.9.157

func (c *Client) DisableSlowSqlFlow(instanceId string) error

DisableSlowSqlFlow - disable slow sql flow

PARAMS:

  • instanceId: the instance id

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) EnableAutoExpansion added in v0.9.157

func (c *Client) EnableAutoExpansion(instanceId string) (*EnableAutoExpansionResult, error)

EnableAutoExpansion - is support auto expansion

PARAMS:

  • instanceId: the specific rds Instance's ID

RETURNS:

  • *supportEnableDiskAutoResize: the result of list all parameters
  • error: nil if success otherwise the specific error

func (*Client) EnableErrorLog added in v0.9.157

func (c *Client) EnableErrorLog(instanceId string) (*ErrorLogResult, error)

EnableErrorLog - enable error log PARAMS:

  • InstanceId: instance id

RETURNS:

  • *ErrorLogResult: the result of enable error log
  • error: nil if success otherwise the specific error

func (*Client) EnableSlowSqlFlow added in v0.9.157

func (c *Client) EnableSlowSqlFlow(instanceId string) error

EnableSlowSqlFlow - enable slow sql flow

PARAMS:

  • instanceId: the instance id

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) FailInjectStart added in v0.9.157

func (c *Client) FailInjectStart(instanceId string) (*TaskResult, error)

FailInjectStart - start failinject instance PARAMS:

  • InstanceId: instance id

RETURNS:

  • *TaskResult: the result of task
  • error: nil if success otherwise the specific error

func (*Client) FailInjectWhiteList added in v0.9.157

func (c *Client) FailInjectWhiteList() (*FailInjectWhiteListResult, error)

FailInjectWhiteList - get fail inject white list

RETURNS:

  • *FailInjectWhiteListResult: the result of transaction list
  • error: nil if success otherwise the specific error

func (*Client) GetAccount

func (c *Client) GetAccount(instanceId, accountName string) (*Account, error)

GetAccount - get an account of a RDS instance with the specific parameters

PARAMS:

  • instanceId: the specific rds Instance's ID
  • accountName: the specific account's name

RETURNS:

  • *Account: the account's meta
  • error: nil if success otherwise the specific error

func (*Client) GetAutoResizeConfig added in v0.9.157

func (c *Client) GetAutoResizeConfig(instanceId string) (*AutoResizeConfigResult, error)

AutoResizeConfig - show disk auto resize config

PARAMS:

  • instanceId: the specific rds Instance's ID

RETURNS:

  • *AutoResizeConfigResult: the result of autoResizeConfig
  • error: nil if success otherwise the specific error

func (*Client) GetBackupDetail added in v0.9.97

func (c *Client) GetBackupDetail(instanceId string, backupId string) (*BackupDetail, error)

GetBackupDetail - get backup detail of the instance's backup

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance
  • backupId: id of the backup

RETURNS:

  • *Snapshot: result of the backup detail
  • error: nil if success otherwise the specific error

func (*Client) GetBackupList added in v0.9.29

func (c *Client) GetBackupList(instanceId string, args *GetBackupListArgs) (*GetBackupListResult, error)

GetBackupList - get backup list of the instance

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance

RETURNS:

  • *GetBackupListResult: result of the backup list
  • error: nil if success otherwise the specific error

func (*Client) GetBinlogInfo added in v0.9.157

func (c *Client) GetBinlogInfo(instanceId, logId string, downloadValidTimeInSec string) (*GetBinlogInfoResult, error)

GetBinlogInfo - get binlog info of the instance

PARAMS:

  • instanceId: the specific instanceId
  • logId: the specific logId
  • downloadValidTimeInSec: download valid time in seconds

RETURNS:

  • *BinlogInfo: result of the binlog info
  • error: nil if success otherwise the specific error

func (*Client) GetBinlogList added in v0.9.157

func (c *Client) GetBinlogList(instanceId, dateTime string) (*GetBinlogListResult, error)

GetBinlogList - get binlog list of the instance

PARAMS:

  • instanceId: the specific instanceId
  • datetime: datetime of the binlog

RETURNS:

  • *BinlogResult: result of the binlog list
  • error: nil if success otherwise the specific error

func (*Client) GetDbListSize added in v0.9.157

func (c *Client) GetDbListSize(instanceId string) (*DbListResult, error)

GetDbListSize - get database list size PARAMS:

  • InstanceId: instance id

RETURNS:

  • *DbListResult: the result of database list size
  • error: nil if success otherwise the specific error

func (*Client) GetDetail

func (c *Client) GetDetail(instanceId string) (*Instance, error)

GetDetail - get a specific rds Instance's detail

PARAMS:

  • instanceId: the specific rds Instance's ID

RETURNS:

  • *Instance: the specific rdsInstance's detail
  • error: nil if success otherwise the specific error

func (*Client) GetDiskInfo added in v0.9.157

func (c *Client) GetDiskInfo(instanceId string) (*DiskInfoResult, error)

GetDiskInfo - get disk info PARAMS:

  • InstanceId: instance id

RETURNS:

  • *DiskInfoResult: the result of disk info
  • error: nil if success otherwise the specific error

func (*Client) GetErrorLogList added in v0.9.157

func (c *Client) GetErrorLogList(instanceId string, args *ErrorLogListArgs) (*ErrorLogListResult, error)

GetErrorLogList - get error log list PARAMS:

  • InstanceId: instance id
  • *ErrorLogListArgs: error log list arguments

RETURNS:

  • *ErrorLogListResult: the result of error log list
  • error: nil if success otherwise the specific error

func (*Client) GetErrorLogStatus added in v0.9.157

func (c *Client) GetErrorLogStatus(instanceId string) (*ErrorLogStatusResult, error)

GetErrorLogStatus - get error log status PARAMS:

  • InstanceId: instance id

RETURNS:

  • *ErrorLogStatusResult: the result of error log status
  • error: nil if success otherwise the specific error

func (*Client) GetKillSessionHistory added in v0.9.157

func (c *Client) GetKillSessionHistory(instanceId string, args *KillSessionHistory) (*KillSessionHistoryResult, error)

GetKillSessionHistory - get kill session history PARAMS:

  • InstanceId: instance id
  • *KillSessionHistory: the arguments of kill session history

RETURNS:

  • *KillSessionHistoryResult: the result of kill session history
  • error: nil if success otherwise the specific error

func (*Client) GetKillSessionTypes added in v0.9.157

func (c *Client) GetKillSessionTypes(instanceId string) (*KillSessionTypesResult, error)

GetKillSessionTypes - get kill session types PARAMS:

  • InstanceId: instance id

RETURNS:

  • *KillSessionTypesResult: the result of the kill session types
  • error: nil if success otherwise the specific error

func (*Client) GetOrderStatus added in v0.9.157

func (c *Client) GetOrderStatus(orderId string) (*OrderStatusResult, error)

GetOrderStatus - get order status PARAMS:

  • OrderId: order id

RETURNS:

  • *OrderStatusResult: the result of order status
  • error: nil if success otherwise the specific error

func (*Client) GetSecurityIps added in v0.9.37

func (c *Client) GetSecurityIps(instanceId string) (*GetSecurityIpsResult, error)

GetSecurityIps - get all SecurityIps

PARAMS:

  • instanceId: the specific rds Instance's ID

RETURNS:

  • *GetSecurityIpsResult: all security IP
  • error: nil if success otherwise the specific error

func (*Client) GetSessionDetail added in v0.9.157

func (c *Client) GetSessionDetail(instanceId string, args *SessionDetailArgs) (*SessionDetailResult, error)

GetSessionDetail - get session detail PARAMS:

  • InstanceId: instance id
  • *SessionDetailArgs: the arguments of session detail

RETURNS:

  • *SessionDetailResult: the result of the session detail
  • error: nil if success otherwise the specific error

func (*Client) GetSessionStatistics added in v0.9.157

func (c *Client) GetSessionStatistics(instanceId string) (*SessionStatisticsResult, error)

GetSessionStatistics - get session statistics PARAMS:

  • InstanceId: instance id

RETURNS:

  • *SessionStatisticsResult: the result of the session statistics
  • error: nil if success otherwise the specific error

func (*Client) GetSessionSummary added in v0.9.157

func (c *Client) GetSessionSummary(instanceId string) (*SessionSummaryResult, error)

GetSessionSummary - get session summary PARAMS:

  • InstanceId: instance id

RETURNS:

  • *SessionSummaryResult: the result of the session summary
  • error: nil if success otherwise the specific error

func (*Client) GetSlowLogDownloadDetail added in v0.9.143

func (c *Client) GetSlowLogDownloadDetail(instanceId, logId, downloadValidTimeInSec string) (*SlowLogDownloadDetail, error)

getSlowLogDownloadDetail

PARAMS:

  • Args: *slowLogDownloadTaskListArgs

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) GetSlowLogDownloadTaskList added in v0.9.143

func (c *Client) GetSlowLogDownloadTaskList(instanceId, datetime string) (*SlowLogDownloadTaskListResult, error)

getSlowLogDownloadTaskList

PARAMS:

  • instanceId: the specific rds Instance's ID
  • datetime: the log time. range(datetime, datetime + 24 hours)

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlAdvice added in v0.9.157

func (c *Client) GetSlowSqlAdvice(instanceId, sqlId, schema string) (*SlowSqlAdviceResult, error)

GetSlowSqlAdvice - get slow sql advice PARAMS:

  • InstanceId: instance id
  • SqlId: the sql id
  • Schema: the schema

RETURNS:

  • *SlowSqlAdviceResult: the result of slow sql advice
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlBySqlId added in v0.9.157

func (c *Client) GetSlowSqlBySqlId(instanceId, sqlId string) (*SlowSqlItem, error)

GetSlowSqlBySqlId - get slow sql by sql id PARAMS:

  • InstanceId: instance id
  • SqlId: the sql id

RETURNS:

  • *SlowSqlItem: the result of slow sql detail
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlDuration added in v0.9.157

func (c *Client) GetSlowSqlDuration(instanceId string, args *GetSlowSqlDurationArgs) (*SlowSqlDurationResult, error)

GetSlowSqlDuration - get slow sql duration

PARAMS:

  • InstanceId: instance id
  • *GetSlowSqlDurationArgs: gs query arguments of slow sql duration

RETURNS:

  • *SlowSqlDurationResult: the result of slow sql duration
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlExplain added in v0.9.157

func (c *Client) GetSlowSqlExplain(instanceId, sqlId, schema string) (*SlowSqlExplainResult, error)

GetSlowSqlExplain - get slow sql explain PARAMS:

  • InstanceId: instance id
  • SqlId: the sql id
  • Schema: the schema

RETURNS:

  • *SlowSqlExplainResult: the result of slow sql explain
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlIndex added in v0.9.157

func (c *Client) GetSlowSqlIndex(instanceId string, args *GetSlowSqlIndexArgs) (*SlowSqlIndexResult, error)

GetSlowSqlIndex - get slow sql index PARAMS:

  • InstanceId: instance id
  • *GetSlowSqlIndexArgs: the arguments of slow sql index

RETURNS:

  • *SlowSqlIndexResult: the result of slow sql index
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlList added in v0.9.157

func (c *Client) GetSlowSqlList(instanceId string, args *GetSlowSqlArgs) (*SlowSqlListResult, error)

GetSlowSqlList - get slow sql list

PARAMS:

  • InstanceId: instance id
  • *GetSlowSqlArgs: the arguments of slow sql list

RETURNS:

  • *SlowSqlListResult: the result of slow sql list
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlSchema added in v0.9.157

func (c *Client) GetSlowSqlSchema(instanceId, sqlId, schema string) (*SlowSqlSchemaResult, error)

GetSlowSqlSchema - get slow sql schema PARAMS:

  • InstanceId: instance id
  • SqlId: the sql id
  • Schema: the schema

RETURNS:

  • *SlowSqlSchemaResult: the result of slow sql schema
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlSource added in v0.9.157

func (c *Client) GetSlowSqlSource(instanceId string, args *GetSlowSqlSourceArgs) (*SlowSqlSourceResult, error)

GetSlowSqlSource - get slow sql source

PARAMS:

  • InstanceId: instance id
  • *GetSlowSqlSourceArgs: gs query arguments of slow sql srouce

RETURNS:

  • *SlowSqlSourceResult: the result of slow sql souce
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlStatsDigest added in v0.9.157

func (c *Client) GetSlowSqlStatsDigest(instanceId string, args *GetSlowSqlArgs) (*SlowSqlDigestResult, error)

GetSlowSqlStatsDigest - get slow sql stats digest

PARAMS:

  • InstanceId: instance id
  • *GetSlowSqlArgs: the arguments of slow sql

RETURNS:

  • *SlowSqlDigestResult: the result of slow sql stats digest
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlTable added in v0.9.157

func (c *Client) GetSlowSqlTable(instanceId, sqlId, schema, table string) (*SlowSqlTableResult, error)

GetSlowSqlTable - get slow sql table PARAMS:

  • InstanceId: instance id
  • SqlId: the sql id
  • Schema: the schema
  • Table: the table

RETURNS:

  • *SlowSqlTableResult: the result of slow sql table
  • error: nil if success otherwise the specific error

func (*Client) GetSlowSqlTrend added in v0.9.157

func (c *Client) GetSlowSqlTrend(instanceId string, args *GetSlowSqlTrendArgs) (*SlowSqlTrendResult, error)

GetSlowSqlTrend - get slow sql trend PARAMS:

  • InstanceId: instance id
  • *GetSlowSqlTrendArgs: the arguments of slow sql trend

RETURNS:

  • *SlowSqlTrendResult: the result of slow sql trend
  • error: nil if success otherwise the specific error

func (*Client) GetSqlFilterDetail added in v0.9.157

func (c *Client) GetSqlFilterDetail(instanceId, sqlFilterId string) (*SqlFilterItem, error)

GetSqlFilterDetail - get sql filter detail PARAMS:

  • InstanceId: instance id
  • SqlFilterId: sql filter id

RETURNS:

  • *SqlFilterDetailResult: the result of sql filter detail
  • error: nil if success otherwise the specific error

func (*Client) GetSqlFilterList added in v0.9.157

func (c *Client) GetSqlFilterList(instanceId string) (*SqlFilterListResult, error)

GetSqlFilterList - get sql filter list PARAMS:

  • InstanceId: instance id

RETURNS:

  • *SqlFilterListResult: the result of sql filter list
  • error: nil if success otherwise the specific error

func (*Client) GetTableListInfo added in v0.9.157

func (c *Client) GetTableListInfo(instanceId string, args *GetTableListArgs) (*TableListResult, error)

GetTableListInfo - get table list info PARAMS:

  • InstanceId: instance id
  • *GetTableListArgs: the arguments of table list info

RETURNS:

  • *TableListResult: the result of table list info
  • error: nil if success otherwise the specific error

func (*Client) GetZoneList added in v0.9.29

func (c *Client) GetZoneList() (*GetZoneListResult, error)

GetZoneList - list all zone

PARAMS:

  • cli: the client agent which can perform sending request

RETURNS:

  • *GetZoneListResult: result of the zone list
  • error: nil if success otherwise the specific error

func (*Client) InnodbStatus added in v0.9.157

func (c *Client) InnodbStatus(instanceId string) (*InnodbStatusResult, error)

InnodbStatus - get innodb status PARAMS:

  • InstanceId: instance id

RETURNS:

  • *InnodbStatusResult: the result of innodb status
  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupAdd added in v0.9.157

func (c *Client) InstanceGroupAdd(groupId string, args *InstanceGroupAddArgs) error

InstanceGroupAdd - add instance to instance group

PARAMS:

  • args: the arguments of add instance to instance group

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupBatchAdd added in v0.9.157

func (c *Client) InstanceGroupBatchAdd(args *InstanceGroupBatchAddArgs) error

InstanceGroupBatchAdd - batch add instance to instance group

PARAMS:

  • args: the arguments of batch add instance to instance group

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupCheckData added in v0.9.157

func (c *Client) InstanceGroupCheckData(args *CheckDataArgs) (*CheckDataResult, error)

InstanceGroupCheckData - instance group data check

PARAMS:

  • args: the arguments of data check

RETURNS:

  • *CheckDataResult: the result of data check
  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupCheckGtid added in v0.9.157

func (c *Client) InstanceGroupCheckGtid(args *CheckGtidArgs) (*CheckGtidResult, error)

InstanceGroupCheckGtid - check the gtid of instance group

PARAMS:

  • args: the arguments to check gtid

RETURNS:

  • *CheckGtidResult: the result of check gtid
  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupCheckPing added in v0.9.157

func (c *Client) InstanceGroupCheckPing(args *CheckPingArgs) (*CheckPingResult, error)

InstanceGroupCheckPing - instance group connectivity check

PARAMS:

  • args: the arguments of connectivity check

RETURNS:

  • *CheckPingResult: the result of connectivity check
  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupCheckVersion added in v0.9.157

func (c *Client) InstanceGroupCheckVersion(args *CheckVersionArgs) (*CheckVersionResult, error)

InstanceGroupCheckVersion - instance group version check

PARAMS:

  • args: the arguments of version check

RETURNS:

  • *CheckVersionResult: the result of data check
  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupDetail added in v0.9.157

func (c *Client) InstanceGroupDetail(groupId string) (*InstanceGroupDetailResult, error)

InstanceGroupDetail - show the detail of instance group

PARAMS:

RETURNS:

  • *InstanceGroupDetailResult: the result of instance group detail
  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupForceChange added in v0.9.157

func (c *Client) InstanceGroupForceChange(groupId string, args *ForceChangeArgs) (*ForceChangeResult, error)

InstanceGroupForceChange - force change instance

PARAMS:

  • args: the arguments used to force change instance

RETURNS:

  • *ForceChangeResult: the result of force change
  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupLeaderChange added in v0.9.157

func (c *Client) InstanceGroupLeaderChange(groupId string, args *GroupLeaderChangeArgs) error

InstanceGroupChangeLeader - change leader of instance group

PARAMS:

  • args: the arguments used to change leader of instance group

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) InstanceGroupRemove added in v0.9.157

func (c *Client) InstanceGroupRemove(groupId, instanceId string) error

InstanceGroupRemove - remove instance to instance group

PARAMS:

  • args: the arguments of remove instance to instance group

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) InstanceMinorVersionList added in v0.9.157

func (c *Client) InstanceMinorVersionList(instanceId string) (*MinorVersionListResult, error)

InstanceMinorVersionList - list minor versions available for instance

PARAMS:

  • InstanceId: instance id

RETURNS:

  • *MinorVersionListResult: the result of list minor versions available for instance
  • error: nil if success otherwise the specific error

func (*Client) InstanceUpgradeMinorVersion added in v0.9.157

func (c *Client) InstanceUpgradeMinorVersion(instanceId string, args *UpgradeMinorVersionArgs) error

InstanceUpgradeMinorVersion - upgrade minor version

PARAMS:

  • instanceId: the instance id
  • args: the arguments used to upgrade minor version

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) IsAllowedSqlFilter added in v0.9.157

func (c *Client) IsAllowedSqlFilter(instanceId string) (*IsAllowedResult, error)

IsAllowedSqlFilter - check if sql filter is allowed PARAMS:

  • InstanceId: instance id

RETURNS:

  • *IsAllowedResult: the result of sql filter allowed
  • error: nil if success otherwise the specific error

func (*Client) KillSession added in v0.9.157

func (c *Client) KillSession(instanceId string, args *KillSessionArgs) (*KillSessionResult, error)

KillSession - kill session PARAMS:

  • InstanceId: instance id
  • *KillSessionArgs: the arguments of kill session

RETURNS:

  • *KillSessionResult: the result of kill session
  • error: nil if success otherwise the specific error

func (*Client) ListAccount

func (c *Client) ListAccount(instanceId string) (*ListAccountResult, error)

ListAccount - list all account of a RDS instance with the specific parameters

PARAMS:

  • instanceId: the specific rds Instance's ID

RETURNS:

  • *ListAccountResult: the result of list all account, contains all accounts' meta
  • error: nil if success otherwise the specific error

func (*Client) ListDatabases added in v0.9.157

func (c *Client) ListDatabases(instanceId string) (*ListDatabasesResult, error)

ListDatabases - list all databases

PARAMS:

  • instanceId: id of the instance

RETURNS:

  • *ListDatabasesResult: result of the database list
  • error: nil if success otherwise the specific error

func (*Client) ListInstanceGroup added in v0.9.157

func (c *Client) ListInstanceGroup(args *ListInstanceGroupArgs) (*InstanceGroupListResult, error)

ListInstanceGroup - list all instace group

PARAMS:

  • manner: the specific manner
  • order: asc or desc
  • orderBy: the specific orderBy
  • pageNo: the specific pageNo
  • pageSize: the specific pageSize

RETURNS:

  • *InstanceGroupResult: the result of list all instance group
  • error: nil if success otherwise the specific error

func (*Client) ListParameters added in v0.9.37

func (c *Client) ListParameters(instanceId string) (*ListParametersResult, error)

ListParameters - list all parameters of a RDS instance

PARAMS:

  • instanceId: the specific rds Instance's ID

RETURNS:

  • *ListParametersResult: the result of list all parameters
  • error: nil if success otherwise the specific error

func (*Client) ListRds

func (c *Client) ListRds(args *ListRdsArgs) (*ListRdsResult, error)

ListRds - list all RDS with the specific parameters

PARAMS:

  • args: the arguments to list all RDS

RETURNS:

  • *ListRdsResult: the result of list all RDS, contains all rds' meta
  • error: nil if success otherwise the specific error

func (*Client) ListRecyclerInstance added in v0.9.157

func (c *Client) ListRecyclerInstance(args *ListRdsArgs) (*RecyclerListResult, error)

ListRecyclerInstance - list all recycler instance

PARAMS:

  • marker: the specific marker
  • maxKeys: the specific max keys

RETURNS:

  • *RecyclerListResult: the result of list all recycler instance
  • error: nil if success otherwise the specific error

func (*Client) ListSubnets added in v0.9.29

func (c *Client) ListSubnets(args *ListSubnetsArgs) (*ListSubnetsResult, error)

ListsSubnet - list all Subnets

PARAMS:

  • cli: the client agent which can perform sending request
  • args: the arguments to list all subnets, not necessary

RETURNS:

  • *ListSubnetsResult: result of the subnet list
  • error: nil if success otherwise the specific error

func (*Client) ModifyAccountDesc added in v0.9.157

func (c *Client) ModifyAccountDesc(instanceId, accountName string, args *ModifyAccountDesc) error

AccountDesc - modify account's description

PARAMS:

  • instanceIds: the specific instanceIds
  • accountName: the specific account's name
  • args: the arguments used to modify account's description

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ModifyBackupPolicy added in v0.9.97

func (c *Client) ModifyBackupPolicy(instanceId string, args *ModifyBackupPolicyArgs) error

ModifyBackupPolicy - modify backup policy

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance
  • args: the arguments to modify public access

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ModifyDatabaseDesc added in v0.9.157

func (c *Client) ModifyDatabaseDesc(instanceId, dbName string, args *ModifyDatabaseDesc) error

DatabaseRemark - update database's remark

PARAMS:

  • instanceIds: the specific instanceIds
  • dbName: the specific database's name
  • args: the arguments used to modify database's description

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ModifyEndpoint added in v0.9.29

func (c *Client) ModifyEndpoint(instanceId string, args *ModifyEndpointArgs) error

ModifyEndpoint - modify the prefix of endpoint

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance
  • args: the arguments to modify endpoint

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ModifyPublicAccess added in v0.9.29

func (c *Client) ModifyPublicAccess(instanceId string, args *ModifyPublicAccessArgs) error

ModifyPublicAccess - modify public access

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance
  • args: the arguments to modify public access

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ModifySyncMode added in v0.9.29

func (c *Client) ModifySyncMode(instanceId string, args *ModifySyncModeArgs) error

UpdateSyncMode - update sync mode of a specified instance

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance
  • args: the arguments to update syncMode

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ParameterHistory added in v0.9.157

func (c *Client) ParameterHistory(instanceId string) (*ParameterHistoryResult, error)

ParameterHistory - list all parameter history

PARAMS:

  • instanceId: the specific rds Instance's ID

RETURNS:

  • *ParameterHistory: the result of paremeters history
  • error: nil if success otherwise the specific error

func (*Client) ProcessKill added in v0.9.157

func (c *Client) ProcessKill(instanceId string, args *ProcessArgs) error

ProcessKill - kill process PARAMS:

  • InstanceId: instance id
  • *ProcessArgs: process arguments

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ProcessList added in v0.9.157

func (c *Client) ProcessList(instanceId string) (*ProcessListResult, error)

ProcessList - get process list PARAMS:

  • InstanceId: instance id

RETURNS:

  • *ProcessListResult: the result of process list
  • error: nil if success otherwise the specific error

func (*Client) RebootInstance added in v0.9.29

func (c *Client) RebootInstance(instanceId string) error

RebootInstance - reboot a specified instance

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance to be rebooted

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) RecoveryToSourceInstanceByDatetime added in v0.9.157

func (c *Client) RecoveryToSourceInstanceByDatetime(instanceId string, args *RecoveryByDatetimeArgs) error

RecoveryToSourceInstanceByDatetime - recover by datetime

PARAMS:

  • instanceId: id of the instance
  • args: the arguments to recover the instance

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) RecoveryToSourceInstanceBySnapshot added in v0.9.157

func (c *Client) RecoveryToSourceInstanceBySnapshot(instanceId string, args *RecoveryBySnapshotArgs) error

RecoveryToSourceInstanceBySnapshot - recover by snapshot

PARAMS:

  • instanceId: id of the instance
  • args: the arguments to recover the instance

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) RecyclerRecover added in v0.9.157

func (c *Client) RecyclerRecover(args *RecyclerRecoverArgs) error

RecyclerRecover - recover recycler instance

PARAMS:

  • args: the arguments used to recover recycler instance

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) RemoveFailInjectWhiteList added in v0.9.157

func (c *Client) RemoveFailInjectWhiteList(args *FailInjectArgs) error

RemoveFailInjectWhiteList - remove instance to failinject whitelist PARAMS:

  • *RemoveFailInjectArgs: remove failinject args

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) Request added in v0.9.107

func (c *Client) Request(method, uri string, body interface{}) (interface{}, error)

func (*Client) ResizeRds

func (c *Client) ResizeRds(instanceId string, args *ResizeRdsArgs) error

ResizeRds - resize an RDS with the specific parameters

PARAMS:

  • instanceId: the specific instanceId
  • args: the arguments to resize an RDS

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) SlowSqlFlowStatus added in v0.9.157

func (c *Client) SlowSqlFlowStatus(instanceId string) (*SlowSqlFlowStatusResult, error)

SlowSqlFlowStatus - get slow sql flow status

PARAMS:

  • InstanceId: instance id

RETURNS:

  • *SlowSqlFlowStatusResult: the result of slow sql flow status
  • error: nil if success otherwise the specific error

func (*Client) StartOrStopSqlFilter added in v0.9.157

func (c *Client) StartOrStopSqlFilter(instanceId, sqlFilterId string, args *StartOrStopSqlFilterArgs) error

StartOrStopSqlFilter - start or stop sql filter

  • InstanceId: instance id
  • SqlFilterId: sql filter id
  • *StartOrStopSqlFilterArgs: start or stop sql filter arguments

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) TaskList added in v0.9.157

func (c *Client) TaskList(args *TaskListArgs) (*TaskListResult, error)

TaskList - task list

PARAMS:

  • args: the arguments to list tasks

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) TransactionList added in v0.9.157

func (c *Client) TransactionList(instanceId string) (*TransactionListResult, error)

TransactionList - get transaction list PARAMS:

  • InstanceId: instance id

RETURNS:

  • *TransactionListResult: the result of transaction list
  • error: nil if success otherwise the specific error

func (*Client) UpdateAccountPassword added in v0.9.157

func (c *Client) UpdateAccountPassword(instanceId, accountName string, args *UpdatePasswordArgs) error

UpdateAccountPassword - update account's password

PARAMS:

  • instanceId: the specific instanceId
  • accountName: the specific account's name
  • args: the arguments to update account's password

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateAccountPrivileges added in v0.9.157

func (c *Client) UpdateAccountPrivileges(instanceId, accountName string, args *UpdateAccountPrivileges) error

UpdateAccountPrivileges - upate account's privileges

PARAMS:

  • instanceIds: the specific instanceIds
  • accountName: the specific account's name
  • args: the arguments used to modify account's privileges

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateDatabasePort added in v0.9.157

func (c *Client) UpdateDatabasePort(instanceId string, args *UpdateDatabasePortArgs) error

UpdateDatabasePort - update database port

PARAMS:

  • instanceId: id of the instance
  • args: the arguments to update database port

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateInstanceGroupName added in v0.9.157

func (c *Client) UpdateInstanceGroupName(groupId string, args *InstanceGroupNameArgs) error

UpdateInstanceGroupName - update instance group name

PARAMS:

  • args: the arguments of update instance group name

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateInstanceName added in v0.9.29

func (c *Client) UpdateInstanceName(instanceId string, args *UpdateInstanceNameArgs) error

UpdateInstanceName - update name of a specified instance

PARAMS:

  • cli: the client agent which can perform sending request
  • instanceId: id of the instance
  • args: the arguments to update instanceName

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateMaintainTime added in v0.9.157

func (c *Client) UpdateMaintainTime(instanceId string, args *MaintainTimeArgs) error

maintaintime - update maintaintime

PARAMS:

  • Args: *maintainTimeArgs

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateParameter added in v0.9.37

func (c *Client) UpdateParameter(instanceId, Etag string, args *UpdateParameterArgs) error

UpdateParameter - update Parameter

PARAMS:

  • instanceId: the specific rds Instance's ID
  • Etag: get latest etag by ListParameters
  • Args: *UpdateParameterArgs

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateSecurityIps added in v0.9.37

func (c *Client) UpdateSecurityIps(instanceId, Etag string, args *UpdateSecurityIpsArgs) error

UpdateSecurityIps - update SecurityIps

PARAMS:

  • instanceId: the specific rds Instance's ID
  • Etag: get latest etag by GetSecurityIps
  • Args: all SecurityIps

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateSqlFilter added in v0.9.157

func (c *Client) UpdateSqlFilter(instanceId, sqlFilterId string, args *SqlFilterArgs) error

UpdateSqlFilter - update sql filter PARAMS:

  • InstanceId: instance id
  • SqlFilterId: sql filter id
  • *AddSqlFilterArgs: add sql filter arguments

RETURNS:

  • error: nil if success otherwise the specific error

type Commands added in v0.9.157

type Commands struct {
	Command []string `json:"command"`
}

type ConnectionItem added in v0.9.157

type ConnectionItem struct {
	LocalAddress   string `json:"localAddress"`
	Proto          string `json:"proto"`
	SendQ          int    `json:"sendQ"`
	ForeignAddress string `json:"foreignAddress"`
	RecvQ          int    `json:"recvQ"`
}

type ConnectionListResult added in v0.9.157

type ConnectionListResult struct {
	Datetime    string           `json:"datetime"`
	ConnectList []ConnectionItem `json:"connectList"`
}

type CreateAccountArgs

type CreateAccountArgs struct {
	ClientToken        string              `json:"-"`
	AccountName        string              `json:"accountName"`
	Password           string              `json:"password"`
	AccountType        string              `json:"accountType,omitempty"`
	DatabasePrivileges []DatabasePrivilege `json:"databasePrivileges,omitempty"`
	Desc               string              `json:"desc,omitempty"`
	Type               string              `json:"type,omitempty"`
}

type CreateDatabaseArgs added in v0.9.157

type CreateDatabaseArgs struct {
	CharacterSetName  string             `json:"characterSetName"`
	DbName            string             `json:"dbName"`
	Remark            string             `json:"remark"`
	AccountPrivileges []AccountPrivilege `json:"accountPrivileges"`
}

type CreateInstanceGroupResult added in v0.9.157

type CreateInstanceGroupResult struct {
	Result int `json:"result"`
}

type CreateRdsArgs

type CreateRdsArgs struct {
	ClientToken          string                          `json:"-"`
	Billing              Billing                         `json:"billing"`
	PurchaseCount        int                             `json:"purchaseCount,omitempty"`
	InstanceName         string                          `json:"instanceName,omitempty"`
	Engine               string                          `json:"engine"`
	EngineVersion        string                          `json:"engineVersion"`
	Category             string                          `json:"category,omitempty"`
	CpuCount             int                             `json:"cpuCount"`
	MemoryCapacity       float64                         `json:"memoryCapacity"`
	VolumeCapacity       int                             `json:"volumeCapacity"`
	DiskIoType           string                          `json:"diskIoType"`
	ZoneNames            []string                        `json:"zoneNames,omitempty"`
	VpcId                string                          `json:"vpcId,omitempty"`
	IsDirectPay          bool                            `json:"isDirectPay,omitempty"`
	Subnets              []SubnetMap                     `json:"subnets,omitempty"`
	Tags                 []model.TagModel                `json:"tags,omitempty"`
	AutoRenewTimeUnit    string                          `json:"autoRenewTimeUnit,omitempty"`
	AutoRenewTime        int                             `json:"autoRenewTime,omitempty"`
	BgwGroupId           string                          `json:"bgwGroupId,omitempty"`
	BgwGroupExclusive    bool                            `json:"bgwGroupExclusive,omitempty"`
	CharacterSetName     string                          `json:"characterSetName,omitempty"`
	LowerCaseTableNames  int                             `json:"lowerCaseTableNames,omitempty"`
	ParameterTemplateId  string                          `json:"parameterTemplateId,omitempty"`
	Ovip                 string                          `json:"ovip,omitempty"`
	EntryPort            string                          `json:"entryPort,omitempty"`
	ReplicationType      string                          `json:"replicationType,omitempty"`
	ResourceGroupId      string                          `json:"resourceGroupId,omitempty"`
	InitialDataReference *InitialData                    `json:"initialDataReference,omitempty"`
	Data                 []RecoveryToSourceInstanceModel `json:"data,omitempty"`
}

type CreateRdsProxyArgs

type CreateRdsProxyArgs struct {
	ClientToken      string           `json:"-"`
	Billing          Billing          `json:"billing"`
	SourceInstanceId string           `json:"sourceInstanceId"`
	InstanceName     string           `json:"instanceName,omitempty"`
	NodeAmount       int              `json:"nodeAmount"`
	ZoneNames        []string         `json:"zoneNames,omitempty"`
	VpcId            string           `json:"vpcId,omitempty"`
	IsDirectPay      bool             `json:"isDirectPay,omitempty"`
	Subnets          []SubnetMap      `json:"subnets,omitempty"`
	Tags             []model.TagModel `json:"tags,omitempty"`
	Ovip             string           `json:"ovip,omitempty"`
	EntryPort        string           `json:"entryPort,omitempty"`
	ResourceGroupId  string           `json:"resourceGroupId,omitempty"`
}

type CreateReadReplicaArgs

type CreateReadReplicaArgs struct {
	ClientToken      string           `json:"-"`
	Billing          Billing          `json:"billing"`
	PurchaseCount    int              `json:"purchaseCount,omitempty"`
	SourceInstanceId string           `json:"sourceInstanceId"`
	InstanceName     string           `json:"instanceName,omitempty"`
	CpuCount         int              `json:"cpuCount"`
	MemoryCapacity   float64          `json:"memoryCapacity"`
	VolumeCapacity   int              `json:"volumeCapacity"`
	ZoneNames        []string         `json:"zoneNames,omitempty"`
	VpcId            string           `json:"vpcId,omitempty"`
	IsDirectPay      bool             `json:"isDirectPay,omitempty"`
	Subnets          []SubnetMap      `json:"subnets,omitempty"`
	Tags             []model.TagModel `json:"tags,omitempty"`
	DiskIoType       string           `json:"diskIoType,omitempty"`
	Ovip             string           `json:"ovip,omitempty"`
	EntryPort        string           `json:"entryPort,omitempty"`
	ResourceGroupId  string           `json:"resourceGroupId,omitempty"`
}

type CreateResult

type CreateResult struct {
	InstanceIds []string `json:"instanceIds"`
	OrderId     string   `json:"orderId"`
}

type Database added in v0.9.157

type Database struct {
	DbName            string             `json:"dbName"`
	CharacterSetName  string             `json:"characterSetName"`
	Remark            string             `json:"remark"`
	DbStatus          string             `json:"dbStatus"`
	AccountPrivileges []AccountPrivilege `json:"accountPrivileges"`
}

type DatabasePrivilege

type DatabasePrivilege struct {
	DbName   string `json:"dbName"`
	AuthType string `json:"authType"`
}

type DbInfo added in v0.9.157

type DbInfo struct {
	DbInfoItems []DbInfoItem `json:"dbList"`
}

type DbInfoItem added in v0.9.157

type DbInfoItem struct {
	Size        string `json:"size"`
	TableSchema string `json:"tableSchema"`
}

type DbListResult added in v0.9.157

type DbListResult struct {
	Result DbInfo `json:"result"`
}

type DiskAutoResizeArgs added in v0.9.157

type DiskAutoResizeArgs struct {
	FreeSpaceThreshold int `json:"freeSpaceThreshold,omitempty"`
	DiskMaxLimit       int `json:"diskMaxLimit,omitempty"`
}

type DiskInfo added in v0.9.157

type DiskInfo struct {
	Grow      float64 `json:"grow"`
	UseDay    float64 `json:"useDay"`
	DiskFree  float64 `json:"diskFree"`
	DiskUse   float64 `json:"diskUse"`
	DiskQuota float64 `json:"diskQuota"`
}

type DiskInfoResult added in v0.9.157

type DiskInfoResult struct {
	Result DiskInfo `json:"result"`
}

type EnableAutoExpansionResult added in v0.9.157

type EnableAutoExpansionResult struct {
	SupportEnableDiskAutoResize int `json:"supportEnableDiskAutoResize"`
}

type Endpoint

type Endpoint struct {
	Address string `json:"address"`
	Port    int    `json:"port"`
	VnetIp  string `json:"vnetIp"`
	InetIp  string `json:"inetIp"`
}

type ErrorLogItem added in v0.9.157

type ErrorLogItem struct {
	ConnectionId string `json:"connectionId"`
	ErrCode      string `json:"errCode"`
	ErrInfo      string `json:"errInfo"`
	Label        string `json:"label"`
	LogId        string `json:"logId"`
	Subsystem    string `json:"subsystem"`
	Time         string `json:"time"`
}

type ErrorLogListArgs added in v0.9.157

type ErrorLogListArgs struct {
	Page     int    `json:"page,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
	Start    string `json:"start,omitempty"`
	End      string `json:"end,omitempty"`
	Label    string `json:"label,omitempty"`
}

type ErrorLogListResult added in v0.9.157

type ErrorLogListResult struct {
	Items      []ErrorLogItem `json:"items"`
	TotalCount int64          `json:"totalCount"`
}

type ErrorLogResult added in v0.9.157

type ErrorLogResult struct {
	Success bool `json:"success"`
}

type ErrorLogStatusResult added in v0.9.157

type ErrorLogStatusResult struct {
	Enabled int `json:"enabled"`
}

type FailInjectArgs added in v0.9.157

type FailInjectArgs struct {
	AppList []string `json:"appList"`
}

type FailInjectWhiteListResult added in v0.9.157

type FailInjectWhiteListResult struct {
	AppList []string `json:"appList"`
}

type ForceChangeArgs added in v0.9.157

type ForceChangeArgs struct {
	LeaderId  string `json:"leaderId"`
	Force     int    `json:"force,omitempty"`
	MaxBehind int    `json:"maxBehind,omitempty"`
}

type ForceChangeResult added in v0.9.157

type ForceChangeResult struct {
	BehindMaster int `json:"behind_master"`
}

type GetBackupListArgs added in v0.9.29

type GetBackupListArgs struct {
	Marker  string
	MaxKeys int
}

type GetBackupListResult added in v0.9.29

type GetBackupListResult struct {
	Marker      string         `json:"marker"`
	MaxKeys     int            `json:"maxKeys"`
	IsTruncated bool           `json:"isTruncated"`
	NextMarker  string         `json:"nextMarker"`
	Backups     []BackupDetail `json:"backups"`
}

type GetBinlogInfoResult added in v0.9.157

type GetBinlogInfoResult struct {
	Binlog BinlogInfo `json:"binlog"`
}

type GetBinlogListResult added in v0.9.157

type GetBinlogListResult struct {
	Binlogs []Binlog `json:"binlogs"`
}

type GetSecurityIpsResult added in v0.9.37

type GetSecurityIpsResult struct {
	Etag        string   `json:"etag"`
	SecurityIps []string `json:"securityIps"`
}

type GetSlowSqlArgs added in v0.9.157

type GetSlowSqlArgs struct {
	Page     int    `json:"page,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
	Sort     string `json:"sort,omitempty"`
	Schema   string `json:"schema,omitempty"`
	Digest   string `json:"digest,omitempty"`
	Start    string `json:"start,omitempty"`
	End      string `json:"end,omitempty"`
}

type GetSlowSqlDurationArgs added in v0.9.157

type GetSlowSqlDurationArgs struct {
	Schema string `json:"schema,omitempty"`
	Digest string `json:"digest,omitempty"`
	Start  string `json:"start,omitempty"`
	End    string `json:"end,omitempty"`
}

type GetSlowSqlIndexArgs added in v0.9.157

type GetSlowSqlIndexArgs struct {
	SqlId  string `json:"sqlId"`
	Schema string `json:"schema"`
	Table  string `json:"table"`
	Index  string `json:"index,omitempty"`
}

type GetSlowSqlSourceArgs added in v0.9.157

type GetSlowSqlSourceArgs struct {
	Schema string `json:"schema,omitempty"`
	Digest string `json:"digest,omitempty"`
	Start  string `json:"start,omitempty"`
	End    string `json:"end,omitempty"`
}

type GetSlowSqlTrendArgs added in v0.9.157

type GetSlowSqlTrendArgs struct {
	Schema   string `json:"schema,omitempty"`
	Interval string `json:"interval,omitempty"`
	Start    string `json:"start,omitempty"`
	End      string `json:"end,omitempty"`
}

type GetTableListArgs added in v0.9.157

type GetTableListArgs struct {
	DbName    string `json:"dbName"`
	PageNo    int    `json:"pageNo,omitempty"`
	PageSize  int    `json:"pageSize,omitempty"`
	OrderBy   string `json:"orderBy,omitempty"`
	Sort      string `json:"sort,omitempty"`
	SearchKey string `json:"searchKey,omitempty"`
}

type GetZoneListResult added in v0.9.29

type GetZoneListResult struct {
	Zones []ZoneName `json:"zones"`
}

type GroupInstance added in v0.9.157

type GroupInstance struct {
	InstanceIdShort string `json:"instanceIdShort"`
	Region          string `json:"region"`
	Azone           string `json:"azone"`
	Status          string `json:"status"`
	LockMode        string `json:"lockMode"`
	Name            string `json:"name"`
}

type GroupLeaderChangeArgs added in v0.9.157

type GroupLeaderChangeArgs struct {
	LeaderId string `json:"leaderId"`
}

type InitialData added in v0.9.157

type InitialData struct {
	InstanceId    string `json:"instanceId,omitempty"`
	ReferenceType string `json:"referenceType,omitempty"`
	Datetime      string `json:"datetime,omitempty"`
	SnapshotId    string `json:"snapshotId,omitempty"`
}

type InnodbStatusResult added in v0.9.157

type InnodbStatusResult struct {
	Datatime string `json:"datatime"`
	Name     string `json:"name"`
	Type     string `json:"type"`
	Status   string `json:"status"`
}

type InnodbTrxItem added in v0.9.157

type InnodbTrxItem struct {
	TrxRequestedLockId string `json:"trxRequestedLockId"`
	TrxStarted         string `json:"trxStarted"`
	TrxMysqlThreadId   int64  `json:"trxMysqlThreadId"`
	TrxRowsLocked      int64  `json:"trxRowsLocked"`
	TrxWaitStarted     string `json:"trxWaitStarted"`
	TrxState           string `json:"trxState"`
	TrxTablesInUse     int64  `json:"trxTablesInUse"`
	TrxId              string `json:"trxId"`
	TrxQuery           string `json:"trxQuery"`
	TrxTablesLocked    int    `json:"trxTablesLocked"`
}

type Instance

type Instance struct {
	InstanceId           string           `json:"instanceId"`
	InstanceName         string           `json:"instanceName"`
	Engine               string           `json:"engine"`
	EngineVersion        string           `json:"engineVersion"`
	RdsMinorVersion      string           `json:"rdsMinorVersion"`
	CharacterSetName     string           `json:"characterSetName"`
	InstanceClass        string           `json:"instanceClass"`
	AllocatedMemoryInMB  int              `json:"allocatedMemoryInMB"`
	AllocatedMemoryInGB  float64          `json:"allocatedMemoryInGB"`
	AllocatedStorageInGB int              `json:"allocatedStorageInGB"`
	Category             string           `json:"category"`
	InstanceStatus       string           `json:"instanceStatus"`
	CpuCount             int              `json:"cpuCount"`
	MemoryCapacity       float64          `json:"memoryCapacity"`
	VolumeCapacity       int              `json:"volumeCapacity"`
	TotalStorageInGB     int              `json:"totalStorageInGB"`
	NodeAmount           int              `json:"nodeAmount"`
	UsedStorage          float64          `json:"usedStorage"`
	PublicAccessStatus   string           `json:"publicAccessStatus"`
	InstanceCreateTime   string           `json:"instanceCreateTime"`
	InstanceExpireTime   string           `json:"instanceExpireTime"`
	Endpoint             Endpoint         `json:"endpoint"`
	SyncMode             string           `json:"syncMode"`
	BackupPolicy         BackupPolicy     `json:"backupPolicy"`
	Region               string           `json:"region"`
	InstanceType         string           `json:"instanceType"`
	SourceInstanceId     string           `json:"sourceInstanceId"`
	SourceRegion         string           `json:"sourceRegion"`
	ZoneNames            []string         `json:"zoneNames"`
	VpcId                string           `json:"vpcId"`
	Subnets              []Subnet         `json:"subnets"`
	Topology             Topology         `json:"topology"`
	Task                 string           `json:"task"`
	PaymentTiming        string           `json:"paymentTiming"`
	BgwGroupId           string           `json:"bgwGroupId"`
	ReadReplicaNum       int              `json:"readReplicaNum"`
	ReadReplica          []string         `json:"readReplica"`
	LockMode             string           `json:"lockMode"`
	EipStatus            string           `json:"eipStatus"`
	SuperUserFlag        string           `json:"superUserFlag"`
	ReplicationType      string           `json:"replicationType"`
	Azone                string           `json:"azone"`
	ApplicationType      string           `json:"applicationType"`
	OnlineStatus         int              `json:"onlineStatus"`
	IsSingle             bool             `json:"isSingle"`
	NodeType             string           `json:"nodeType"`
	DiskIoType           string           `json:"diskIoType"`
	GroupId              string           `json:"groupId"`
	GroupName            string           `json:"groupName"`
	DiskType             string           `json:"diskType"`
	CdsType              string           `json:"cdsType"`
	MaintainStartTime    string           `json:"maintainStartTime"`
	MaintainDuration     int              `json:"maintainDuration"`
	HaStrategy           int              `json:"haStrategy"`
	VpcName              string           `json:"vpcName"`
	Tags                 []model.TagModel `json:"tags"`
	ResourceGroupId      string           `json:"resourceGroupId"`
	ResourceGroupName    string           `json:"resourceGroupName"`
	RoGroupList          []RoGroup        `json:"roGroupList"`
	RoGroupAbnormal      bool             `json:"roGroupAbnormal"`
}

type InstanceDict added in v0.9.173

type InstanceDict struct {
	Address string `json:"address"`
	Port    int    `json:"port"`
	VnetIp  string `json:"vnetIp"`
	InetIp  string `json:"inetIp"`
}

type InstanceGroup added in v0.9.157

type InstanceGroup struct {
	GroupId string        `json:"groupId"`
	Name    string        `json:"name"`
	Count   int           `json:"count"`
	Leader  GroupInstance `json:"leader"`
}

type InstanceGroupAddArgs added in v0.9.157

type InstanceGroupAddArgs struct {
	FollowerId string `json:"followerId"`
}

type InstanceGroupArgs added in v0.9.157

type InstanceGroupArgs struct {
	Name     string `json:"name"`
	LeaderId string `json:"leaderId"`
}

type InstanceGroupBatchAddArgs added in v0.9.157

type InstanceGroupBatchAddArgs struct {
	FollowerIds []string `json:"followerIds"`
	Name        string   `json:"name"`
	LeaderId    string   `json:"leaderId"`
}

type InstanceGroupDetail added in v0.9.157

type InstanceGroupDetail struct {
	InstanceGroup
	Fllowers []GroupInstance `json:"fllowers"`
}

type InstanceGroupDetailResult added in v0.9.157

type InstanceGroupDetailResult struct {
	Group InstanceGroupDetail `json:"group"`
}

type InstanceGroupListResult added in v0.9.157

type InstanceGroupListResult struct {
	Result     []InstanceGroup `json:"result"`
	PageNo     int             `json:"pageNo"`
	PageSize   int             `json:"pageSize"`
	TotalCount int             `json:"totalCount"`
}

type InstanceGroupNameArgs added in v0.9.157

type InstanceGroupNameArgs struct {
	Name string `json:"name"`
}

type IsAllowedResult added in v0.9.157

type IsAllowedResult struct {
	Allowed bool `json:"allowed"`
}

type KVParameter added in v0.9.37

type KVParameter struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type KillSessionArgs added in v0.9.157

type KillSessionArgs struct {
	DbHost string   `json:"dbHost,omitempty"`
	DbPort int      `json:"dbPort,omitempty"`
	Items  []string `json:"items,omitempty"`
}

type KillSessionAuthArgs added in v0.9.157

type KillSessionAuthArgs struct {
	DbHost     string   `json:"dbHost,omitempty"`
	DbPort     int      `json:"dbPort,omitempty"`
	Items      []string `json:"items,omitempty"`
	DbUser     string   `json:"dbUser,omitempty"`
	DbPassword string   `json:"dbPassword,omitempty"`
}

type KillSessionAuthResult added in v0.9.157

type KillSessionAuthResult struct {
	Success bool `json:"success"`
}

type KillSessionHistory added in v0.9.157

type KillSessionHistory struct {
	Page     int    `json:"page,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
	Start    string `json:"start,omitempty"`
	End      string `json:"end,omitempty"`
}

type KillSessionHistoryItem added in v0.9.157

type KillSessionHistoryItem struct {
	OperateDbUser      string `json:"operateDbUser"`
	OperateTime        string `json:"operateTime"`
	OperateUser        string `json:"operateUser"`
	SessionCommand     string `json:"sessionCommand"`
	SessionDb          string `json:"sessionDb"`
	SessionExecuteTime string `json:"sessionExecuteTime"`
	SessionHost        string `json:"sessionHost"`
	SessionId          int64  `json:"sessionId"`
	SessionSql         string `json:"sessionSql"`
	SessionState       string `json:"sessionState"`
	SessionUser        string `json:"sessionUser"`
	Status             int    `json:"status"`
	StatusDesc         string `json:"statusDesc"`
	StatusInfo         string `json:"statusInfo"`
}

type KillSessionHistoryResult added in v0.9.157

type KillSessionHistoryResult struct {
	Items      []KillSessionHistoryItem `json:"items"`
	TotalCount int64                    `json:"totalCount"`
}

type KillSessionResult added in v0.9.157

type KillSessionResult struct {
	Success bool `json:"success"`
}

type KillSessionTypesResult added in v0.9.157

type KillSessionTypesResult struct {
	Types Commands `json:"types"`
}

type ListAccountResult

type ListAccountResult struct {
	Accounts []Account `json:"accounts"`
}

type ListDatabasesResult added in v0.9.157

type ListDatabasesResult struct {
	Databases []Database `json:"databases"`
}

type ListInstanceGroupArgs added in v0.9.157

type ListInstanceGroupArgs struct {
	Manner   string `json:"manner"`
	Order    string `json:"order,omitempty"`
	OrderBy  string `json:"orderBy,omitempty"`
	PageNo   int    `json:"pageNo,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
}

type ListParametersResult added in v0.9.37

type ListParametersResult struct {
	Etag       string      `json:"etag"`
	Parameters []Parameter `json:"parameters"`
}

type ListRdsArgs

type ListRdsArgs struct {
	Marker  string
	MaxKeys int
}

type ListRdsResult

type ListRdsResult struct {
	Marker      string     `json:"marker"`
	MaxKeys     int        `json:"maxKeys"`
	IsTruncated bool       `json:"isTruncated"`
	NextMarker  string     `json:"nextMarker"`
	Instances   []Instance `json:"instances"`
}

type ListSubnetsArgs added in v0.9.29

type ListSubnetsArgs struct {
	VpcId    string `json:"vpcId"`
	ZoneName string `json:"zoneName"`
}

type ListSubnetsResult added in v0.9.29

type ListSubnetsResult struct {
	Subnets []Subnet `json:"subnets"`
}

type LockHold added in v0.9.157

type LockHold map[string][]int64

type LockWait added in v0.9.157

type LockWait struct {
	LocakId string `json:"lockId"`
	Id      int64  `json:"id"`
}

type MaintainTimeArgs added in v0.9.157

type MaintainTimeArgs struct {
	MaintainStartTime string `json:"maintainStartTime"`
	MaintainDuration  int    `json:"maintainDuration"`
}

type MinorVersionListResult added in v0.9.157

type MinorVersionListResult struct {
	RdsMinorVersionList []RdsMinorVersion `json:"rdsMinorVersionList"`
}

type ModifyAccountDesc added in v0.9.157

type ModifyAccountDesc struct {
	Remark string `json:"remark"`
}

type ModifyBackupPolicyArgs added in v0.9.97

type ModifyBackupPolicyArgs struct {
	BackupDays   string `json:"backupDays"`
	BackupTime   string `json:"backupTime"`
	Persistent   bool   `json:"persistent"`
	ExpireInDays int    `json:"expireInDays"`
}

type ModifyDatabaseDesc added in v0.9.157

type ModifyDatabaseDesc struct {
	Remark string `json:"remark"`
}

type ModifyEndpointArgs added in v0.9.29

type ModifyEndpointArgs struct {
	Address string `json:"address"`
}

type ModifyPublicAccessArgs added in v0.9.29

type ModifyPublicAccessArgs struct {
	PublicAccess bool `json:"publicAccess"`
}

type ModifySyncModeArgs added in v0.9.29

type ModifySyncModeArgs struct {
	SyncMode string `json:"syncMode"`
}

type OrderStatusResult added in v0.9.157

type OrderStatusResult struct {
	Status string `json:"status"`
}

type Parameter added in v0.9.37

type Parameter struct {
	Name          string `json:"name"`
	DefaultValue  string `json:"defaultValue"`
	Value         string `json:"value"`
	PendingValue  string `json:"pendingValue"`
	Type          string `json:"type"`
	Dynamic       string `json:"dynamic"`
	Modifiable    string `json:"modifiable"`
	AllowedValues string `json:"allowedValues"`
	Desc          string `json:"desc"`
}

type ParameterHistory added in v0.9.157

type ParameterHistory struct {
	Name        string `json:"name"`
	BeforeValue string `json:"beforeValue"`
	AfterValue  string `json:"afterValue"`
	Status      string `json:"status"`
	UpdateTime  string `json:"updateTime"`
}

type ParameterHistoryResult added in v0.9.157

type ParameterHistoryResult struct {
	Parameters []ParameterHistory `json:"parameters"`
}

type ProcessArgs added in v0.9.157

type ProcessArgs struct {
	Ids []int64 `json:"ids,omitempty"`
}

type ProcessItem added in v0.9.157

type ProcessItem struct {
	Sql      string   `json:"sql"`
	Db       string   `json:"db"`
	State    string   `json:"state"`
	Host     string   `json:"host"`
	Command  string   `json:"command"`
	User     string   `json:"user"`
	Time     int64    `json:"time"`
	ID       int64    `json:"id"`
	LockHold LockHold `json:"lockHold"`
	LockWait []LockWait
}

type ProcessListResult added in v0.9.157

type ProcessListResult struct {
	Datetime    string        `json:"datetime"`
	ProcessList []ProcessItem `json:"processList"`
}

type ProgressItem added in v0.9.157

type ProgressItem struct {
	Step        string `json:"step"`
	Status      string `json:"status"`
	Description string `json:"description"`
}

type RdsMinorVersion added in v0.9.157

type RdsMinorVersion struct {
	DbVersion          string `json:"dbVersion"`
	MinorVersion       string `json:"minorVersion"`
	RdsMinorVersion    string `json:"rdsMinorVersion"`
	FeatureDescription string `json:"featureDescription"`
}

type RecoveryByDatetimeArgs added in v0.9.157

type RecoveryByDatetimeArgs struct {
	Datetime string         `json:"dateTime"`
	Data     []RecoveryData `json:"data"`
}

type RecoveryBySnapshotArgs added in v0.9.157

type RecoveryBySnapshotArgs struct {
	SnapshotId string         `json:"snapshotId"`
	Data       []RecoveryData `json:"data"`
}

type RecoveryData added in v0.9.157

type RecoveryData struct {
	DbName      string      `json:"dbName"`
	NewDbname   string      `json:"newDbname"`
	RestoreMode string      `json:"restoreMode"`
	Tables      []TableData `json:"tables"`
}

type RecoveryToSourceInstanceModel added in v0.9.157

type RecoveryToSourceInstanceModel struct {
	RestoreMode string  `json:"restoreMode,omitempty"`
	DbName      string  `json:"dbName,omitempty"`
	NewDbname   string  `json:"newDbname,omitempty"`
	Tables      []Table `json:"tables,omitempty"`
}

type RecyclerListResult added in v0.9.157

type RecyclerListResult struct {
	NextMarker    string     `json:"nextMarker"`
	Marker        string     `json:"marker"`
	MaxKeys       int        `json:"maxKeys"`
	IsTruncated   bool       `json:"isTruncated"`
	Instances     []Instance `json:"instances"`
	InstanceType  string     `json:"instanceType"`
	ZoneNames     []string   `json:"zoneNames"`
	PaymentTiming string     `json:"paymentTiming"`
}

type RecyclerRecoverArgs added in v0.9.157

type RecyclerRecoverArgs struct {
	InstanceIds []string `json:"instanceIds"`
}

type Reservation

type Reservation struct {
	ReservationLength   int    `json:"reservationLength,omitempty"`
	ReservationTimeUnit string `json:"reservationTimeUnit,omitempty"`
}

type ResizeRdsArgs

type ResizeRdsArgs struct {
	CpuCount            int         `json:"cpuCount"`
	MemoryCapacity      float64     `json:"memoryCapacity"`
	VolumeCapacity      int         `json:"volumeCapacity"`
	NodeAmount          int         `json:"nodeAmount,omitempty"`
	IsDirectPay         bool        `json:"isDirectPay,omitempty"`
	AllocatedMemoryInMB string      `json:"allocatedMemoryInMB,omitempty"`
	IsEnhanced          bool        `json:"isEnhanced,omitempty"`
	EffectiveTime       string      `json:"effectiveTime,omitempty"`
	MasterAzone         string      `json:"masterAzone,omitempty"`
	BackupAzone         string      `json:"backupAzone,omitempty"`
	DiskIoType          string      `json:"diskIoType,omitempty"`
	SubnetId            string      `json:"subnetId,omitempty"`
	EdgeSubnetId        string      `json:"edgeSubnetId,omitempty"`
	Subnets             []SubnetMap `json:"subnets,omitempty"`
}

type RoGroup added in v0.9.173

type RoGroup struct {
	RoGroupId       string       `json:"roGroupId"`
	RoGroupName     string       `json:"roGroupName"`
	RoGroupEndpoint InstanceDict `json:"roGroupEndpoint"`
	VpcId           string       `json:"vpcId"`
	SubnetId        string       `json:"subnetId"`
	EipStatus       string       `json:"eipStatus"`
	RoGroupAppList  []AppList    `json:"roGroupAppList"`
	VpcVo           SimpleVpcVo  `json:"vpcVo"`
	SubnetVo        SubnetVo     `json:"subnetVo"`
}

type SessionDetailArgs added in v0.9.157

type SessionDetailArgs struct {
	Page        int    `json:"page,omitempty"`
	PageSize    int    `json:"pageSize,omitempty"`
	Sort        string `json:"sort,omitempty"`
	ExecuteTime int64  `json:"executeTime,omitempty"`
	Operator    string `json:"operator,omitempty"`
	IsActive    bool   `json:"isActive,omitempty"`
	SessionId   string `json:"sessionId,omitempty"`
	User        string `json:"user,omitempty"`
	Host        string `json:"host,omitempty"`
	Db          string `json:"db,omitempty"`
	Command     string `json:"command,omitempty"`
	State       string `json:"state,omitempty"`
	SqlStmt     string `json:"sqlStmt,omitempty"`
}

type SessionDetailItem added in v0.9.157

type SessionDetailItem struct {
	Command string `json:"command"`
	Db      string `json:"db"`
	Host    string `json:"host"`
	Id      int64  `json:"id"`
	Sqlstmt string `json:"sqlStmt"`
	State   string `json:"state"`
	Time    string `json:"time"`
	User    string `json:"user"`
}

type SessionDetailResult added in v0.9.157

type SessionDetailResult struct {
	Items      []SessionDetailItem `json:"items"`
	TotalCount int64               `json:"totalCount"`
}

type SessionStatisticsItem added in v0.9.157

type SessionStatisticsItem struct {
	ActiveAverageExecuteTime int64  `json:"activeAverageExecuteTime"`
	ActiveTotalCount         int64  `json:"activeTotalCount"`
	ActiveTotalExecuteTime   int64  `json:"activeTotalExecuteTime"`
	DimensionKey             string `json:"dimensionKey"`
	DimensionValue           string `json:"dimensionValue"`
	TotalCount               int64  `json:"totalCount"`
}

type SessionStatisticsResult added in v0.9.157

type SessionStatisticsResult map[string][]SessionStatisticsItem

type SessionSummaryResult added in v0.9.157

type SessionSummaryResult struct {
	ActiveTotalCount   int64   `json:"activeTotalCount"`
	CpuUtilizationRate float64 `json:"cpuUtilizationRate"`
	MaxExecuteTime     float64 `json:"maxExecuteTime"`
	TotalCount         int64   `json:"totalCount"`
}

type SimpleVpcVo added in v0.9.173

type SimpleVpcVo struct {
	VpcId         string   `json:"vpcId"`
	ShortId       string   `json:"shortId"`
	Name          string   `json:"name"`
	Cidr          string   `json:"cidr"`
	Status        int      `json:"status"`
	CreateTime    string   `json:"createTime"`
	Description   string   `json:"description"`
	DefaultVpc    bool     `json:"defaultVpc"`
	Ipv6Cidr      string   `json:"ipv6Cidr"`
	AuxiliaryCidr []string `json:"auxiliaryCidr"`
	Relay         bool     `json:"relay"`
}

type SlowLogDownloadDetail added in v0.9.143

type SlowLogDownloadDetail struct {
	Slowlogs []SlowlogDetail `json:"slowlogs"`
}

type SlowLogDownloadTaskListResult added in v0.9.143

type SlowLogDownloadTaskListResult struct {
	Slowlogs []Slowlog `json:"slowlogs"`
}

type SlowSqlAdviceResult added in v0.9.157

type SlowSqlAdviceResult struct {
	IndexAdvice     []SlowSqlIndexAdviceItem `json:"indexAdvice"`
	StatementAdvice []SlowSqlIndexAdviceItem `json:"statementAdvice"`
}

type SlowSqlDigestItem added in v0.9.157

type SlowSqlDigestItem struct {
	AvgExamRows   int64   `json:"avgExamRows"`
	AvgLockTime   int64   `json:"avgLockTime"`
	AvgNumRows    int64   `json:"avgNumRows"`
	AvgTime       float64 `json:"avgTime"`
	Digest        string  `json:"digest"`
	ExecuteTimes  int64   `json:"executeTimes"`
	MaxExamRows   int64   `json:"maxExamRows"`
	MaxLockTime   float64 `json:"maxLockTime"`
	MaxNumRows    int64   `json:"maxNumRows"`
	MaxTime       float64 `json:"maxTime"`
	NormalSql     string  `json:"normalSql"`
	Schema        string  `json:"schema"`
	TotalExamRows int64   `json:"totalExamRows"`
	TotalLockTime float64 `json:"totalLockTime"`
	TotalNumRows  int64   `json:"totalNumRows"`
	TotalTime     float64 `json:"totalTime"`
}

type SlowSqlDigestResult added in v0.9.157

type SlowSqlDigestResult struct {
	Items      []SlowSqlDigestItem `json:"items"`
	Summary    SlowSqlDigestItem   `json:"summary"`
	TotalCount int                 `json:"totalCount"`
}

type SlowSqlDurationItem added in v0.9.157

type SlowSqlDurationItem struct {
	End        int64   `json:"end"`
	Nums       int64   `json:"nums"`
	Percentage float64 `json:"percentage"`
	Start      int64   `json:"start"`
	Title      string  `json:"title"`
}

type SlowSqlDurationResult added in v0.9.157

type SlowSqlDurationResult struct {
	List []SlowSqlDurationItem `json:"list"`
}

type SlowSqlExplainItem added in v0.9.157

type SlowSqlExplainItem struct {
	ExplainId    int64  `json:"explainId"`
	Extra        string `json:"extra"`
	Filtered     int64  `json:"filtered"`
	Key          string `json:"key"`
	KeyLen       string `json:"keyLen"`
	Partitions   string `json:"partitions"`
	PossibleKeys string `json:"possibleKeys"`
	Ref          string `json:"ref"`
	Rows         int    `json:"rows"`
	SelectType   string `json:"selectType"`
	Table        string `json:"table"`
	Type         string `json:"type"`
}

type SlowSqlExplainResult added in v0.9.157

type SlowSqlExplainResult struct {
	List []SlowSqlExplainItem `json:"list"`
}

type SlowSqlFlowStatusResult added in v0.9.157

type SlowSqlFlowStatusResult struct {
	Enabled int `json:"enabled"`
}

type SlowSqlIndexAdviceItem added in v0.9.157

type SlowSqlIndexAdviceItem struct {
	Advice string `json:"advice"`
	Level  string `json:"level"`
}

type SlowSqlIndexItem added in v0.9.157

type SlowSqlIndexItem struct {
	Schema      string `json:"schema"`
	Table       string `json:"table"`
	Collation   string `json:"collation"`
	Column      string `json:"column"`
	Comment     string `json:"comment"`
	Nullable    string `json:"nullable"`
	Type        string `json:"type"`
	Cardinality int64  `json:"cardinality"`
	Index       string `json:"index"`
	NonUnique   string `json:"nonUnique"`
	Sequence    string `json:"sequence"`
}

type SlowSqlIndexResult added in v0.9.157

type SlowSqlIndexResult struct {
	List []SlowSqlIndexItem `json:"list"`
}

type SlowSqlItem added in v0.9.157

type SlowSqlItem struct {
	AffectedRows int64   `json:"affectedRows"`
	ClientHost   string  `json:"clientHost"`
	ClientIP     string  `json:"clientIP"`
	Cluster      string  `json:"cluster"`
	ConnectionId int64   `json:"connectionId"`
	CurrentDB    string  `json:"currentDB"`
	Digest       string  `json:"digest"`
	Duration     float32 `json:"duration"`
	ExaminedRows int64   `json:"examinedRows"`
	LockTime     int64   `json:"lockTime"`
	Node         string  `json:"node"`
	NumRows      int     `json:"numRows"`
	Sql          string  `json:"sql"`
	SqlId        string  `json:"sqlId"`
	Start        string  `json:"start"`
	User         string  `json:"user"`
}

type SlowSqlListResult added in v0.9.157

type SlowSqlListResult struct {
	Items      []SlowSqlItem `json:"items"`
	TotalCount int           `json:"totalCount"`
}

type SlowSqlSchemaItem added in v0.9.157

type SlowSqlSchemaItem struct {
	Schema string `json:"schema"`
	Table  string `json:"table"`
}

type SlowSqlSchemaResult added in v0.9.157

type SlowSqlSchemaResult struct {
	List []SlowSqlSchemaItem `json:"list"`
}

type SlowSqlSourceItem added in v0.9.157

type SlowSqlSourceItem struct {
	Nums       int64   `json:"nums"`
	Percentage float64 `json:"percentage"`
	Host       string  `json:"host"`
	Ip         string  `json:"ip"`
}

type SlowSqlSourceResult added in v0.9.157

type SlowSqlSourceResult struct {
	List []SlowSqlSourceItem `json:"list"`
}

type SlowSqlTableItem added in v0.9.157

type SlowSqlTableItem struct {
	Schema       string `json:"schema"`
	Table        string `json:"table"`
	Charset      string `json:"charset"`
	Collation    string `json:"collation"`
	Column       string `json:"column"`
	Comment      string `json:"comment"`
	DefaultValue string `json:"defaultValue"`
	Extra        string `json:"extra"`
	Key          string `json:"key"`
	Nullable     string `json:"nullable"`
	Position     int64  `json:"position"`
	Type         string `json:"type"`
}

type SlowSqlTableResult added in v0.9.157

type SlowSqlTableResult struct {
	List []SlowSqlTableItem `json:"list"`
}

type SlowSqlTrendItem added in v0.9.157

type SlowSqlTrendItem struct {
	Datetime string `json:"datetime"`
	Times    int64  `json:"times"`
}

type SlowSqlTrendResult added in v0.9.157

type SlowSqlTrendResult struct {
	Interval int                `json:"interval"`
	Items    []SlowSqlTrendItem `json:"items"`
}

type Slowlog added in v0.9.143

type Slowlog struct {
	SlowlogId          string `json:"slowlogId"`
	SlowlogSizeInBytes int    `json:"slowlogSizeInBytes"`
	SlowlogStartTime   string `json:"slowlogStartTime"`
	SlowlogEndTime     string `json:"slowlogEndTime"`
}

type SlowlogDetail added in v0.9.143

type SlowlogDetail struct {
	Url             string `json:"url"`
	DownloadExpires string `json:"downloadExpires"`
}

type Snapshot added in v0.9.44

type Snapshot struct {
	SnapshotId          string `json:"backupId"`
	SnapshotSizeInBytes int64  `json:"backupSize"`
	SnapshotType        string `json:"backupType"`
	SnapshotStatus      string `json:"backupStatus"`
	SnapshotStartTime   string `json:"backupStartTime"`
	SnapshotEndTime     string `json:"backupEndTime"`
	DownloadUrl         string `json:"downloadUrl"`
	DownloadExpires     string `json:"downloadExpires"`
}

type SqlFilterArgs added in v0.9.157

type SqlFilterArgs struct {
	FilterType  string `json:"filterType"`
	FilterKey   string `json:"filterKey"`
	FilterLimit int64  `json:"filterLimit"`
}

type SqlFilterItem added in v0.9.157

type SqlFilterItem struct {
	Id           int64  `json:"id"`
	FilterType   string `json:"filterType"`
	FilterKey    string `json:"filterKey"`
	FilterLimit  int64  `json:"filterLimit"`
	FilterStatus string `json:"filterStatus"`
	CreateTime   string `json:"createTime"`
	UpdateTime   string `json:"updateTime"`
}

type SqlFilterListResult added in v0.9.157

type SqlFilterListResult struct {
	SqlFilterList []SqlFilterItem `json:"sqlFilterList"`
}

type StartOrStopSqlFilterArgs added in v0.9.157

type StartOrStopSqlFilterArgs struct {
	Action string `json:"action"`
}

type Subnet

type Subnet struct {
	Name     string `json:"name"`
	SubnetId string `json:"subnetId"`
	ZoneName string `json:"zoneName"`
	Cidr     string `json:"cidr"`
	VpcId    string `json:"vpcId"`
}

type SubnetMap

type SubnetMap struct {
	ZoneName string `json:"zoneName"`
	SubnetId string `json:"subnetId"`
}

type SubnetVo added in v0.9.173

type SubnetVo struct {
	SubnetId   string `json:"subnetId"`
	Name       string `json:"name"`
	Az         string `json:"az"`
	Cidr       string `json:"cidr"`
	Ipv6Cidr   string `json:"ipv6Cidr"`
	VpcId      string `json:"vpcId"`
	VpcShortId string `json:"vpcShortId"`
}

type Table added in v0.9.157

type Table struct {
	TableName    string `json:"tableName,omitempty"`
	NewTablename string `json:"newTablename,omitempty"`
}

type TableData added in v0.9.157

type TableData struct {
	TableName    string `json:"tableName"`
	NewTablename string `json:"newTablename"`
}

type TableInfo added in v0.9.157

type TableInfo struct {
	Data       []TableInfoItem `json:"data"`
	TotalCount int64           `json:"totalCount"`
}

type TableInfoItem added in v0.9.157

type TableInfoItem struct {
	IndexLength    string `json:"indexLength"`
	TableSchema    string `json:"tableSchema"`
	TableName      string `json:"tableName"`
	DataLength     string `json:"dataLength"`
	Engine         string `json:"engine"`
	TableRows      string `json:"tableRows"`
	DataFree       string `json:"dataFree"`
	DataFreePer    string `json:"dataFreePer"`
	AvgRowLength   string `json:"avgRowLength"`
	TableLength    string `json:"tableLength"`
	TableLengthPer string `json:"tableLengthPer"`
}

type TableListResult added in v0.9.157

type TableListResult struct {
	Result TableInfo `json:"result"`
}

type Task added in v0.9.157

type Task struct {
	TaskId       int            `json:"taskId"`
	TaskType     string         `json:"taskType"`
	TaskName     string         `json:"taskName"`
	InstanceId   string         `json:"instanceId"`
	InstanceName string         `json:"instanceName"`
	UserId       string         `json:"userId"`
	Region       string         `json:"region"`
	TaskStatus   string         `json:"taskStatus"`
	CreateTime   string         `json:"createTime"`
	UpdateTime   string         `json:"updateTime"`
	FinishTime   string         `json:"finishTime"`
	CancelFlag   int            `json:"cancelFlag"`
	Progress     []ProgressItem `json:"progress"`
}

type TaskListArgs added in v0.9.157

type TaskListArgs struct {
	PageSize     string `json:"pageSize,omitempty"`
	PageNo       string `json:"pageNo,omitempty"`
	InstanceId   string `json:"instanceId,omitempty"`
	InstanceName string `json:"instanceName,omitempty"`
	TaskId       int    `json:"taskId,omitempty"`
	TaskType     string `json:"taskType,omitempty"`
	TaskStatus   string `json:"taskStatus,omitempty"`
	StartTime    string `json:"startTime,omitempty"`
	EndTime      string `json:"endTime,omitempty"`
}

type TaskListResult added in v0.9.157

type TaskListResult struct {
	Tasks []Task `json:"tasks"`
	Count int    `json:"count"`
}

type TaskResult added in v0.9.157

type TaskResult struct {
	TaskId int64 `json:"taskId"`
}

type Topology

type Topology struct {
	Rdsproxy    []string `json:"rdsproxy"`
	Master      []string `json:"master"`
	ReadReplica []string `json:"readReplica"`
}

type TransactionListResult added in v0.9.157

type TransactionListResult struct {
	Datetime      string          `json:"datetime"`
	InnodbTrxList []InnodbTrxItem `json:"innodbTrxList"`
}

type UpdateAccountPrivileges added in v0.9.157

type UpdateAccountPrivileges struct {
	DatabasePrivileges []DatabasePrivilege `json:"privileges"`
}

type UpdateDatabasePortArgs added in v0.9.157

type UpdateDatabasePortArgs struct {
	EntryPort int `json:"entryPort"`
}

type UpdateInstanceNameArgs added in v0.9.29

type UpdateInstanceNameArgs struct {
	InstanceName string `json:"instanceName"`
}

type UpdateParameterArgs added in v0.9.37

type UpdateParameterArgs struct {
	Parameters []KVParameter `json:"parameters"`
}

type UpdatePasswordArgs added in v0.9.157

type UpdatePasswordArgs struct {
	Password string `json:"password"`
}

type UpdateSecurityIpsArgs added in v0.9.37

type UpdateSecurityIpsArgs struct {
	SecurityIps []string `json:"securityIps"`
}

type UpgradeMinorVersionArgs added in v0.9.157

type UpgradeMinorVersionArgs struct {
	TargetMinorVersion string `json:"targetMinorVersion"`
	EffectiveTime      string `json:"effectiveTime"`
}

type ZoneName added in v0.9.29

type ZoneName struct {
	ZoneNames []string `json:"zoneNames"`
}

Jump to

Keyboard shortcuts

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