model

package
v0.1.118 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdviceResult added in v0.1.57

type AdviceResult struct {

	// messageId
	MessageId *string `json:"message_id,omitempty"`

	// 状态码
	StatusCode *string `json:"status_code,omitempty"`

	// 错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误信息
	ErrorMessage *string `json:"error_message,omitempty"`

	// 索引建议
	IndexAdvice *[]IndexAdviceInfo `json:"index_advice,omitempty"`

	// 诊断建议
	TuningAdvice *[]string `json:"tuning_advice,omitempty"`

	// 格式化SQL
	FormattedSql *string `json:"formatted_sql,omitempty"`

	// 原始SQL
	OriginalSql *string `json:"original_sql,omitempty"`

	// 执行计划
	Explain *[]Explain `json:"explain,omitempty"`

	// 表位置信息
	TbPosInfos *[]TbPosInfo `json:"tb_pos_infos,omitempty"`

	FeedbackInfos *FeedbackInfo `json:"feedback_infos,omitempty"`
}

func (AdviceResult) String added in v0.1.57

func (o AdviceResult) String() string

type ApiVersion

type ApiVersion struct {

	// API版本号,如v3。
	Id string `json:"id"`

	// 版本状态。 取值“CURRENT”,表示该版本为主推版本。取值“SUPPORTED”,表示为老版本,但是现在还继续支持。 取值“DEPRECATED”,表示为废弃版本,存在后续删除的可能。
	Status string `json:"status"`

	// 版本发布时间。 格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指UTC时间。
	Updated string `json:"updated"`

	// API的微版本,如果不支持微版本,则为空
	Version string `json:"version"`
}

ApiVersion API版本详细信息列表。

func (ApiVersion) String

func (o ApiVersion) String() string

type CancelShareConnectionsRequest added in v0.1.40

type CancelShareConnectionsRequest struct {

	// 语言
	XLanguage *string `json:"X-Language,omitempty"`

	Body *CancelShareConnectionsRequestBody `json:"body,omitempty"`
}

CancelShareConnectionsRequest Request Object

func (CancelShareConnectionsRequest) String added in v0.1.40

type CancelShareConnectionsRequestBody added in v0.1.40

type CancelShareConnectionsRequestBody struct {

	// 共享链接ID
	SharedConnId string `json:"shared_conn_id"`

	// 用户
	Users []ShareConnUserInfo `json:"users"`
}

func (CancelShareConnectionsRequestBody) String added in v0.1.40

type CancelShareConnectionsResponse added in v0.1.40

type CancelShareConnectionsResponse struct {
	HttpStatusCode int `json:"-"`
}

CancelShareConnectionsResponse Response Object

func (CancelShareConnectionsResponse) String added in v0.1.40

type ChangeSqlLimitSwitchStatusBody added in v0.1.12

type ChangeSqlLimitSwitchStatusBody struct {

	// 开关状态
	SwitchStatus ChangeSqlLimitSwitchStatusBodySwitchStatus `json:"switch_status"`

	// 数据库类型
	DatastoreType ChangeSqlLimitSwitchStatusBodyDatastoreType `json:"datastore_type"`
}

ChangeSqlLimitSwitchStatusBody 设置SQL限流开关状态请求体

func (ChangeSqlLimitSwitchStatusBody) String added in v0.1.12

type ChangeSqlLimitSwitchStatusBodyDatastoreType added in v0.1.12

type ChangeSqlLimitSwitchStatusBodyDatastoreType struct {
	// contains filtered or unexported fields
}

func (ChangeSqlLimitSwitchStatusBodyDatastoreType) MarshalJSON added in v0.1.12

func (*ChangeSqlLimitSwitchStatusBodyDatastoreType) UnmarshalJSON added in v0.1.12

func (ChangeSqlLimitSwitchStatusBodyDatastoreType) Value added in v0.1.12

type ChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum added in v0.1.12

type ChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum struct {
	MY_SQL      ChangeSqlLimitSwitchStatusBodyDatastoreType
	POSTGRE_SQL ChangeSqlLimitSwitchStatusBodyDatastoreType
}

func GetChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum added in v0.1.12

func GetChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum() ChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum

type ChangeSqlLimitSwitchStatusBodySwitchStatus added in v0.1.12

type ChangeSqlLimitSwitchStatusBodySwitchStatus struct {
	// contains filtered or unexported fields
}

func (ChangeSqlLimitSwitchStatusBodySwitchStatus) MarshalJSON added in v0.1.12

func (*ChangeSqlLimitSwitchStatusBodySwitchStatus) UnmarshalJSON added in v0.1.12

func (ChangeSqlLimitSwitchStatusBodySwitchStatus) Value added in v0.1.12

type ChangeSqlLimitSwitchStatusBodySwitchStatusEnum added in v0.1.12

type ChangeSqlLimitSwitchStatusBodySwitchStatusEnum struct {
	ON  ChangeSqlLimitSwitchStatusBodySwitchStatus
	OFF ChangeSqlLimitSwitchStatusBodySwitchStatus
}

func GetChangeSqlLimitSwitchStatusBodySwitchStatusEnum added in v0.1.12

func GetChangeSqlLimitSwitchStatusBodySwitchStatusEnum() ChangeSqlLimitSwitchStatusBodySwitchStatusEnum

type ChangeSqlLimitSwitchStatusRequest added in v0.1.12

type ChangeSqlLimitSwitchStatusRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *ChangeSqlLimitSwitchStatusRequestXLanguage `json:"X-Language,omitempty"`

	Body *ChangeSqlLimitSwitchStatusBody `json:"body,omitempty"`
}

ChangeSqlLimitSwitchStatusRequest Request Object

func (ChangeSqlLimitSwitchStatusRequest) String added in v0.1.12

type ChangeSqlLimitSwitchStatusRequestXLanguage added in v0.1.12

type ChangeSqlLimitSwitchStatusRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ChangeSqlLimitSwitchStatusRequestXLanguage) MarshalJSON added in v0.1.12

func (*ChangeSqlLimitSwitchStatusRequestXLanguage) UnmarshalJSON added in v0.1.12

func (ChangeSqlLimitSwitchStatusRequestXLanguage) Value added in v0.1.12

type ChangeSqlLimitSwitchStatusRequestXLanguageEnum added in v0.1.12

type ChangeSqlLimitSwitchStatusRequestXLanguageEnum struct {
	ZH_CN ChangeSqlLimitSwitchStatusRequestXLanguage
	EN_US ChangeSqlLimitSwitchStatusRequestXLanguage
}

func GetChangeSqlLimitSwitchStatusRequestXLanguageEnum added in v0.1.12

func GetChangeSqlLimitSwitchStatusRequestXLanguageEnum() ChangeSqlLimitSwitchStatusRequestXLanguageEnum

type ChangeSqlLimitSwitchStatusResponse added in v0.1.12

type ChangeSqlLimitSwitchStatusResponse struct {

	// SQL限流任务ID
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeSqlLimitSwitchStatusResponse Response Object

func (ChangeSqlLimitSwitchStatusResponse) String added in v0.1.12

type ChangeSqlSwitchBody

type ChangeSqlSwitchBody struct {

	// 开关类型。取值DAS SQL Explorer和DAS Slow Query Log,分别表示DAS收集全量SQL开关和DAS收集慢SQL开关。
	Type string `json:"type"`

	// 开关状态,取值0和1,分别代表要关闭和开启。
	Status int32 `json:"status"`

	// 数据库类型。当前全量SQL支持的数据库类型包括MySQL和GaussDB(for MySQL),慢SQL支持的类型:MySQL、GaussDB(for MySQL)、PostgreSQL。
	DatastoreType string `json:"datastore_type"`

	// SQL数据保存时长(天)。默认为7天,最长可保留30天,到期后数据自动删除。如果要保留30天以上,请到DAS页面进行操作。
	RetentionDays *int64 `json:"retention_days,omitempty"`
}

func (ChangeSqlSwitchBody) String

func (o ChangeSqlSwitchBody) String() string

type ChangeSqlSwitchRequest

type ChangeSqlSwitchRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 请求语言类型。
	XLanguage *ChangeSqlSwitchRequestXLanguage `json:"X-Language,omitempty"`

	Body *ChangeSqlSwitchBody `json:"body,omitempty"`
}

ChangeSqlSwitchRequest Request Object

func (ChangeSqlSwitchRequest) String

func (o ChangeSqlSwitchRequest) String() string

type ChangeSqlSwitchRequestXLanguage

type ChangeSqlSwitchRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ChangeSqlSwitchRequestXLanguage) MarshalJSON

func (c ChangeSqlSwitchRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ChangeSqlSwitchRequestXLanguage) UnmarshalJSON

func (c *ChangeSqlSwitchRequestXLanguage) UnmarshalJSON(b []byte) error

func (ChangeSqlSwitchRequestXLanguage) Value added in v0.0.90

type ChangeSqlSwitchRequestXLanguageEnum

type ChangeSqlSwitchRequestXLanguageEnum struct {
	EN_US ChangeSqlSwitchRequestXLanguage
	ZH_CN ChangeSqlSwitchRequestXLanguage
}

func GetChangeSqlSwitchRequestXLanguageEnum

func GetChangeSqlSwitchRequestXLanguageEnum() ChangeSqlSwitchRequestXLanguageEnum

type ChangeSqlSwitchResponse

type ChangeSqlSwitchResponse struct {

	// 开关状态。取值: Enabled:已开启, Disabled:已关闭, Switching:开关切换中
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeSqlSwitchResponse Response Object

func (ChangeSqlSwitchResponse) String

func (o ChangeSqlSwitchResponse) String() string

type ChangeTransactionSwitchStatusRequest added in v0.1.105

type ChangeTransactionSwitchStatusRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *ChangeTransactionSwitchStatusRequestXLanguage `json:"X-Language,omitempty"`

	Body *TransactionSwitchReq `json:"body,omitempty"`
}

ChangeTransactionSwitchStatusRequest Request Object

func (ChangeTransactionSwitchStatusRequest) String added in v0.1.105

type ChangeTransactionSwitchStatusRequestXLanguage added in v0.1.105

type ChangeTransactionSwitchStatusRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ChangeTransactionSwitchStatusRequestXLanguage) MarshalJSON added in v0.1.105

func (*ChangeTransactionSwitchStatusRequestXLanguage) UnmarshalJSON added in v0.1.105

func (ChangeTransactionSwitchStatusRequestXLanguage) Value added in v0.1.105

type ChangeTransactionSwitchStatusRequestXLanguageEnum added in v0.1.105

type ChangeTransactionSwitchStatusRequestXLanguageEnum struct {
	ZH_CN ChangeTransactionSwitchStatusRequestXLanguage
	EN_US ChangeTransactionSwitchStatusRequestXLanguage
}

func GetChangeTransactionSwitchStatusRequestXLanguageEnum added in v0.1.105

func GetChangeTransactionSwitchStatusRequestXLanguageEnum() ChangeTransactionSwitchStatusRequestXLanguageEnum

type ChangeTransactionSwitchStatusResponse added in v0.1.105

type ChangeTransactionSwitchStatusResponse struct {

	// 开关状态
	SwitchStatus   *ChangeTransactionSwitchStatusResponseSwitchStatus `json:"switch_status,omitempty"`
	HttpStatusCode int                                                `json:"-"`
}

ChangeTransactionSwitchStatusResponse Response Object

func (ChangeTransactionSwitchStatusResponse) String added in v0.1.105

type ChangeTransactionSwitchStatusResponseSwitchStatus added in v0.1.105

type ChangeTransactionSwitchStatusResponseSwitchStatus struct {
	// contains filtered or unexported fields
}

func (ChangeTransactionSwitchStatusResponseSwitchStatus) MarshalJSON added in v0.1.105

func (*ChangeTransactionSwitchStatusResponseSwitchStatus) UnmarshalJSON added in v0.1.105

func (ChangeTransactionSwitchStatusResponseSwitchStatus) Value added in v0.1.105

type ChangeTransactionSwitchStatusResponseSwitchStatusEnum added in v0.1.105

type ChangeTransactionSwitchStatusResponseSwitchStatusEnum struct {
	ENABLED  ChangeTransactionSwitchStatusResponseSwitchStatus
	DISABLED ChangeTransactionSwitchStatusResponseSwitchStatus
}

func GetChangeTransactionSwitchStatusResponseSwitchStatusEnum added in v0.1.105

func GetChangeTransactionSwitchStatusResponseSwitchStatusEnum() ChangeTransactionSwitchStatusResponseSwitchStatusEnum

type CreateShareConnectionsRequest added in v0.1.40

type CreateShareConnectionsRequest struct {

	// 语言
	XLanguage *string `json:"X-Language,omitempty"`

	Body *CreateShareConnectionsRequestBody `json:"body,omitempty"`
}

CreateShareConnectionsRequest Request Object

func (CreateShareConnectionsRequest) String added in v0.1.40

type CreateShareConnectionsRequestBody added in v0.1.40

type CreateShareConnectionsRequestBody struct {

	// 共享连接ID
	SharedConnId string `json:"shared_conn_id"`

	// 过期时间
	ExpiredTime *string `json:"expired_time,omitempty"`

	// 用户
	Users []ShareConnUserInfo `json:"users"`
}

func (CreateShareConnectionsRequestBody) String added in v0.1.40

type CreateShareConnectionsResponse added in v0.1.40

type CreateShareConnectionsResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateShareConnectionsResponse Response Object

func (CreateShareConnectionsResponse) String added in v0.1.40

type CreateSpaceAnalysisTaskBody

type CreateSpaceAnalysisTaskBody struct {

	// 操作类型
	Operate CreateSpaceAnalysisTaskBodyOperate `json:"operate"`

	// 引擎类型
	DatastoreType CreateSpaceAnalysisTaskBodyDatastoreType `json:"datastore_type"`
}

func (CreateSpaceAnalysisTaskBody) String

type CreateSpaceAnalysisTaskBodyDatastoreType

type CreateSpaceAnalysisTaskBodyDatastoreType struct {
	// contains filtered or unexported fields
}

func (CreateSpaceAnalysisTaskBodyDatastoreType) MarshalJSON

func (*CreateSpaceAnalysisTaskBodyDatastoreType) UnmarshalJSON

func (c *CreateSpaceAnalysisTaskBodyDatastoreType) UnmarshalJSON(b []byte) error

func (CreateSpaceAnalysisTaskBodyDatastoreType) Value added in v0.0.90

type CreateSpaceAnalysisTaskBodyDatastoreTypeEnum

type CreateSpaceAnalysisTaskBodyDatastoreTypeEnum struct {
	MY_SQL              CreateSpaceAnalysisTaskBodyDatastoreType
	GAUSS_DB_FOR_MY_SQL CreateSpaceAnalysisTaskBodyDatastoreType
}

func GetCreateSpaceAnalysisTaskBodyDatastoreTypeEnum

func GetCreateSpaceAnalysisTaskBodyDatastoreTypeEnum() CreateSpaceAnalysisTaskBodyDatastoreTypeEnum

type CreateSpaceAnalysisTaskBodyOperate

type CreateSpaceAnalysisTaskBodyOperate struct {
	// contains filtered or unexported fields
}

func (CreateSpaceAnalysisTaskBodyOperate) MarshalJSON

func (c CreateSpaceAnalysisTaskBodyOperate) MarshalJSON() ([]byte, error)

func (*CreateSpaceAnalysisTaskBodyOperate) UnmarshalJSON

func (c *CreateSpaceAnalysisTaskBodyOperate) UnmarshalJSON(b []byte) error

func (CreateSpaceAnalysisTaskBodyOperate) Value added in v0.0.90

type CreateSpaceAnalysisTaskBodyOperateEnum

type CreateSpaceAnalysisTaskBodyOperateEnum struct {
	REANALYSIS CreateSpaceAnalysisTaskBodyOperate
}

func GetCreateSpaceAnalysisTaskBodyOperateEnum

func GetCreateSpaceAnalysisTaskBodyOperateEnum() CreateSpaceAnalysisTaskBodyOperateEnum

type CreateSpaceAnalysisTaskRequest

type CreateSpaceAnalysisTaskRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *CreateSpaceAnalysisTaskRequestXLanguage `json:"X-Language,omitempty"`

	Body *CreateSpaceAnalysisTaskBody `json:"body,omitempty"`
}

CreateSpaceAnalysisTaskRequest Request Object

func (CreateSpaceAnalysisTaskRequest) String

type CreateSpaceAnalysisTaskRequestXLanguage

type CreateSpaceAnalysisTaskRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (CreateSpaceAnalysisTaskRequestXLanguage) MarshalJSON

func (c CreateSpaceAnalysisTaskRequestXLanguage) MarshalJSON() ([]byte, error)

func (*CreateSpaceAnalysisTaskRequestXLanguage) UnmarshalJSON

func (c *CreateSpaceAnalysisTaskRequestXLanguage) UnmarshalJSON(b []byte) error

func (CreateSpaceAnalysisTaskRequestXLanguage) Value added in v0.0.90

type CreateSpaceAnalysisTaskRequestXLanguageEnum

type CreateSpaceAnalysisTaskRequestXLanguageEnum struct {
	ZH_CN CreateSpaceAnalysisTaskRequestXLanguage
	EN_US CreateSpaceAnalysisTaskRequestXLanguage
}

func GetCreateSpaceAnalysisTaskRequestXLanguageEnum

func GetCreateSpaceAnalysisTaskRequestXLanguageEnum() CreateSpaceAnalysisTaskRequestXLanguageEnum

type CreateSpaceAnalysisTaskResponse

type CreateSpaceAnalysisTaskResponse struct {

	// 执行时间,毫秒为单位的时间戳
	ExecutionTime  *int64 `json:"execution_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateSpaceAnalysisTaskResponse Response Object

func (CreateSpaceAnalysisTaskResponse) String

type CreateSqlLimitRuleOption added in v0.1.12

type CreateSqlLimitRuleOption struct {

	// SQL类型
	SqlType CreateSqlLimitRuleOptionSqlType `json:"sql_type"`

	// 最大并发数
	MaxConcurrency int32 `json:"max_concurrency"`

	// 最大等待时间
	MaxWaiting *int32 `json:"max_waiting,omitempty"`

	// SQL限流规则。限流规则以~分隔关键字,例如select~a。规则举例详细说明:例如关键字是\"select~a\", 含义为:select以及a为该并发控制所包含的两个关键字,~为关键字间隔符,即若执行SQL命令包含select与a两个关键字视为命中此条并发控制规则。
	Pattern string `json:"pattern"`

	// 历史SQL限流开关。 本开关仅对本条SQL限流规则生效。 开启时,将kill掉命中此条SQL限流规则的已有会话。
	HisSqlLimitSwitch *bool `json:"his_sql_limit_switch,omitempty"`
}

func (CreateSqlLimitRuleOption) String added in v0.1.12

func (o CreateSqlLimitRuleOption) String() string

type CreateSqlLimitRuleOptionSqlType added in v0.1.12

type CreateSqlLimitRuleOptionSqlType struct {
	// contains filtered or unexported fields
}

func (CreateSqlLimitRuleOptionSqlType) MarshalJSON added in v0.1.12

func (c CreateSqlLimitRuleOptionSqlType) MarshalJSON() ([]byte, error)

func (*CreateSqlLimitRuleOptionSqlType) UnmarshalJSON added in v0.1.12

func (c *CreateSqlLimitRuleOptionSqlType) UnmarshalJSON(b []byte) error

func (CreateSqlLimitRuleOptionSqlType) Value added in v0.1.12

type CreateSqlLimitRuleOptionSqlTypeEnum added in v0.1.12

func GetCreateSqlLimitRuleOptionSqlTypeEnum added in v0.1.12

func GetCreateSqlLimitRuleOptionSqlTypeEnum() CreateSqlLimitRuleOptionSqlTypeEnum

type CreateSqlLimitRulesBody added in v0.1.12

type CreateSqlLimitRulesBody struct {

	// 数据库类型
	DatastoreType CreateSqlLimitRulesBodyDatastoreType `json:"datastore_type"`

	// 需要创建的SQL限流规则列表,一次最多创建5个
	SqlLimitRules []CreateSqlLimitRuleOption `json:"sql_limit_rules"`

	// 数据库名(PostgreSQL必填)
	DatabaseName *string `json:"database_name,omitempty"`
}

CreateSqlLimitRulesBody 创建SQL限流规则请求提

func (CreateSqlLimitRulesBody) String added in v0.1.12

func (o CreateSqlLimitRulesBody) String() string

type CreateSqlLimitRulesBodyDatastoreType added in v0.1.12

type CreateSqlLimitRulesBodyDatastoreType struct {
	// contains filtered or unexported fields
}

func (CreateSqlLimitRulesBodyDatastoreType) MarshalJSON added in v0.1.12

func (c CreateSqlLimitRulesBodyDatastoreType) MarshalJSON() ([]byte, error)

func (*CreateSqlLimitRulesBodyDatastoreType) UnmarshalJSON added in v0.1.12

func (c *CreateSqlLimitRulesBodyDatastoreType) UnmarshalJSON(b []byte) error

func (CreateSqlLimitRulesBodyDatastoreType) Value added in v0.1.12

type CreateSqlLimitRulesBodyDatastoreTypeEnum added in v0.1.12

type CreateSqlLimitRulesBodyDatastoreTypeEnum struct {
	MY_SQL      CreateSqlLimitRulesBodyDatastoreType
	POSTGRE_SQL CreateSqlLimitRulesBodyDatastoreType
}

func GetCreateSqlLimitRulesBodyDatastoreTypeEnum added in v0.1.12

func GetCreateSqlLimitRulesBodyDatastoreTypeEnum() CreateSqlLimitRulesBodyDatastoreTypeEnum

type CreateSqlLimitRulesRequest added in v0.1.12

type CreateSqlLimitRulesRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *CreateSqlLimitRulesRequestXLanguage `json:"X-Language,omitempty"`

	Body *CreateSqlLimitRulesBody `json:"body,omitempty"`
}

CreateSqlLimitRulesRequest Request Object

func (CreateSqlLimitRulesRequest) String added in v0.1.12

type CreateSqlLimitRulesRequestXLanguage added in v0.1.12

type CreateSqlLimitRulesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (CreateSqlLimitRulesRequestXLanguage) MarshalJSON added in v0.1.12

func (c CreateSqlLimitRulesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*CreateSqlLimitRulesRequestXLanguage) UnmarshalJSON added in v0.1.12

func (c *CreateSqlLimitRulesRequestXLanguage) UnmarshalJSON(b []byte) error

func (CreateSqlLimitRulesRequestXLanguage) Value added in v0.1.12

type CreateSqlLimitRulesRequestXLanguageEnum added in v0.1.12

type CreateSqlLimitRulesRequestXLanguageEnum struct {
	ZH_CN CreateSqlLimitRulesRequestXLanguage
	EN_US CreateSqlLimitRulesRequestXLanguage
}

func GetCreateSqlLimitRulesRequestXLanguageEnum added in v0.1.12

func GetCreateSqlLimitRulesRequestXLanguageEnum() CreateSqlLimitRulesRequestXLanguageEnum

type CreateSqlLimitRulesResponse added in v0.1.12

type CreateSqlLimitRulesResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateSqlLimitRulesResponse Response Object

func (CreateSqlLimitRulesResponse) String added in v0.1.12

type CreateTuningReq added in v0.1.57

type CreateTuningReq struct {

	// 数据库名称
	DatabaseName string `json:"database_name"`

	// schema名称
	SchemaName *string `json:"schema_name,omitempty"`

	// sql脚本
	SqlScript string `json:"sql_script"`

	// 节点类型
	NodeType *string `json:"node_type,omitempty"`

	// 节点Id
	NodeId *string `json:"node_id,omitempty"`
}

func (CreateTuningReq) String added in v0.1.57

func (o CreateTuningReq) String() string

type CreateTuningRequest added in v0.1.57

type CreateTuningRequest struct {

	// 连接ID
	ConnectionId string `json:"connection_id"`

	// 语言
	XLanguage *string `json:"X-Language,omitempty"`

	Body *CreateTuningReq `json:"body,omitempty"`
}

CreateTuningRequest Request Object

func (CreateTuningRequest) String added in v0.1.57

func (o CreateTuningRequest) String() string

type CreateTuningResponse added in v0.1.57

type CreateTuningResponse struct {

	// 诊断信息id
	MessageId *[]string `json:"message_id,omitempty"`

	// 状态
	Status *bool `json:"status,omitempty"`

	// 诊断配额状态
	QuotaExceeded  *bool `json:"quota_exceeded,omitempty"`
	HttpStatusCode int   `json:"-"`
}

CreateTuningResponse Response Object

func (CreateTuningResponse) String added in v0.1.57

func (o CreateTuningResponse) String() string

type DasInstanceInfo added in v0.1.116

type DasInstanceInfo struct {

	// 实例id。
	InstanceId string `json:"instance_id"`

	// 实例名称。
	InstanceName string `json:"instance_name"`

	// 实例状态。
	InstanceStatus string `json:"instance_status"`

	// 实例版本号。
	Version string `json:"version"`

	// 引擎类型。
	EngineType string `json:"engine_type"`

	// ip
	Ip string `json:"ip"`

	// 端口号
	Port int32 `json:"port"`

	// 实例cpu核数
	Cpu int32 `json:"cpu"`

	// 实例内存大小
	Mem int32 `json:"mem"`

	// 实例登录是否启用
	LoginFlag bool `json:"login_flag"`

	// 慢sql是否启用
	SlowSqlFlag bool `json:"slow_sql_flag"`

	// 死锁分析是否启用
	DeadlockFlag bool `json:"deadlock_flag"`

	// 锁阻塞是否启用
	LockBlockingFlag bool `json:"lock_blocking_flag"`

	// 当前实例是否计费
	ChargeFlag bool `json:"charge_flag"`

	// 全量sql是否启用
	FullSqlFlag bool `json:"full_sql_flag"`
}

func (DasInstanceInfo) String added in v0.1.116

func (o DasInstanceInfo) String() string

type DbObjectSpaceInfo

type DbObjectSpaceInfo struct {

	// 对象类型,如果是table,同时需要传database_id
	ObjectType DbObjectSpaceInfoObjectType `json:"object_type"`

	// 对象名称
	ObjectName string `json:"object_name"`

	// 对象ID
	ObjectId *string `json:"object_id,omitempty"`

	// 已使用空间,以字节为单位
	UsedSize *int64 `json:"used_size,omitempty"`

	// 数据空间,以字节为单位
	DataSize *int64 `json:"data_size,omitempty"`

	// 索引空间,以字节为单位
	IndexSize *int64 `json:"index_size,omitempty"`

	// 碎片空间,以字节为单位
	FreeSize *int64 `json:"free_size,omitempty"`

	// 碎片率
	FreeRate *float64 `json:"free_rate,omitempty"`

	// 估算值行数,以字节为单位
	EstimatedRows *int64 `json:"estimated_rows,omitempty"`
}

DbObjectSpaceInfo 数据库对象空间信息,数据来源于information_schema.tables系统表。已用空间包含数据空间、索引空间和碎片空间。

func (DbObjectSpaceInfo) String

func (o DbObjectSpaceInfo) String() string

type DbObjectSpaceInfoObjectType

type DbObjectSpaceInfoObjectType struct {
	// contains filtered or unexported fields
}

func (DbObjectSpaceInfoObjectType) MarshalJSON

func (c DbObjectSpaceInfoObjectType) MarshalJSON() ([]byte, error)

func (*DbObjectSpaceInfoObjectType) UnmarshalJSON

func (c *DbObjectSpaceInfoObjectType) UnmarshalJSON(b []byte) error

func (DbObjectSpaceInfoObjectType) Value added in v0.0.90

type DbObjectSpaceInfoObjectTypeEnum

type DbObjectSpaceInfoObjectTypeEnum struct {
	DATABASE DbObjectSpaceInfoObjectType
	TABLE    DbObjectSpaceInfoObjectType
}

func GetDbObjectSpaceInfoObjectTypeEnum

func GetDbObjectSpaceInfoObjectTypeEnum() DbObjectSpaceInfoObjectTypeEnum

type DbUser

type DbUser struct {

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 数据库用户名称
	DbUsername string `json:"db_username"`
}

DbUser 注册的数据库用户信息

func (DbUser) String

func (o DbUser) String() string

type DeleteDbUserRequest

type DeleteDbUserRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 语言
	XLanguage *DeleteDbUserRequestXLanguage `json:"X-Language,omitempty"`
}

DeleteDbUserRequest Request Object

func (DeleteDbUserRequest) String

func (o DeleteDbUserRequest) String() string

type DeleteDbUserRequestXLanguage

type DeleteDbUserRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (DeleteDbUserRequestXLanguage) MarshalJSON

func (c DeleteDbUserRequestXLanguage) MarshalJSON() ([]byte, error)

func (*DeleteDbUserRequestXLanguage) UnmarshalJSON

func (c *DeleteDbUserRequestXLanguage) UnmarshalJSON(b []byte) error

func (DeleteDbUserRequestXLanguage) Value added in v0.0.90

type DeleteDbUserRequestXLanguageEnum

type DeleteDbUserRequestXLanguageEnum struct {
	ZH_CN DeleteDbUserRequestXLanguage
	EN_US DeleteDbUserRequestXLanguage
}

func GetDeleteDbUserRequestXLanguageEnum

func GetDeleteDbUserRequestXLanguageEnum() DeleteDbUserRequestXLanguageEnum

type DeleteDbUserResponse

type DeleteDbUserResponse struct {

	// 删除结果,删除成功返回OK
	Result         *string `json:"result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteDbUserResponse Response Object

func (DeleteDbUserResponse) String

func (o DeleteDbUserResponse) String() string

type DeleteProcessReqBody

type DeleteProcessReqBody struct {

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 会话ID列表。process_ids、user、database至少指定一个参数。
	ProcessIds *[]string `json:"process_ids,omitempty"`

	// 用户
	User *string `json:"user,omitempty"`

	// 数据库名称
	Database *string `json:"database,omitempty"`
}

func (DeleteProcessReqBody) String

func (o DeleteProcessReqBody) String() string

type DeleteProcessRequest

type DeleteProcessRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *DeleteProcessRequestXLanguage `json:"X-Language,omitempty"`

	Body *DeleteProcessReqBody `json:"body,omitempty"`
}

DeleteProcessRequest Request Object

func (DeleteProcessRequest) String

func (o DeleteProcessRequest) String() string

type DeleteProcessRequestXLanguage

type DeleteProcessRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (DeleteProcessRequestXLanguage) MarshalJSON

func (c DeleteProcessRequestXLanguage) MarshalJSON() ([]byte, error)

func (*DeleteProcessRequestXLanguage) UnmarshalJSON

func (c *DeleteProcessRequestXLanguage) UnmarshalJSON(b []byte) error

func (DeleteProcessRequestXLanguage) Value added in v0.0.90

type DeleteProcessRequestXLanguageEnum

type DeleteProcessRequestXLanguageEnum struct {
	ZH_CN DeleteProcessRequestXLanguage
	EN_US DeleteProcessRequestXLanguage
}

func GetDeleteProcessRequestXLanguageEnum

func GetDeleteProcessRequestXLanguageEnum() DeleteProcessRequestXLanguageEnum

type DeleteProcessResponse

type DeleteProcessResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteProcessResponse Response Object

func (DeleteProcessResponse) String

func (o DeleteProcessResponse) String() string

type DeleteSqlLimitRulesBody added in v0.1.12

type DeleteSqlLimitRulesBody struct {

	// 数据库类型
	DatastoreType DeleteSqlLimitRulesBodyDatastoreType `json:"datastore_type"`

	// SQL限流规则ID
	SqlLimitRuleIds []string `json:"sql_limit_rule_ids"`

	// 数据库名(PostgreSQL必填)
	DatabaseName *string `json:"database_name,omitempty"`
}

DeleteSqlLimitRulesBody 删除SQL限流规则请求体

func (DeleteSqlLimitRulesBody) String added in v0.1.12

func (o DeleteSqlLimitRulesBody) String() string

type DeleteSqlLimitRulesBodyDatastoreType added in v0.1.12

type DeleteSqlLimitRulesBodyDatastoreType struct {
	// contains filtered or unexported fields
}

func (DeleteSqlLimitRulesBodyDatastoreType) MarshalJSON added in v0.1.12

func (c DeleteSqlLimitRulesBodyDatastoreType) MarshalJSON() ([]byte, error)

func (*DeleteSqlLimitRulesBodyDatastoreType) UnmarshalJSON added in v0.1.12

func (c *DeleteSqlLimitRulesBodyDatastoreType) UnmarshalJSON(b []byte) error

func (DeleteSqlLimitRulesBodyDatastoreType) Value added in v0.1.12

type DeleteSqlLimitRulesBodyDatastoreTypeEnum added in v0.1.12

type DeleteSqlLimitRulesBodyDatastoreTypeEnum struct {
	MY_SQL      DeleteSqlLimitRulesBodyDatastoreType
	POSTGRE_SQL DeleteSqlLimitRulesBodyDatastoreType
}

func GetDeleteSqlLimitRulesBodyDatastoreTypeEnum added in v0.1.12

func GetDeleteSqlLimitRulesBodyDatastoreTypeEnum() DeleteSqlLimitRulesBodyDatastoreTypeEnum

type DeleteSqlLimitRulesRequest added in v0.1.12

type DeleteSqlLimitRulesRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *DeleteSqlLimitRulesRequestXLanguage `json:"X-Language,omitempty"`

	Body *DeleteSqlLimitRulesBody `json:"body,omitempty"`
}

DeleteSqlLimitRulesRequest Request Object

func (DeleteSqlLimitRulesRequest) String added in v0.1.12

type DeleteSqlLimitRulesRequestXLanguage added in v0.1.12

type DeleteSqlLimitRulesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (DeleteSqlLimitRulesRequestXLanguage) MarshalJSON added in v0.1.12

func (c DeleteSqlLimitRulesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*DeleteSqlLimitRulesRequestXLanguage) UnmarshalJSON added in v0.1.12

func (c *DeleteSqlLimitRulesRequestXLanguage) UnmarshalJSON(b []byte) error

func (DeleteSqlLimitRulesRequestXLanguage) Value added in v0.1.12

type DeleteSqlLimitRulesRequestXLanguageEnum added in v0.1.12

type DeleteSqlLimitRulesRequestXLanguageEnum struct {
	ZH_CN DeleteSqlLimitRulesRequestXLanguage
	EN_US DeleteSqlLimitRulesRequestXLanguage
}

func GetDeleteSqlLimitRulesRequestXLanguageEnum added in v0.1.12

func GetDeleteSqlLimitRulesRequestXLanguageEnum() DeleteSqlLimitRulesRequestXLanguageEnum

type DeleteSqlLimitRulesResponse added in v0.1.12

type DeleteSqlLimitRulesResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteSqlLimitRulesResponse Response Object

func (DeleteSqlLimitRulesResponse) String added in v0.1.12

type ExecutionPlan

type ExecutionPlan struct {

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

	// select子句的类型
	SelectType string `json:"select_type"`

	// 数据库表
	Table string `json:"table"`

	// 查询将匹配记录的分区
	Partitions string `json:"partitions"`

	// 访问类型
	Type string `json:"type"`

	// 可能使用的键(索引)
	PossibleKeys string `json:"possible_keys"`

	// 实际使用的键(索引)
	Key string `json:"key"`

	// 决定使用的键的长度
	KeyLen string `json:"key_len"`

	// 使用哪个列或常数与键一起来选择行
	Ref string `json:"ref"`

	// MySQL认为它执行查询时必须检查的行数
	Rows string `json:"rows"`

	// 按表条件过滤的表行的估计百分比
	Filtered string `json:"filtered"`

	// 其他信息
	Extra string `json:"extra"`
}

func (ExecutionPlan) String

func (o ExecutionPlan) String() string

type Explain added in v0.1.57

type Explain struct {

	// select子句的编号
	Id *int32 `json:"id,omitempty"`

	// select子句的类型
	SelectType *string `json:"select_type,omitempty"`

	// SQL优化器选择的表join顺序。
	Table *string `json:"table,omitempty"`

	// 查找表中行的访问类型(从好到坏依次为:null>system>const>eq_ref>ref>range>index>all)。
	Type *string `json:"type,omitempty"`

	// 有助于高效查找行的索引。
	PossibleKeys *string `json:"possible_keys,omitempty"`

	// 出于最小化查询成本考虑,SQL优化器实际使用的索引
	Key *string `json:"key,omitempty"`

	// key列所示索引的长度(字节)
	KeyLen *string `json:"key_len,omitempty"`

	// 在使用key列所示索引查找数据时用到的列或常量
	Ref *string `json:"ref,omitempty"`

	// key列所示索引的长度(字节)
	Rows *int64 `json:"rows,omitempty"`

	// sql解析的额外信息:当出现using index时,说明SQL使用覆盖索引,性能较好;而当出现 using filesort、using temporary、using where时,说明查询需要优化。
	Filtered *float64 `json:"filtered,omitempty"`

	// sql解析的额外信息:当出现using index时,说明SQL使用覆盖索引,性能较好;而当出现 using filesort、using temporary、using where时,说明查询需要优化。
	Extra *string `json:"extra,omitempty"`
}

func (Explain) String added in v0.1.57

func (o Explain) String() string

type ExportSlowQueryLogsRequest

type ExportSlowQueryLogsRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 数据库类型。支持MySQL、GaussDB(for MySQL)、PostgreSQL。
	DatastoreType string `json:"datastore_type"`

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 每页记录数。最大为2000。
	Limit int32 `json:"limit"`

	// 指定一个标识符。获取第一页时不用赋值,获取下一页时取上页查询结果的返回值。
	Marker *string `json:"marker,omitempty"`

	// 请求语言类型。
	XLanguage *ExportSlowQueryLogsRequestXLanguage `json:"X-Language,omitempty"`
}

ExportSlowQueryLogsRequest Request Object

func (ExportSlowQueryLogsRequest) String

type ExportSlowQueryLogsRequestXLanguage

type ExportSlowQueryLogsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportSlowQueryLogsRequestXLanguage) MarshalJSON

func (c ExportSlowQueryLogsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ExportSlowQueryLogsRequestXLanguage) UnmarshalJSON

func (c *ExportSlowQueryLogsRequestXLanguage) UnmarshalJSON(b []byte) error

func (ExportSlowQueryLogsRequestXLanguage) Value added in v0.0.90

type ExportSlowQueryLogsRequestXLanguageEnum

type ExportSlowQueryLogsRequestXLanguageEnum struct {
	EN_US ExportSlowQueryLogsRequestXLanguage
	ZH_CN ExportSlowQueryLogsRequestXLanguage
}

func GetExportSlowQueryLogsRequestXLanguageEnum

func GetExportSlowQueryLogsRequestXLanguageEnum() ExportSlowQueryLogsRequestXLanguageEnum

type ExportSlowQueryLogsResponse

type ExportSlowQueryLogsResponse struct {

	// 慢SQL集合。当集合为空时,说明慢SQL已全部导出。
	SlowLogs *[]SlowLog `json:"slow_logs,omitempty"`

	// 获取下一页所需的标识符。marker仅在3分钟内有效。
	NextMarker     *string `json:"next_marker,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ExportSlowQueryLogsResponse Response Object

func (ExportSlowQueryLogsResponse) String

type ExportSlowSqlStatisticsRequest added in v0.1.96

type ExportSlowSqlStatisticsRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 请求语言类型。
	XLanguage *ExportSlowSqlStatisticsRequestXLanguage `json:"X-Language,omitempty"`

	Body *ExportSlowSqlStatisticsRequestBody `json:"body,omitempty"`
}

ExportSlowSqlStatisticsRequest Request Object

func (ExportSlowSqlStatisticsRequest) String added in v0.1.96

type ExportSlowSqlStatisticsRequestBody added in v0.1.96

type ExportSlowSqlStatisticsRequestBody struct {

	// 数据库类型。慢SQL统计支持的类型:DDS-Community。
	DatastoreType ExportSlowSqlStatisticsRequestBodyDatastoreType `json:"datastore_type"`

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 节点ID列表。
	NodeIds *[]string `json:"node_ids,omitempty"`

	// 统计字段。支持统计的字段:node_id、sql_type、db_name、collection、user、client。默认使用node_id统计。
	StatisticsField *ExportSlowSqlStatisticsRequestBodyStatisticsField `json:"statistics_field,omitempty"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页记录数,默认为20,最大取值100。
	Limit *int32 `json:"limit,omitempty"`
}

func (ExportSlowSqlStatisticsRequestBody) String added in v0.1.96

type ExportSlowSqlStatisticsRequestBodyDatastoreType added in v0.1.96

type ExportSlowSqlStatisticsRequestBodyDatastoreType struct {
	// contains filtered or unexported fields
}

func (ExportSlowSqlStatisticsRequestBodyDatastoreType) MarshalJSON added in v0.1.96

func (*ExportSlowSqlStatisticsRequestBodyDatastoreType) UnmarshalJSON added in v0.1.96

func (ExportSlowSqlStatisticsRequestBodyDatastoreType) Value added in v0.1.96

type ExportSlowSqlStatisticsRequestBodyDatastoreTypeEnum added in v0.1.96

type ExportSlowSqlStatisticsRequestBodyDatastoreTypeEnum struct {
	DDS_COMMUNITY ExportSlowSqlStatisticsRequestBodyDatastoreType
}

func GetExportSlowSqlStatisticsRequestBodyDatastoreTypeEnum added in v0.1.96

func GetExportSlowSqlStatisticsRequestBodyDatastoreTypeEnum() ExportSlowSqlStatisticsRequestBodyDatastoreTypeEnum

type ExportSlowSqlStatisticsRequestBodyStatisticsField added in v0.1.96

type ExportSlowSqlStatisticsRequestBodyStatisticsField struct {
	// contains filtered or unexported fields
}

func (ExportSlowSqlStatisticsRequestBodyStatisticsField) MarshalJSON added in v0.1.96

func (*ExportSlowSqlStatisticsRequestBodyStatisticsField) UnmarshalJSON added in v0.1.96

func (ExportSlowSqlStatisticsRequestBodyStatisticsField) Value added in v0.1.96

type ExportSlowSqlStatisticsRequestXLanguage added in v0.1.96

type ExportSlowSqlStatisticsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportSlowSqlStatisticsRequestXLanguage) MarshalJSON added in v0.1.96

func (c ExportSlowSqlStatisticsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ExportSlowSqlStatisticsRequestXLanguage) UnmarshalJSON added in v0.1.96

func (c *ExportSlowSqlStatisticsRequestXLanguage) UnmarshalJSON(b []byte) error

func (ExportSlowSqlStatisticsRequestXLanguage) Value added in v0.1.96

type ExportSlowSqlStatisticsRequestXLanguageEnum added in v0.1.96

type ExportSlowSqlStatisticsRequestXLanguageEnum struct {
	EN_US ExportSlowSqlStatisticsRequestXLanguage
	ZH_CN ExportSlowSqlStatisticsRequestXLanguage
}

func GetExportSlowSqlStatisticsRequestXLanguageEnum added in v0.1.96

func GetExportSlowSqlStatisticsRequestXLanguageEnum() ExportSlowSqlStatisticsRequestXLanguageEnum

type ExportSlowSqlStatisticsResponse added in v0.1.96

type ExportSlowSqlStatisticsResponse struct {

	// 慢SQL统计列表。
	StatisticsList *[]SlowSqlStatistics `json:"statistics_list,omitempty"`

	// 总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ExportSlowSqlStatisticsResponse Response Object

func (ExportSlowSqlStatisticsResponse) String added in v0.1.96

type ExportSlowSqlTemplatesDetailsRequest added in v0.1.12

type ExportSlowSqlTemplatesDetailsRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 数据库类型。支持MySQL和GaussDB(for MySQL)。
	DatastoreType string `json:"datastore_type"`

	// 数据库名称。
	DbName *string `json:"db_name,omitempty"`

	// 请求语言类型。
	XLanguage *ExportSlowSqlTemplatesDetailsRequestXLanguage `json:"X-Language,omitempty"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页记录数,默认为20,最大取值100。
	Limit *int32 `json:"limit,omitempty"`
}

ExportSlowSqlTemplatesDetailsRequest Request Object

func (ExportSlowSqlTemplatesDetailsRequest) String added in v0.1.12

type ExportSlowSqlTemplatesDetailsRequestXLanguage added in v0.1.12

type ExportSlowSqlTemplatesDetailsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportSlowSqlTemplatesDetailsRequestXLanguage) MarshalJSON added in v0.1.12

func (*ExportSlowSqlTemplatesDetailsRequestXLanguage) UnmarshalJSON added in v0.1.12

func (ExportSlowSqlTemplatesDetailsRequestXLanguage) Value added in v0.1.12

type ExportSlowSqlTemplatesDetailsRequestXLanguageEnum added in v0.1.12

type ExportSlowSqlTemplatesDetailsRequestXLanguageEnum struct {
	EN_US ExportSlowSqlTemplatesDetailsRequestXLanguage
	ZH_CN ExportSlowSqlTemplatesDetailsRequestXLanguage
}

func GetExportSlowSqlTemplatesDetailsRequestXLanguageEnum added in v0.1.12

func GetExportSlowSqlTemplatesDetailsRequestXLanguageEnum() ExportSlowSqlTemplatesDetailsRequestXLanguageEnum

type ExportSlowSqlTemplatesDetailsResponse added in v0.1.12

type ExportSlowSqlTemplatesDetailsResponse struct {

	// 慢日志模板数据列表。
	SlowSqlTemplates *[]SlowSqlTemplate `json:"slow_sql_templates,omitempty"`

	// 慢日志模板总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ExportSlowSqlTemplatesDetailsResponse Response Object

func (ExportSlowSqlTemplatesDetailsResponse) String added in v0.1.12

type ExportSlowSqlTrendDetailsRequest added in v0.1.104

type ExportSlowSqlTrendDetailsRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 数据库类型。支持MySQL和GaussDB(for MySQL)。
	DatastoreType string `json:"datastore_type"`

	// 节点ID。
	NodeId *string `json:"node_id,omitempty"`

	// 请求语言类型。
	XLanguage *ExportSlowSqlTrendDetailsRequestXLanguage `json:"X-Language,omitempty"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页记录数,默认为20,最大取值100。
	Limit *int32 `json:"limit,omitempty"`
}

ExportSlowSqlTrendDetailsRequest Request Object

func (ExportSlowSqlTrendDetailsRequest) String added in v0.1.104

type ExportSlowSqlTrendDetailsRequestXLanguage added in v0.1.104

type ExportSlowSqlTrendDetailsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportSlowSqlTrendDetailsRequestXLanguage) MarshalJSON added in v0.1.104

func (*ExportSlowSqlTrendDetailsRequestXLanguage) UnmarshalJSON added in v0.1.104

func (ExportSlowSqlTrendDetailsRequestXLanguage) Value added in v0.1.104

type ExportSlowSqlTrendDetailsRequestXLanguageEnum added in v0.1.104

type ExportSlowSqlTrendDetailsRequestXLanguageEnum struct {
	EN_US ExportSlowSqlTrendDetailsRequestXLanguage
	ZH_CN ExportSlowSqlTrendDetailsRequestXLanguage
}

func GetExportSlowSqlTrendDetailsRequestXLanguageEnum added in v0.1.104

func GetExportSlowSqlTrendDetailsRequestXLanguageEnum() ExportSlowSqlTrendDetailsRequestXLanguageEnum

type ExportSlowSqlTrendDetailsResponse added in v0.1.104

type ExportSlowSqlTrendDetailsResponse struct {

	// 慢SQL数量趋势。
	SlowSqlTrendItems *[]SlowSqlTrendItem `json:"slow_sql_trend_items,omitempty"`

	// 返回列表两个时间点之间的时间间隔。总查询时长3小时之内间隔1分钟,3小时到6小时范围内间隔5分钟,6小时到12小时范围内间隔30分钟,12小时以上间隔1小时。单位为毫秒。
	IntervalMillis *int64 `json:"interval_millis,omitempty"`

	// 趋势数据总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ExportSlowSqlTrendDetailsResponse Response Object

func (ExportSlowSqlTrendDetailsResponse) String added in v0.1.104

type ExportSqlStatementsRequest

type ExportSqlStatementsRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 每页记录数。最大为2000。
	Limit int32 `json:"limit"`

	// 指定一个标识符。获取第一页时不用赋值,获取下一页时取上页查询结果的返回值。
	Marker *string `json:"marker,omitempty"`

	// 数据库类型。支持MySQL和GaussDB(for MySQL)。
	DatastoreType string `json:"datastore_type"`

	// 请求语言类型。
	XLanguage *ExportSqlStatementsRequestXLanguage `json:"X-Language,omitempty"`
}

ExportSqlStatementsRequest Request Object

func (ExportSqlStatementsRequest) String

type ExportSqlStatementsRequestXLanguage

type ExportSqlStatementsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportSqlStatementsRequestXLanguage) MarshalJSON

func (c ExportSqlStatementsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ExportSqlStatementsRequestXLanguage) UnmarshalJSON

func (c *ExportSqlStatementsRequestXLanguage) UnmarshalJSON(b []byte) error

func (ExportSqlStatementsRequestXLanguage) Value added in v0.0.90

type ExportSqlStatementsRequestXLanguageEnum

type ExportSqlStatementsRequestXLanguageEnum struct {
	EN_US ExportSqlStatementsRequestXLanguage
	ZH_CN ExportSqlStatementsRequestXLanguage
}

func GetExportSqlStatementsRequestXLanguageEnum

func GetExportSqlStatementsRequestXLanguageEnum() ExportSqlStatementsRequestXLanguageEnum

type ExportSqlStatementsResponse

type ExportSqlStatementsResponse struct {

	// 全量SQL集合。当集合为空时,说明SQL已全部导出。
	Statements *[]FullSql `json:"statements,omitempty"`

	// 获取下一页所需的标识符。marker仅在3分钟内有效。
	NextMarker     *string `json:"next_marker,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ExportSqlStatementsResponse Response Object

func (ExportSqlStatementsResponse) String

type ExportTopRiskInstancesRequest added in v0.1.108

type ExportTopRiskInstancesRequest struct {

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 数据库类型。
	DatastoreType string `json:"datastore_type"`

	// 返回TOP风险实例数量。
	Num *ExportTopRiskInstancesRequestNum `json:"num,omitempty"`

	// 请求语言类型。
	XLanguage *ExportTopRiskInstancesRequestXLanguage `json:"X-Language,omitempty"`
}

ExportTopRiskInstancesRequest Request Object

func (ExportTopRiskInstancesRequest) String added in v0.1.108

type ExportTopRiskInstancesRequestNum added in v0.1.108

type ExportTopRiskInstancesRequestNum struct {
	// contains filtered or unexported fields
}

func (ExportTopRiskInstancesRequestNum) MarshalJSON added in v0.1.108

func (c ExportTopRiskInstancesRequestNum) MarshalJSON() ([]byte, error)

func (*ExportTopRiskInstancesRequestNum) UnmarshalJSON added in v0.1.108

func (c *ExportTopRiskInstancesRequestNum) UnmarshalJSON(b []byte) error

func (ExportTopRiskInstancesRequestNum) Value added in v0.1.108

type ExportTopRiskInstancesRequestNumEnum added in v0.1.108

type ExportTopRiskInstancesRequestNumEnum struct {
	E_10 ExportTopRiskInstancesRequestNum
	E_20 ExportTopRiskInstancesRequestNum
	E_30 ExportTopRiskInstancesRequestNum
}

func GetExportTopRiskInstancesRequestNumEnum added in v0.1.108

func GetExportTopRiskInstancesRequestNumEnum() ExportTopRiskInstancesRequestNumEnum

type ExportTopRiskInstancesRequestXLanguage added in v0.1.108

type ExportTopRiskInstancesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportTopRiskInstancesRequestXLanguage) MarshalJSON added in v0.1.108

func (c ExportTopRiskInstancesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ExportTopRiskInstancesRequestXLanguage) UnmarshalJSON added in v0.1.108

func (c *ExportTopRiskInstancesRequestXLanguage) UnmarshalJSON(b []byte) error

func (ExportTopRiskInstancesRequestXLanguage) Value added in v0.1.108

type ExportTopRiskInstancesRequestXLanguageEnum added in v0.1.108

type ExportTopRiskInstancesRequestXLanguageEnum struct {
	EN_US ExportTopRiskInstancesRequestXLanguage
	ZH_CN ExportTopRiskInstancesRequestXLanguage
}

func GetExportTopRiskInstancesRequestXLanguageEnum added in v0.1.108

func GetExportTopRiskInstancesRequestXLanguageEnum() ExportTopRiskInstancesRequestXLanguageEnum

type ExportTopRiskInstancesResponse added in v0.1.108

type ExportTopRiskInstancesResponse struct {

	// 风险实例列表。
	TopRiskInfo *[]TopRiskInfo `json:"top_risk_info,omitempty"`

	// 总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ExportTopRiskInstancesResponse Response Object

func (ExportTopRiskInstancesResponse) String added in v0.1.108

type ExportTopSqlTemplatesDetailsRequest added in v0.1.12

type ExportTopSqlTemplatesDetailsRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 数据库类型。支持MySQL和GaussDB(for MySQL)。
	DatastoreType string `json:"datastore_type"`

	// 节点ID。
	NodeId *string `json:"node_id,omitempty"`

	// 排序字段(executeNum:执行次数, totalCost:总耗时, avgCost:平均耗时, totalScan: 总扫描行数, avgScan:平均扫描行数)。
	Sort *ExportTopSqlTemplatesDetailsRequestSort `json:"sort,omitempty"`

	// 排序顺序(true:正序, false:逆序)。
	Asc *bool `json:"asc,omitempty"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页记录数,默认为20,最大取值100。
	Limit *int32 `json:"limit,omitempty"`

	// 请求语言类型。
	XLanguage *ExportTopSqlTemplatesDetailsRequestXLanguage `json:"X-Language,omitempty"`
}

ExportTopSqlTemplatesDetailsRequest Request Object

func (ExportTopSqlTemplatesDetailsRequest) String added in v0.1.12

type ExportTopSqlTemplatesDetailsRequestSort added in v0.1.12

type ExportTopSqlTemplatesDetailsRequestSort struct {
	// contains filtered or unexported fields
}

func (ExportTopSqlTemplatesDetailsRequestSort) MarshalJSON added in v0.1.12

func (c ExportTopSqlTemplatesDetailsRequestSort) MarshalJSON() ([]byte, error)

func (*ExportTopSqlTemplatesDetailsRequestSort) UnmarshalJSON added in v0.1.12

func (c *ExportTopSqlTemplatesDetailsRequestSort) UnmarshalJSON(b []byte) error

func (ExportTopSqlTemplatesDetailsRequestSort) Value added in v0.1.12

type ExportTopSqlTemplatesDetailsRequestSortEnum added in v0.1.12

func GetExportTopSqlTemplatesDetailsRequestSortEnum added in v0.1.12

func GetExportTopSqlTemplatesDetailsRequestSortEnum() ExportTopSqlTemplatesDetailsRequestSortEnum

type ExportTopSqlTemplatesDetailsRequestXLanguage added in v0.1.12

type ExportTopSqlTemplatesDetailsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportTopSqlTemplatesDetailsRequestXLanguage) MarshalJSON added in v0.1.12

func (*ExportTopSqlTemplatesDetailsRequestXLanguage) UnmarshalJSON added in v0.1.12

func (ExportTopSqlTemplatesDetailsRequestXLanguage) Value added in v0.1.12

type ExportTopSqlTemplatesDetailsRequestXLanguageEnum added in v0.1.12

type ExportTopSqlTemplatesDetailsRequestXLanguageEnum struct {
	EN_US ExportTopSqlTemplatesDetailsRequestXLanguage
	ZH_CN ExportTopSqlTemplatesDetailsRequestXLanguage
}

func GetExportTopSqlTemplatesDetailsRequestXLanguageEnum added in v0.1.12

func GetExportTopSqlTemplatesDetailsRequestXLanguageEnum() ExportTopSqlTemplatesDetailsRequestXLanguageEnum

type ExportTopSqlTemplatesDetailsResponse added in v0.1.12

type ExportTopSqlTemplatesDetailsResponse struct {

	// SQL模板列表。
	TopSqlTemplates *[]TopSqlTemplate `json:"top_sql_templates,omitempty"`

	// SQL模板总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ExportTopSqlTemplatesDetailsResponse Response Object

func (ExportTopSqlTemplatesDetailsResponse) String added in v0.1.12

type ExportTopSqlTrendDetailsRequest added in v0.1.12

type ExportTopSqlTrendDetailsRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 数据库类型。支持MySQL和GaussDB(for MySQL)。
	DatastoreType string `json:"datastore_type"`

	// 节点ID。
	NodeId *string `json:"node_id,omitempty"`

	// 请求语言类型。
	XLanguage *ExportTopSqlTrendDetailsRequestXLanguage `json:"X-Language,omitempty"`
}

ExportTopSqlTrendDetailsRequest Request Object

func (ExportTopSqlTrendDetailsRequest) String added in v0.1.12

type ExportTopSqlTrendDetailsRequestXLanguage added in v0.1.12

type ExportTopSqlTrendDetailsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ExportTopSqlTrendDetailsRequestXLanguage) MarshalJSON added in v0.1.12

func (*ExportTopSqlTrendDetailsRequestXLanguage) UnmarshalJSON added in v0.1.12

func (c *ExportTopSqlTrendDetailsRequestXLanguage) UnmarshalJSON(b []byte) error

func (ExportTopSqlTrendDetailsRequestXLanguage) Value added in v0.1.12

type ExportTopSqlTrendDetailsRequestXLanguageEnum added in v0.1.12

type ExportTopSqlTrendDetailsRequestXLanguageEnum struct {
	EN_US ExportTopSqlTrendDetailsRequestXLanguage
	ZH_CN ExportTopSqlTrendDetailsRequestXLanguage
}

func GetExportTopSqlTrendDetailsRequestXLanguageEnum added in v0.1.12

func GetExportTopSqlTrendDetailsRequestXLanguageEnum() ExportTopSqlTrendDetailsRequestXLanguageEnum

type ExportTopSqlTrendDetailsResponse added in v0.1.12

type ExportTopSqlTrendDetailsResponse struct {

	// 返回列表两个时间点之间的时间间隔。总查询时长一小时之内间隔10s,一小时到六小时范围内间隔60s。单位为毫秒。
	IntervalMillis *int64 `json:"interval_millis,omitempty"`

	// SQL执行耗时区间数据。
	TopSqlTrendItems *[]TopSqlTrendItem `json:"top_sql_trend_items,omitempty"`

	// 耗时区间数据总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ExportTopSqlTrendDetailsResponse Response Object

func (ExportTopSqlTrendDetailsResponse) String added in v0.1.12

type FeedbackInfo added in v0.1.57

type FeedbackInfo struct {

	// 编号
	Id *string `json:"id,omitempty"`

	// 项目Id
	ProjectId *string `json:"project_id,omitempty"`

	// 任务消息唯一Id
	MessageId *string `json:"message_id,omitempty"`

	// 反馈等级
	FeedbackGrade *string `json:"feedback_grade,omitempty"`

	// 反馈内容
	FeedbackContent *string `json:"feedback_content,omitempty"`

	// 创建时间
	GmtCreated *int64 `json:"gmt_created,omitempty"`

	// 修改时间
	GmtModified *int64 `json:"gmt_modified,omitempty"`
}

func (FeedbackInfo) String added in v0.1.57

func (o FeedbackInfo) String() string

type FullSql

type FullSql struct {

	// SQL语句。
	Sql string `json:"sql"`

	// 操作类型。
	OperateType string `json:"operate_type"`

	// 状态。
	Status string `json:"status"`

	// 错误码。
	ErrorNo string `json:"error_no"`

	// 数据库名。
	Database string `json:"database"`

	// 客户端。
	Client string `json:"client"`

	// 线程ID。
	ThreadId string `json:"thread_id"`

	// 用户。
	User string `json:"user"`

	// 执行开始时间(Unix timestamp),单位:毫秒。
	ExecuteAt int64 `json:"execute_at"`

	// 执行耗时(毫秒)。
	QueryTime float64 `json:"query_time"`

	// 锁等待耗时(毫秒)。
	LockTime float64 `json:"lock_time"`

	// 扫描行数。
	RowsExamined int64 `json:"rows_examined"`

	// 返回行数。
	RowsSent int64 `json:"rows_sent"`

	// 更新行数。
	RowsAffected int64 `json:"rows_affected"`
}

func (FullSql) String

func (o FullSql) String() string

type GetTransactionListRespTransactionInfoList added in v0.1.105

type GetTransactionListRespTransactionInfoList struct {

	// 事务持续时间
	LastSec int32 `json:"last_sec"`

	// 等待锁数量
	WaitLocks int32 `json:"wait_locks"`

	// 持有锁数量
	HoldLocks int32 `json:"hold_locks"`

	// 发生时间
	OccurrenceTime int32 `json:"occurrence_time"`

	// 事务内容
	Detail string `json:"detail"`

	// 收集时间
	CollectTime int64 `json:"collect_time"`
}

func (GetTransactionListRespTransactionInfoList) String added in v0.1.105

type IndexAdviceInfo added in v0.1.57

type IndexAdviceInfo struct {

	// schema名
	SchemaName *string `json:"schema_name,omitempty"`

	// 表名
	TableName *string `json:"table_name,omitempty"`

	// 索引名
	IndexName *string `json:"index_name,omitempty"`

	// 列
	Columns *[]string `json:"columns,omitempty"`

	// 是否唯一
	Unique *bool `json:"unique,omitempty"`

	// 追踪id
	TrackId *string `json:"track_id,omitempty"`

	// 质量
	Quality *interface{} `json:"quality,omitempty"`

	// ddl需要添加的索引
	DdlAddIndex *string `json:"ddl_add_index,omitempty"`
}

func (IndexAdviceInfo) String added in v0.1.57

func (o IndexAdviceInfo) String() string

type InnodbLock

type InnodbLock struct {

	// 锁ID
	LockId string `json:"lock_id"`

	// 事务ID
	LockTrxId string `json:"lock_trx_id"`

	// 锁模式,取值为S[,GAP], X[,GAP], IS[,GAP], IX[,GAP], AUTO_INC, and UNKNOWN。
	LockMode string `json:"lock_mode"`

	// 锁类型,取值为RECORD或TABLE。RECORD为行锁, TABLE为表锁
	LockType string `json:"lock_type"`

	// 加锁的表
	LockTable string `json:"lock_table"`

	// 如果是lock_type='RECORD' 行级锁 ,为锁住的索引,如果是表锁为null
	LockIndex string `json:"lock_index"`

	// 如果是lock_type='RECORD' 行级锁 ,为锁住的索引,如果是表锁为null
	LockSpace string `json:"lock_space"`

	// 如果是lock_type='RECORD' 行级锁 ,为锁住的页号,如果是表锁为null
	LockPage string `json:"lock_page"`

	// 如果是lock_type='RECORD' 行级锁 ,为锁住的堆号,如果是表锁为null
	LockRec string `json:"lock_rec"`

	// 事务锁住的主键值,若是表锁,则该值为null
	LockData string `json:"lock_data"`
}

func (InnodbLock) String

func (o InnodbLock) String() string

type InnodbLockWaits

type InnodbLockWaits struct {

	// 申请锁资源的事务ID
	RequestingTrxId string `json:"requesting_trx_id"`

	// 申请的锁的ID
	RequestedLockId string `json:"requested_lock_id"`

	// 阻塞的事务ID
	BlockingTrxId string `json:"blocking_trx_id"`

	// 阻塞的锁的ID
	BlockingLockId string `json:"blocking_lock_id"`
}

func (InnodbLockWaits) String

func (o InnodbLockWaits) String() string

type InnodbTrx

type InnodbTrx struct {

	// 事务ID
	TrxId string `json:"trx_id"`

	// 事务状态
	TrxState string `json:"trx_state"`

	// 事务开始时间
	TrxStarted string `json:"trx_started"`

	// 事务等待开始时间
	TrxWaitStarted string `json:"trx_wait_started"`

	// 会话ID,同ListProcesses接口返回的id。
	TrxMysqlThreadId string `json:"trx_mysql_thread_id"`

	// 事务运行的SQL语句
	TrxQuery string `json:"trx_query"`

	// 加行锁的表数量
	TrxTablesLocked string `json:"trx_tables_locked"`

	// 锁定的行数量(近似值)
	TrxRowsLocked string `json:"trx_rows_locked"`

	// 事务插入或者修改的行数
	TrxRowsModified string `json:"trx_rows_modified"`

	// 隔离级别
	TrxIsolationLevel string `json:"trx_isolation_level"`

	// 等待锁信息
	InnodbWaitLocks []InnodbLock `json:"innodb_wait_locks"`

	// 持有锁信息
	InnodbHoldLocks []InnodbLock `json:"innodb_hold_locks"`
}

func (InnodbTrx) String

func (o InnodbTrx) String() string

type InstanceSpaceInfo

type InstanceSpaceInfo struct {

	// 实例总空间,以字节为单位。GaussDB(for MySQL)不会返回总空间
	TotalSize *int64 `json:"total_size,omitempty"`

	// 已使用空间,以字节为单位
	UsedSize *int64 `json:"used_size,omitempty"`

	// 数据空间,以字节为单位
	DataSize *int64 `json:"data_size,omitempty"`

	// 日志空间,以字节为单位
	LogSize *int64 `json:"log_size,omitempty"`

	// 近七日的数据平均日增长量,以字节为单位
	AvgDailyGrowth *int64 `json:"avg_daily_growth,omitempty"`

	// 最后一次分析的结果时间,毫秒单位时间戳
	LastResultTime *int64 `json:"last_result_time,omitempty"`
}

InstanceSpaceInfo 实例空间信息。数据来源于文件系统。已用空间包含数据空间、日志空间和其他空间,其他空间包括引擎产生的临时文件等。

func (InstanceSpaceInfo) String

func (o InstanceSpaceInfo) String() string

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

ListApiVersionsRequest Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {

	// API版本详细信息列表。
	Versions       *[]ApiVersion `json:"versions,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListApiVersionsResponse Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListCloudDbaInstancesRequest added in v0.1.116

type ListCloudDbaInstancesRequest struct {

	// 数据库类型。
	DatastoreType string `json:"datastore_type"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页记录数,默认为20,最大取值200。
	Limit *int32 `json:"limit,omitempty"`

	// 请求语言类型。
	XLanguage *ListCloudDbaInstancesRequestXLanguage `json:"X-Language,omitempty"`
}

ListCloudDbaInstancesRequest Request Object

func (ListCloudDbaInstancesRequest) String added in v0.1.116

type ListCloudDbaInstancesRequestXLanguage added in v0.1.116

type ListCloudDbaInstancesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListCloudDbaInstancesRequestXLanguage) MarshalJSON added in v0.1.116

func (c ListCloudDbaInstancesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListCloudDbaInstancesRequestXLanguage) UnmarshalJSON added in v0.1.116

func (c *ListCloudDbaInstancesRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListCloudDbaInstancesRequestXLanguage) Value added in v0.1.116

type ListCloudDbaInstancesRequestXLanguageEnum added in v0.1.116

type ListCloudDbaInstancesRequestXLanguageEnum struct {
	EN_US ListCloudDbaInstancesRequestXLanguage
	ZH_CN ListCloudDbaInstancesRequestXLanguage
}

func GetListCloudDbaInstancesRequestXLanguageEnum added in v0.1.116

func GetListCloudDbaInstancesRequestXLanguageEnum() ListCloudDbaInstancesRequestXLanguageEnum

type ListCloudDbaInstancesResponse added in v0.1.116

type ListCloudDbaInstancesResponse struct {

	// 实例列表。
	InstanceList *[]DasInstanceInfo `json:"instance_list,omitempty"`

	// 总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListCloudDbaInstancesResponse Response Object

func (ListCloudDbaInstancesResponse) String added in v0.1.116

type ListDbUsersRequest

type ListDbUsersRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
	Limit *int32 `json:"limit,omitempty"`

	// 数据库用户ID
	DbUserId *string `json:"db_user_id,omitempty"`

	// 数据库用户名称
	DbUsername *string `json:"db_username,omitempty"`

	// 语言
	XLanguage *ListDbUsersRequestXLanguage `json:"X-Language,omitempty"`
}

ListDbUsersRequest Request Object

func (ListDbUsersRequest) String

func (o ListDbUsersRequest) String() string

type ListDbUsersRequestXLanguage

type ListDbUsersRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListDbUsersRequestXLanguage) MarshalJSON

func (c ListDbUsersRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListDbUsersRequestXLanguage) UnmarshalJSON

func (c *ListDbUsersRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListDbUsersRequestXLanguage) Value added in v0.0.90

type ListDbUsersRequestXLanguageEnum

type ListDbUsersRequestXLanguageEnum struct {
	ZH_CN ListDbUsersRequestXLanguage
	EN_US ListDbUsersRequestXLanguage
}

func GetListDbUsersRequestXLanguageEnum

func GetListDbUsersRequestXLanguageEnum() ListDbUsersRequestXLanguageEnum

type ListDbUsersResponse

type ListDbUsersResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 数据库用户列表
	DbUsers        *[]DbUser `json:"db_users,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListDbUsersResponse Response Object

func (ListDbUsersResponse) String

func (o ListDbUsersResponse) String() string

type ListInnodbLocksRequest

type ListInnodbLocksRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 语言
	XLanguage *ListInnodbLocksRequestXLanguage `json:"X-Language,omitempty"`
}

ListInnodbLocksRequest Request Object

func (ListInnodbLocksRequest) String

func (o ListInnodbLocksRequest) String() string

type ListInnodbLocksRequestXLanguage

type ListInnodbLocksRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListInnodbLocksRequestXLanguage) MarshalJSON

func (c ListInnodbLocksRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListInnodbLocksRequestXLanguage) UnmarshalJSON

func (c *ListInnodbLocksRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListInnodbLocksRequestXLanguage) Value added in v0.0.90

type ListInnodbLocksRequestXLanguageEnum

type ListInnodbLocksRequestXLanguageEnum struct {
	ZH_CN ListInnodbLocksRequestXLanguage
	EN_US ListInnodbLocksRequestXLanguage
}

func GetListInnodbLocksRequestXLanguageEnum

func GetListInnodbLocksRequestXLanguageEnum() ListInnodbLocksRequestXLanguageEnum

type ListInnodbLocksResponse

type ListInnodbLocksResponse struct {

	// 当前持有或等待锁的事务信息
	InnodbTrx *[]InnodbTrx `json:"innodb_trx,omitempty"`

	// 每个事务请求的锁以及阻塞该请求的锁的对应关系
	InnodbLockWaits *[]InnodbLockWaits `json:"innodb_lock_waits,omitempty"`

	// 当前持有或等待锁的事务数量
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListInnodbLocksResponse Response Object

func (ListInnodbLocksResponse) String

func (o ListInnodbLocksResponse) String() string

type ListMetadataLocksRequest

type ListMetadataLocksRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 会话ID
	ThreadId *string `json:"thread_id,omitempty"`

	// 数据库名称
	Database *string `json:"database,omitempty"`

	// 表名
	Table *string `json:"table,omitempty"`

	// 语言
	XLanguage *ListMetadataLocksRequestXLanguage `json:"X-Language,omitempty"`
}

ListMetadataLocksRequest Request Object

func (ListMetadataLocksRequest) String

func (o ListMetadataLocksRequest) String() string

type ListMetadataLocksRequestXLanguage

type ListMetadataLocksRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListMetadataLocksRequestXLanguage) MarshalJSON

func (c ListMetadataLocksRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListMetadataLocksRequestXLanguage) UnmarshalJSON

func (c *ListMetadataLocksRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListMetadataLocksRequestXLanguage) Value added in v0.0.90

type ListMetadataLocksRequestXLanguageEnum

type ListMetadataLocksRequestXLanguageEnum struct {
	ZH_CN ListMetadataLocksRequestXLanguage
	EN_US ListMetadataLocksRequestXLanguage
}

func GetListMetadataLocksRequestXLanguageEnum

func GetListMetadataLocksRequestXLanguageEnum() ListMetadataLocksRequestXLanguageEnum

type ListMetadataLocksResponse

type ListMetadataLocksResponse struct {

	// 元数据锁列表
	MetadataLocks *[]MetadataLock `json:"metadata_locks,omitempty"`

	// 元数据锁数量
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListMetadataLocksResponse Response Object

func (ListMetadataLocksResponse) String

func (o ListMetadataLocksResponse) String() string

type ListProcessesRequest

type ListProcessesRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 用户
	User *string `json:"user,omitempty"`

	// 数据库
	Database *string `json:"database,omitempty"`

	// 节点ID
	NodeId *string `json:"node_id,omitempty"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 每页记录数,默认为20,最大取值100。
	Limit *int32 `json:"limit,omitempty"`

	// 语言
	XLanguage *ListProcessesRequestXLanguage `json:"X-Language,omitempty"`
}

ListProcessesRequest Request Object

func (ListProcessesRequest) String

func (o ListProcessesRequest) String() string

type ListProcessesRequestXLanguage

type ListProcessesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListProcessesRequestXLanguage) MarshalJSON

func (c ListProcessesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListProcessesRequestXLanguage) UnmarshalJSON

func (c *ListProcessesRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListProcessesRequestXLanguage) Value added in v0.0.90

type ListProcessesRequestXLanguageEnum

type ListProcessesRequestXLanguageEnum struct {
	ZH_CN ListProcessesRequestXLanguage
	EN_US ListProcessesRequestXLanguage
}

func GetListProcessesRequestXLanguageEnum

func GetListProcessesRequestXLanguageEnum() ListProcessesRequestXLanguageEnum

type ListProcessesResponse

type ListProcessesResponse struct {

	// 会话列表
	Processes *[]Process `json:"processes,omitempty"`

	// 总记录数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListProcessesResponse Response Object

func (ListProcessesResponse) String

func (o ListProcessesResponse) String() string

type ListSpaceAnalysisRequest

type ListSpaceAnalysisRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *string `json:"X-Language,omitempty"`

	// 对象类型
	ObjectType ListSpaceAnalysisRequestObjectType `json:"object_type"`

	// 数据库ID
	DatabaseId *string `json:"database_id,omitempty"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。offset必须是limit的整数倍。
	Offset *string `json:"offset,omitempty"`

	// 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
	Limit *string `json:"limit,omitempty"`

	// 是否返回实例级别数据,取值:true或者false
	ShowInstanceInfo *string `json:"show_instance_info,omitempty"`

	// 引擎类型
	DatastoreType ListSpaceAnalysisRequestDatastoreType `json:"datastore_type"`
}

ListSpaceAnalysisRequest Request Object

func (ListSpaceAnalysisRequest) String

func (o ListSpaceAnalysisRequest) String() string

type ListSpaceAnalysisRequestDatastoreType

type ListSpaceAnalysisRequestDatastoreType struct {
	// contains filtered or unexported fields
}

func (ListSpaceAnalysisRequestDatastoreType) MarshalJSON

func (c ListSpaceAnalysisRequestDatastoreType) MarshalJSON() ([]byte, error)

func (*ListSpaceAnalysisRequestDatastoreType) UnmarshalJSON

func (c *ListSpaceAnalysisRequestDatastoreType) UnmarshalJSON(b []byte) error

func (ListSpaceAnalysisRequestDatastoreType) Value added in v0.0.90

type ListSpaceAnalysisRequestDatastoreTypeEnum

type ListSpaceAnalysisRequestDatastoreTypeEnum struct {
	MY_SQL              ListSpaceAnalysisRequestDatastoreType
	GAUSS_DB_FOR_MY_SQL ListSpaceAnalysisRequestDatastoreType
	SQL_SERVER          ListSpaceAnalysisRequestDatastoreType
}

func GetListSpaceAnalysisRequestDatastoreTypeEnum

func GetListSpaceAnalysisRequestDatastoreTypeEnum() ListSpaceAnalysisRequestDatastoreTypeEnum

type ListSpaceAnalysisRequestObjectType

type ListSpaceAnalysisRequestObjectType struct {
	// contains filtered or unexported fields
}

func (ListSpaceAnalysisRequestObjectType) MarshalJSON

func (c ListSpaceAnalysisRequestObjectType) MarshalJSON() ([]byte, error)

func (*ListSpaceAnalysisRequestObjectType) UnmarshalJSON

func (c *ListSpaceAnalysisRequestObjectType) UnmarshalJSON(b []byte) error

func (ListSpaceAnalysisRequestObjectType) Value added in v0.0.90

type ListSpaceAnalysisRequestObjectTypeEnum

type ListSpaceAnalysisRequestObjectTypeEnum struct {
	DATABASE ListSpaceAnalysisRequestObjectType
	TABLE    ListSpaceAnalysisRequestObjectType
}

func GetListSpaceAnalysisRequestObjectTypeEnum

func GetListSpaceAnalysisRequestObjectTypeEnum() ListSpaceAnalysisRequestObjectTypeEnum

type ListSpaceAnalysisResponse

type ListSpaceAnalysisResponse struct {

	// 记录总数
	Total *int64 `json:"total,omitempty"`

	// 数据库对象列表
	DbObjects *[]DbObjectSpaceInfo `json:"db_objects,omitempty"`

	InstanceInfo   *InstanceSpaceInfo `json:"instance_info,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListSpaceAnalysisResponse Response Object

func (ListSpaceAnalysisResponse) String

func (o ListSpaceAnalysisResponse) String() string

type ListSqlLimitRulesRequest added in v0.1.12

type ListSqlLimitRulesRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
	Limit *int32 `json:"limit,omitempty"`

	// 数据库类型
	DatastoreType ListSqlLimitRulesRequestDatastoreType `json:"datastore_type"`

	// 数据库名(PostgreSQL必填)
	DatabaseName *string `json:"database_name,omitempty"`

	// 语言
	XLanguage *ListSqlLimitRulesRequestXLanguage `json:"X-Language,omitempty"`
}

ListSqlLimitRulesRequest Request Object

func (ListSqlLimitRulesRequest) String added in v0.1.12

func (o ListSqlLimitRulesRequest) String() string

type ListSqlLimitRulesRequestDatastoreType added in v0.1.12

type ListSqlLimitRulesRequestDatastoreType struct {
	// contains filtered or unexported fields
}

func (ListSqlLimitRulesRequestDatastoreType) MarshalJSON added in v0.1.12

func (c ListSqlLimitRulesRequestDatastoreType) MarshalJSON() ([]byte, error)

func (*ListSqlLimitRulesRequestDatastoreType) UnmarshalJSON added in v0.1.12

func (c *ListSqlLimitRulesRequestDatastoreType) UnmarshalJSON(b []byte) error

func (ListSqlLimitRulesRequestDatastoreType) Value added in v0.1.12

type ListSqlLimitRulesRequestDatastoreTypeEnum added in v0.1.12

type ListSqlLimitRulesRequestDatastoreTypeEnum struct {
	MY_SQL      ListSqlLimitRulesRequestDatastoreType
	POSTGRE_SQL ListSqlLimitRulesRequestDatastoreType
}

func GetListSqlLimitRulesRequestDatastoreTypeEnum added in v0.1.12

func GetListSqlLimitRulesRequestDatastoreTypeEnum() ListSqlLimitRulesRequestDatastoreTypeEnum

type ListSqlLimitRulesRequestXLanguage added in v0.1.12

type ListSqlLimitRulesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListSqlLimitRulesRequestXLanguage) MarshalJSON added in v0.1.12

func (c ListSqlLimitRulesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListSqlLimitRulesRequestXLanguage) UnmarshalJSON added in v0.1.12

func (c *ListSqlLimitRulesRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListSqlLimitRulesRequestXLanguage) Value added in v0.1.12

type ListSqlLimitRulesRequestXLanguageEnum added in v0.1.12

type ListSqlLimitRulesRequestXLanguageEnum struct {
	ZH_CN ListSqlLimitRulesRequestXLanguage
	EN_US ListSqlLimitRulesRequestXLanguage
}

func GetListSqlLimitRulesRequestXLanguageEnum added in v0.1.12

func GetListSqlLimitRulesRequestXLanguageEnum() ListSqlLimitRulesRequestXLanguageEnum

type ListSqlLimitRulesResponse added in v0.1.12

type ListSqlLimitRulesResponse struct {

	// SQL限流规则列表
	SqlLimitRules *[]SqlLimitRule `json:"sql_limit_rules,omitempty"`

	// SQL限流规则总数
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListSqlLimitRulesResponse Response Object

func (ListSqlLimitRulesResponse) String added in v0.1.12

func (o ListSqlLimitRulesResponse) String() string

type ListTransactionsRequest added in v0.1.105

type ListTransactionsRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库类型。仅支持MySQL
	DatastoreType ListTransactionsRequestDatastoreType `json:"datastore_type"`

	// 语言
	XLanguage *ListTransactionsRequestXLanguage `json:"X-Language,omitempty"`

	// 采集开始时间(Unix timestamp),单位:毫秒。
	StartAt int64 `json:"start_at"`

	// 采集结束时间(Unix timestamp),单位:毫秒。
	EndAt int64 `json:"end_at"`

	// 页数
	PageNum *int32 `json:"page_num,omitempty"`

	// 页大小
	PageSize *int32 `json:"page_size,omitempty"`

	// 排序字段
	Order *ListTransactionsRequestOrder `json:"order,omitempty"`

	// 升序|降序
	OrderBy *ListTransactionsRequestOrderBy `json:"order_by,omitempty"`

	// 持续时间下限
	LastSecMin *int64 `json:"last_sec_min,omitempty"`

	// 持续时间上限
	LastSecMax *int64 `json:"last_sec_max,omitempty"`
}

ListTransactionsRequest Request Object

func (ListTransactionsRequest) String added in v0.1.105

func (o ListTransactionsRequest) String() string

type ListTransactionsRequestDatastoreType added in v0.1.105

type ListTransactionsRequestDatastoreType struct {
	// contains filtered or unexported fields
}

func (ListTransactionsRequestDatastoreType) MarshalJSON added in v0.1.105

func (c ListTransactionsRequestDatastoreType) MarshalJSON() ([]byte, error)

func (*ListTransactionsRequestDatastoreType) UnmarshalJSON added in v0.1.105

func (c *ListTransactionsRequestDatastoreType) UnmarshalJSON(b []byte) error

func (ListTransactionsRequestDatastoreType) Value added in v0.1.105

type ListTransactionsRequestDatastoreTypeEnum added in v0.1.105

type ListTransactionsRequestDatastoreTypeEnum struct {
	MY_SQL ListTransactionsRequestDatastoreType
}

func GetListTransactionsRequestDatastoreTypeEnum added in v0.1.105

func GetListTransactionsRequestDatastoreTypeEnum() ListTransactionsRequestDatastoreTypeEnum

type ListTransactionsRequestOrder added in v0.1.105

type ListTransactionsRequestOrder struct {
	// contains filtered or unexported fields
}

func (ListTransactionsRequestOrder) MarshalJSON added in v0.1.105

func (c ListTransactionsRequestOrder) MarshalJSON() ([]byte, error)

func (*ListTransactionsRequestOrder) UnmarshalJSON added in v0.1.105

func (c *ListTransactionsRequestOrder) UnmarshalJSON(b []byte) error

func (ListTransactionsRequestOrder) Value added in v0.1.105

type ListTransactionsRequestOrderBy added in v0.1.105

type ListTransactionsRequestOrderBy struct {
	// contains filtered or unexported fields
}

func (ListTransactionsRequestOrderBy) MarshalJSON added in v0.1.105

func (c ListTransactionsRequestOrderBy) MarshalJSON() ([]byte, error)

func (*ListTransactionsRequestOrderBy) UnmarshalJSON added in v0.1.105

func (c *ListTransactionsRequestOrderBy) UnmarshalJSON(b []byte) error

func (ListTransactionsRequestOrderBy) Value added in v0.1.105

type ListTransactionsRequestOrderByEnum added in v0.1.105

type ListTransactionsRequestOrderByEnum struct {
	ASC  ListTransactionsRequestOrderBy
	DESC ListTransactionsRequestOrderBy
}

func GetListTransactionsRequestOrderByEnum added in v0.1.105

func GetListTransactionsRequestOrderByEnum() ListTransactionsRequestOrderByEnum

type ListTransactionsRequestOrderEnum added in v0.1.105

type ListTransactionsRequestOrderEnum struct {
	OCCURRENCE_TIME        ListTransactionsRequestOrder
	LAST_SEC               ListTransactionsRequestOrder
	WAIT_LOCK_STRUCT_COUNT ListTransactionsRequestOrder
	HOLD_LOCK_STRUCT_COUNT ListTransactionsRequestOrder
	COLLECT_TIME           ListTransactionsRequestOrder
}

func GetListTransactionsRequestOrderEnum added in v0.1.105

func GetListTransactionsRequestOrderEnum() ListTransactionsRequestOrderEnum

type ListTransactionsRequestXLanguage added in v0.1.105

type ListTransactionsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListTransactionsRequestXLanguage) MarshalJSON added in v0.1.105

func (c ListTransactionsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListTransactionsRequestXLanguage) UnmarshalJSON added in v0.1.105

func (c *ListTransactionsRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListTransactionsRequestXLanguage) Value added in v0.1.105

type ListTransactionsRequestXLanguageEnum added in v0.1.105

type ListTransactionsRequestXLanguageEnum struct {
	ZH_CN ListTransactionsRequestXLanguage
	EN_US ListTransactionsRequestXLanguage
}

func GetListTransactionsRequestXLanguageEnum added in v0.1.105

func GetListTransactionsRequestXLanguageEnum() ListTransactionsRequestXLanguageEnum

type ListTransactionsResponse added in v0.1.105

type ListTransactionsResponse struct {

	// 历史事务总数
	Total *int32 `json:"total,omitempty"`

	// 历史事务信息列表
	TransactionInfoList *[]GetTransactionListRespTransactionInfoList `json:"transaction_info_list,omitempty"`
	HttpStatusCode      int                                          `json:"-"`
}

ListTransactionsResponse Response Object

func (ListTransactionsResponse) String added in v0.1.105

func (o ListTransactionsResponse) String() string

type MetadataLock

type MetadataLock struct {

	// 会话ID
	ThreadId string `json:"thread_id"`

	// 锁状态,取值为PENDING和GRANTED,分别表示等待锁和持有锁。
	LockStatus string `json:"lock_status"`

	// 加锁模式,取值为MDL_SHARED 、MDL_EXCLUSIVE 、MDL_SHARED_READ、MDL_SHARED_WRITE等。
	LockMode string `json:"lock_mode"`

	// 锁类型,取值为Table metadata lock、Schema metadata lock、Tablespace lock、Global read lock,分别表示表元数据锁、库元数据锁、表空间锁、全局读锁。
	LockType string `json:"lock_type"`

	// 锁范围,取值为MDL_STATEMENT、MDL_TRANSACTION、MDL_EXPLICIT,分别表示语句级别、事务级别、global级别
	LockDuration string `json:"lock_duration"`

	// 锁所在的数据库,对于部分Global read lock级别的元数据锁,该值为空。
	TableSchema string `json:"table_schema"`

	// 表名
	TableName string `json:"table_name"`

	// 用户
	User string `json:"user"`

	// 时间
	Time string `json:"time"`

	// 主机
	Host string `json:"host"`

	// 会话所在的数据库
	Database string `json:"database"`

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

	// 状态
	State string `json:"state"`

	// SQL语句
	Sql string `json:"sql"`

	// 事务执行时间
	TrxExecTime string `json:"trx_exec_time"`

	// 阻塞会话列表
	BlockProcess []Process `json:"block_process"`

	// 等待会话列表
	WaitProcess []Process `json:"wait_process"`
}

MetadataLock 元数据锁

func (MetadataLock) String

func (o MetadataLock) String() string

type ParseSqlLimitRulesReq added in v0.1.102

type ParseSqlLimitRulesReq struct {

	// 数据库类型,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。
	DatastoreType ParseSqlLimitRulesReqDatastoreType `json:"datastore_type"`

	// 原始SQL语句
	OriginalSql string `json:"original_sql"`

	// 是否校验SQL语句
	UseTemplate bool `json:"use_template"`

	// 是否保留操作符
	KeepOperators bool `json:"keep_operators"`
}

ParseSqlLimitRulesReq {\"originalSql\":\"select * from das_conn_info\",\"useTemplate\":true,\"keepOperators\":true}

func (ParseSqlLimitRulesReq) String added in v0.1.102

func (o ParseSqlLimitRulesReq) String() string

type ParseSqlLimitRulesReqDatastoreType added in v0.1.102

type ParseSqlLimitRulesReqDatastoreType struct {
	// contains filtered or unexported fields
}

func (ParseSqlLimitRulesReqDatastoreType) MarshalJSON added in v0.1.102

func (c ParseSqlLimitRulesReqDatastoreType) MarshalJSON() ([]byte, error)

func (*ParseSqlLimitRulesReqDatastoreType) UnmarshalJSON added in v0.1.102

func (c *ParseSqlLimitRulesReqDatastoreType) UnmarshalJSON(b []byte) error

func (ParseSqlLimitRulesReqDatastoreType) Value added in v0.1.102

type ParseSqlLimitRulesReqDatastoreTypeEnum added in v0.1.102

type ParseSqlLimitRulesReqDatastoreTypeEnum struct {
	MY_SQL              ParseSqlLimitRulesReqDatastoreType
	MARIA_DB            ParseSqlLimitRulesReqDatastoreType
	GAUSS_DB_FOR_MY_SQL ParseSqlLimitRulesReqDatastoreType
}

func GetParseSqlLimitRulesReqDatastoreTypeEnum added in v0.1.102

func GetParseSqlLimitRulesReqDatastoreTypeEnum() ParseSqlLimitRulesReqDatastoreTypeEnum

type ParseSqlLimitRulesRequest added in v0.1.102

type ParseSqlLimitRulesRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *ParseSqlLimitRulesRequestXLanguage `json:"X-Language,omitempty"`

	Body *ParseSqlLimitRulesReq `json:"body,omitempty"`
}

ParseSqlLimitRulesRequest Request Object

func (ParseSqlLimitRulesRequest) String added in v0.1.102

func (o ParseSqlLimitRulesRequest) String() string

type ParseSqlLimitRulesRequestXLanguage added in v0.1.102

type ParseSqlLimitRulesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ParseSqlLimitRulesRequestXLanguage) MarshalJSON added in v0.1.102

func (c ParseSqlLimitRulesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ParseSqlLimitRulesRequestXLanguage) UnmarshalJSON added in v0.1.102

func (c *ParseSqlLimitRulesRequestXLanguage) UnmarshalJSON(b []byte) error

func (ParseSqlLimitRulesRequestXLanguage) Value added in v0.1.102

type ParseSqlLimitRulesRequestXLanguageEnum added in v0.1.102

type ParseSqlLimitRulesRequestXLanguageEnum struct {
	ZH_CN ParseSqlLimitRulesRequestXLanguage
	EN_US ParseSqlLimitRulesRequestXLanguage
}

func GetParseSqlLimitRulesRequestXLanguageEnum added in v0.1.102

func GetParseSqlLimitRulesRequestXLanguageEnum() ParseSqlLimitRulesRequestXLanguageEnum

type ParseSqlLimitRulesResponse added in v0.1.102

type ParseSqlLimitRulesResponse struct {

	// SQL限流关键字
	Rule           *string `json:"rule,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ParseSqlLimitRulesResponse Response Object

func (ParseSqlLimitRulesResponse) String added in v0.1.102

type Process

type Process struct {

	// 会话ID
	Id string `json:"id"`

	// 用户
	User string `json:"user"`

	// 主机
	Host string `json:"host"`

	// 数据库
	Database string `json:"database"`

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

	// 会话持续时间
	Time string `json:"time"`

	// 状态
	State string `json:"state"`

	// SQL语句
	Sql string `json:"sql"`

	// 事务持续时间
	TrxExecutedTime string `json:"trx_executed_time"`
}

func (Process) String

func (o Process) String() string

type QuerySqlPlanBody added in v0.0.81

type QuerySqlPlanBody struct {

	// 数据库用户ID
	DbUserId *string `json:"db_user_id,omitempty"`

	// 数据库名称
	Database *string `json:"database,omitempty"`

	// SQL语句
	Sql *string `json:"sql,omitempty"`
}

func (QuerySqlPlanBody) String added in v0.0.81

func (o QuerySqlPlanBody) String() string

type RegisterDbUserRequest

type RegisterDbUserRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *RegisterDbUserRequestXLanguage `json:"X-Language,omitempty"`

	Body *RegisterDbUserRequestBody `json:"body,omitempty"`
}

RegisterDbUserRequest Request Object

func (RegisterDbUserRequest) String

func (o RegisterDbUserRequest) String() string

type RegisterDbUserRequestBody

type RegisterDbUserRequestBody struct {

	// 数据库用户名称
	DbUsername string `json:"db_username"`

	// 数据库用户密码
	DbUserPassword string `json:"db_user_password"`

	// 数据库类型,取值为MySQL
	DatastoreType string `json:"datastore_type"`
}

RegisterDbUserRequestBody 注册数据库用户请求

func (RegisterDbUserRequestBody) String

func (o RegisterDbUserRequestBody) String() string

type RegisterDbUserRequestXLanguage

type RegisterDbUserRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (RegisterDbUserRequestXLanguage) MarshalJSON

func (c RegisterDbUserRequestXLanguage) MarshalJSON() ([]byte, error)

func (*RegisterDbUserRequestXLanguage) UnmarshalJSON

func (c *RegisterDbUserRequestXLanguage) UnmarshalJSON(b []byte) error

func (RegisterDbUserRequestXLanguage) Value added in v0.0.90

type RegisterDbUserRequestXLanguageEnum

type RegisterDbUserRequestXLanguageEnum struct {
	ZH_CN RegisterDbUserRequestXLanguage
	EN_US RegisterDbUserRequestXLanguage
}

func GetRegisterDbUserRequestXLanguageEnum

func GetRegisterDbUserRequestXLanguageEnum() RegisterDbUserRequestXLanguageEnum

type RegisterDbUserResponse

type RegisterDbUserResponse struct {

	// 数据库用户ID
	DbUserId       *string `json:"db_user_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RegisterDbUserResponse Response Object

func (RegisterDbUserResponse) String

func (o RegisterDbUserResponse) String() string

type ShareConnUserInfo added in v0.1.40

type ShareConnUserInfo struct {

	// 用户ID
	UserId string `json:"user_id"`

	// 用户名
	UserName string `json:"user_name"`
}

func (ShareConnUserInfo) String added in v0.1.40

func (o ShareConnUserInfo) String() string

type ShowApiVersionRequest

type ShowApiVersionRequest struct {

	// API版本
	Version string `json:"version"`
}

ShowApiVersionRequest Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionResponse

type ShowApiVersionResponse struct {
	Version        *ApiVersion `json:"version,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowApiVersionResponse Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type ShowDbUserRequest

type ShowDbUserRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 语言
	XLanguage *ShowDbUserRequestXLanguage `json:"X-Language,omitempty"`
}

ShowDbUserRequest Request Object

func (ShowDbUserRequest) String

func (o ShowDbUserRequest) String() string

type ShowDbUserRequestXLanguage

type ShowDbUserRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowDbUserRequestXLanguage) MarshalJSON

func (c ShowDbUserRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ShowDbUserRequestXLanguage) UnmarshalJSON

func (c *ShowDbUserRequestXLanguage) UnmarshalJSON(b []byte) error

func (ShowDbUserRequestXLanguage) Value added in v0.0.90

type ShowDbUserRequestXLanguageEnum

type ShowDbUserRequestXLanguageEnum struct {
	ZH_CN ShowDbUserRequestXLanguage
	EN_US ShowDbUserRequestXLanguage
}

func GetShowDbUserRequestXLanguageEnum

func GetShowDbUserRequestXLanguageEnum() ShowDbUserRequestXLanguageEnum

type ShowDbUserResponse

type ShowDbUserResponse struct {
	DbUser         *DbUser `json:"db_user,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowDbUserResponse Response Object

func (ShowDbUserResponse) String

func (o ShowDbUserResponse) String() string

type ShowQuotasRequest

type ShowQuotasRequest struct {

	// 语言
	XLanguage *ShowQuotasRequestXLanguage `json:"X-Language,omitempty"`
}

ShowQuotasRequest Request Object

func (ShowQuotasRequest) String

func (o ShowQuotasRequest) String() string

type ShowQuotasRequestXLanguage

type ShowQuotasRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowQuotasRequestXLanguage) MarshalJSON

func (c ShowQuotasRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ShowQuotasRequestXLanguage) UnmarshalJSON

func (c *ShowQuotasRequestXLanguage) UnmarshalJSON(b []byte) error

func (ShowQuotasRequestXLanguage) Value added in v0.0.90

type ShowQuotasRequestXLanguageEnum

type ShowQuotasRequestXLanguageEnum struct {
	ZH_CN ShowQuotasRequestXLanguage
	EN_US ShowQuotasRequestXLanguage
}

func GetShowQuotasRequestXLanguageEnum

func GetShowQuotasRequestXLanguageEnum() ShowQuotasRequestXLanguageEnum

type ShowQuotasResponse

type ShowQuotasResponse struct {

	// 配额列表对象。
	Quotas         *interface{} `json:"quotas,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowQuotasResponse Response Object

func (ShowQuotasResponse) String

func (o ShowQuotasResponse) String() string

type ShowSqlExecutionPlanRequest

type ShowSqlExecutionPlanRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 数据库名称
	Database string `json:"database"`

	// SQL语句
	Sql string `json:"sql"`

	// 语言
	XLanguage *ShowSqlExecutionPlanRequestXLanguage `json:"X-Language,omitempty"`
}

ShowSqlExecutionPlanRequest Request Object

func (ShowSqlExecutionPlanRequest) String

type ShowSqlExecutionPlanRequestXLanguage

type ShowSqlExecutionPlanRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowSqlExecutionPlanRequestXLanguage) MarshalJSON

func (c ShowSqlExecutionPlanRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ShowSqlExecutionPlanRequestXLanguage) UnmarshalJSON

func (c *ShowSqlExecutionPlanRequestXLanguage) UnmarshalJSON(b []byte) error

func (ShowSqlExecutionPlanRequestXLanguage) Value added in v0.0.90

type ShowSqlExecutionPlanRequestXLanguageEnum

type ShowSqlExecutionPlanRequestXLanguageEnum struct {
	ZH_CN ShowSqlExecutionPlanRequestXLanguage
	EN_US ShowSqlExecutionPlanRequestXLanguage
}

func GetShowSqlExecutionPlanRequestXLanguageEnum

func GetShowSqlExecutionPlanRequestXLanguageEnum() ShowSqlExecutionPlanRequestXLanguageEnum

type ShowSqlExecutionPlanResponse

type ShowSqlExecutionPlanResponse struct {

	// SQL执行计划列表
	ExecutionPlans *[]ExecutionPlan `json:"execution_plans,omitempty"`

	// SQL执行失败时,显示执行错误信息
	ErrorMessage   *string `json:"error_message,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSqlExecutionPlanResponse Response Object

func (ShowSqlExecutionPlanResponse) String

type ShowSqlExplainRequest added in v0.0.81

type ShowSqlExplainRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *ShowSqlExplainRequestXLanguage `json:"X-Language,omitempty"`

	Body *QuerySqlPlanBody `json:"body,omitempty"`
}

ShowSqlExplainRequest Request Object

func (ShowSqlExplainRequest) String added in v0.0.81

func (o ShowSqlExplainRequest) String() string

type ShowSqlExplainRequestXLanguage added in v0.0.81

type ShowSqlExplainRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowSqlExplainRequestXLanguage) MarshalJSON added in v0.0.81

func (c ShowSqlExplainRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ShowSqlExplainRequestXLanguage) UnmarshalJSON added in v0.0.81

func (c *ShowSqlExplainRequestXLanguage) UnmarshalJSON(b []byte) error

func (ShowSqlExplainRequestXLanguage) Value added in v0.0.90

type ShowSqlExplainRequestXLanguageEnum added in v0.0.81

type ShowSqlExplainRequestXLanguageEnum struct {
	ZH_CN ShowSqlExplainRequestXLanguage
	EN_US ShowSqlExplainRequestXLanguage
}

func GetShowSqlExplainRequestXLanguageEnum added in v0.0.81

func GetShowSqlExplainRequestXLanguageEnum() ShowSqlExplainRequestXLanguageEnum

type ShowSqlExplainResponse added in v0.0.81

type ShowSqlExplainResponse struct {

	// SQL执行计划列表
	ExecutionPlans *[]ExecutionPlan `json:"execution_plans,omitempty"`

	// SQL执行失败时,显示执行错误信息
	ErrorMessage   *string `json:"error_message,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSqlExplainResponse Response Object

func (ShowSqlExplainResponse) String added in v0.0.81

func (o ShowSqlExplainResponse) String() string

type ShowSqlLimitJobInfoRequest added in v0.1.12

type ShowSqlLimitJobInfoRequest struct {
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *ShowSqlLimitJobInfoRequestXLanguage `json:"X-Language,omitempty"`

	// SQL限流任务ID
	JobId string `json:"job_id"`
}

ShowSqlLimitJobInfoRequest Request Object

func (ShowSqlLimitJobInfoRequest) String added in v0.1.12

type ShowSqlLimitJobInfoRequestXLanguage added in v0.1.12

type ShowSqlLimitJobInfoRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowSqlLimitJobInfoRequestXLanguage) MarshalJSON added in v0.1.12

func (c ShowSqlLimitJobInfoRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ShowSqlLimitJobInfoRequestXLanguage) UnmarshalJSON added in v0.1.12

func (c *ShowSqlLimitJobInfoRequestXLanguage) UnmarshalJSON(b []byte) error

func (ShowSqlLimitJobInfoRequestXLanguage) Value added in v0.1.12

type ShowSqlLimitJobInfoRequestXLanguageEnum added in v0.1.12

type ShowSqlLimitJobInfoRequestXLanguageEnum struct {
	ZH_CN ShowSqlLimitJobInfoRequestXLanguage
	EN_US ShowSqlLimitJobInfoRequestXLanguage
}

func GetShowSqlLimitJobInfoRequestXLanguageEnum added in v0.1.12

func GetShowSqlLimitJobInfoRequestXLanguageEnum() ShowSqlLimitJobInfoRequestXLanguageEnum

type ShowSqlLimitJobInfoResponse added in v0.1.12

type ShowSqlLimitJobInfoResponse struct {

	// 任务ID
	JobId *string `json:"job_id,omitempty"`

	// 任务状态
	JobStatus *ShowSqlLimitJobInfoResponseJobStatus `json:"job_status,omitempty"`

	// 失败原因
	FailReason     *string `json:"fail_reason,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSqlLimitJobInfoResponse Response Object

func (ShowSqlLimitJobInfoResponse) String added in v0.1.12

type ShowSqlLimitJobInfoResponseJobStatus added in v0.1.12

type ShowSqlLimitJobInfoResponseJobStatus struct {
	// contains filtered or unexported fields
}

func (ShowSqlLimitJobInfoResponseJobStatus) MarshalJSON added in v0.1.12

func (c ShowSqlLimitJobInfoResponseJobStatus) MarshalJSON() ([]byte, error)

func (*ShowSqlLimitJobInfoResponseJobStatus) UnmarshalJSON added in v0.1.12

func (c *ShowSqlLimitJobInfoResponseJobStatus) UnmarshalJSON(b []byte) error

func (ShowSqlLimitJobInfoResponseJobStatus) Value added in v0.1.12

type ShowSqlLimitJobInfoResponseJobStatusEnum added in v0.1.12

type ShowSqlLimitJobInfoResponseJobStatusEnum struct {
	RUNNING   ShowSqlLimitJobInfoResponseJobStatus
	COMPLETED ShowSqlLimitJobInfoResponseJobStatus
	FAILED    ShowSqlLimitJobInfoResponseJobStatus
}

func GetShowSqlLimitJobInfoResponseJobStatusEnum added in v0.1.12

func GetShowSqlLimitJobInfoResponseJobStatusEnum() ShowSqlLimitJobInfoResponseJobStatusEnum

type ShowSqlLimitSwitchStatusRequest added in v0.1.12

type ShowSqlLimitSwitchStatusRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *ShowSqlLimitSwitchStatusRequestXLanguage `json:"X-Language,omitempty"`

	// 数据库类型
	DatastoreType ShowSqlLimitSwitchStatusRequestDatastoreType `json:"datastore_type"`
}

ShowSqlLimitSwitchStatusRequest Request Object

func (ShowSqlLimitSwitchStatusRequest) String added in v0.1.12

type ShowSqlLimitSwitchStatusRequestDatastoreType added in v0.1.12

type ShowSqlLimitSwitchStatusRequestDatastoreType struct {
	// contains filtered or unexported fields
}

func (ShowSqlLimitSwitchStatusRequestDatastoreType) MarshalJSON added in v0.1.12

func (*ShowSqlLimitSwitchStatusRequestDatastoreType) UnmarshalJSON added in v0.1.12

func (ShowSqlLimitSwitchStatusRequestDatastoreType) Value added in v0.1.12

type ShowSqlLimitSwitchStatusRequestDatastoreTypeEnum added in v0.1.12

type ShowSqlLimitSwitchStatusRequestDatastoreTypeEnum struct {
	MY_SQL      ShowSqlLimitSwitchStatusRequestDatastoreType
	POSTGRE_SQL ShowSqlLimitSwitchStatusRequestDatastoreType
}

func GetShowSqlLimitSwitchStatusRequestDatastoreTypeEnum added in v0.1.12

func GetShowSqlLimitSwitchStatusRequestDatastoreTypeEnum() ShowSqlLimitSwitchStatusRequestDatastoreTypeEnum

type ShowSqlLimitSwitchStatusRequestXLanguage added in v0.1.12

type ShowSqlLimitSwitchStatusRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowSqlLimitSwitchStatusRequestXLanguage) MarshalJSON added in v0.1.12

func (*ShowSqlLimitSwitchStatusRequestXLanguage) UnmarshalJSON added in v0.1.12

func (c *ShowSqlLimitSwitchStatusRequestXLanguage) UnmarshalJSON(b []byte) error

func (ShowSqlLimitSwitchStatusRequestXLanguage) Value added in v0.1.12

type ShowSqlLimitSwitchStatusRequestXLanguageEnum added in v0.1.12

type ShowSqlLimitSwitchStatusRequestXLanguageEnum struct {
	ZH_CN ShowSqlLimitSwitchStatusRequestXLanguage
	EN_US ShowSqlLimitSwitchStatusRequestXLanguage
}

func GetShowSqlLimitSwitchStatusRequestXLanguageEnum added in v0.1.12

func GetShowSqlLimitSwitchStatusRequestXLanguageEnum() ShowSqlLimitSwitchStatusRequestXLanguageEnum

type ShowSqlLimitSwitchStatusResponse added in v0.1.12

type ShowSqlLimitSwitchStatusResponse struct {

	// 开关状态
	SwitchStatus   *ShowSqlLimitSwitchStatusResponseSwitchStatus `json:"switch_status,omitempty"`
	HttpStatusCode int                                           `json:"-"`
}

ShowSqlLimitSwitchStatusResponse Response Object

func (ShowSqlLimitSwitchStatusResponse) String added in v0.1.12

type ShowSqlLimitSwitchStatusResponseSwitchStatus added in v0.1.12

type ShowSqlLimitSwitchStatusResponseSwitchStatus struct {
	// contains filtered or unexported fields
}

func (ShowSqlLimitSwitchStatusResponseSwitchStatus) MarshalJSON added in v0.1.12

func (*ShowSqlLimitSwitchStatusResponseSwitchStatus) UnmarshalJSON added in v0.1.12

func (ShowSqlLimitSwitchStatusResponseSwitchStatus) Value added in v0.1.12

type ShowSqlLimitSwitchStatusResponseSwitchStatusEnum added in v0.1.12

type ShowSqlLimitSwitchStatusResponseSwitchStatusEnum struct {
	ON  ShowSqlLimitSwitchStatusResponseSwitchStatus
	OFF ShowSqlLimitSwitchStatusResponseSwitchStatus
}

func GetShowSqlLimitSwitchStatusResponseSwitchStatusEnum added in v0.1.12

func GetShowSqlLimitSwitchStatusResponseSwitchStatusEnum() ShowSqlLimitSwitchStatusResponseSwitchStatusEnum

type ShowSqlSwitchStatusRequest

type ShowSqlSwitchStatusRequest struct {

	// 实例ID。
	InstanceId string `json:"instance_id"`

	// 开关类型。取值DAS SQL Explorer和DAS Slow Query Log,分别表示DAS收集全量SQL开关和DAS收集慢SQL开关。
	Type string `json:"type"`

	// 数据库类型。当前全量SQL支持的数据库类型包括MySQL和GaussDB(for MySQL),慢SQL支持的类型:MySQL、GaussDB(for MySQL)、PostgreSQL。
	DatastoreType string `json:"datastore_type"`

	// 请求语言类型。
	XLanguage *ShowSqlSwitchStatusRequestXLanguage `json:"X-Language,omitempty"`
}

ShowSqlSwitchStatusRequest Request Object

func (ShowSqlSwitchStatusRequest) String

type ShowSqlSwitchStatusRequestXLanguage

type ShowSqlSwitchStatusRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowSqlSwitchStatusRequestXLanguage) MarshalJSON

func (c ShowSqlSwitchStatusRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ShowSqlSwitchStatusRequestXLanguage) UnmarshalJSON

func (c *ShowSqlSwitchStatusRequestXLanguage) UnmarshalJSON(b []byte) error

func (ShowSqlSwitchStatusRequestXLanguage) Value added in v0.0.90

type ShowSqlSwitchStatusRequestXLanguageEnum

type ShowSqlSwitchStatusRequestXLanguageEnum struct {
	EN_US ShowSqlSwitchStatusRequestXLanguage
	ZH_CN ShowSqlSwitchStatusRequestXLanguage
}

func GetShowSqlSwitchStatusRequestXLanguageEnum

func GetShowSqlSwitchStatusRequestXLanguageEnum() ShowSqlSwitchStatusRequestXLanguageEnum

type ShowSqlSwitchStatusResponse

type ShowSqlSwitchStatusResponse struct {

	// 开关状态。取值: Enabled:已开启, Disabled:已关闭, Switching:开关切换中
	Status *string `json:"status,omitempty"`

	// SQL数据保存天数。
	RetentionDays  *int64 `json:"retention_days,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowSqlSwitchStatusResponse Response Object

func (ShowSqlSwitchStatusResponse) String

type ShowTransactionSwitchStatusRequest added in v0.1.105

type ShowTransactionSwitchStatusRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库类型。仅支持MySQL
	DatastoreType ShowTransactionSwitchStatusRequestDatastoreType `json:"datastore_type"`

	// 语言
	XLanguage *ShowTransactionSwitchStatusRequestXLanguage `json:"X-Language,omitempty"`
}

ShowTransactionSwitchStatusRequest Request Object

func (ShowTransactionSwitchStatusRequest) String added in v0.1.105

type ShowTransactionSwitchStatusRequestDatastoreType added in v0.1.105

type ShowTransactionSwitchStatusRequestDatastoreType struct {
	// contains filtered or unexported fields
}

func (ShowTransactionSwitchStatusRequestDatastoreType) MarshalJSON added in v0.1.105

func (*ShowTransactionSwitchStatusRequestDatastoreType) UnmarshalJSON added in v0.1.105

func (ShowTransactionSwitchStatusRequestDatastoreType) Value added in v0.1.105

type ShowTransactionSwitchStatusRequestDatastoreTypeEnum added in v0.1.105

type ShowTransactionSwitchStatusRequestDatastoreTypeEnum struct {
	MY_SQL ShowTransactionSwitchStatusRequestDatastoreType
}

func GetShowTransactionSwitchStatusRequestDatastoreTypeEnum added in v0.1.105

func GetShowTransactionSwitchStatusRequestDatastoreTypeEnum() ShowTransactionSwitchStatusRequestDatastoreTypeEnum

type ShowTransactionSwitchStatusRequestXLanguage added in v0.1.105

type ShowTransactionSwitchStatusRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ShowTransactionSwitchStatusRequestXLanguage) MarshalJSON added in v0.1.105

func (*ShowTransactionSwitchStatusRequestXLanguage) UnmarshalJSON added in v0.1.105

func (ShowTransactionSwitchStatusRequestXLanguage) Value added in v0.1.105

type ShowTransactionSwitchStatusRequestXLanguageEnum added in v0.1.105

type ShowTransactionSwitchStatusRequestXLanguageEnum struct {
	ZH_CN ShowTransactionSwitchStatusRequestXLanguage
	EN_US ShowTransactionSwitchStatusRequestXLanguage
}

func GetShowTransactionSwitchStatusRequestXLanguageEnum added in v0.1.105

func GetShowTransactionSwitchStatusRequestXLanguageEnum() ShowTransactionSwitchStatusRequestXLanguageEnum

type ShowTransactionSwitchStatusResponse added in v0.1.105

type ShowTransactionSwitchStatusResponse struct {

	// 开关状态
	SwitchStatus   *ShowTransactionSwitchStatusResponseSwitchStatus `json:"switch_status,omitempty"`
	HttpStatusCode int                                              `json:"-"`
}

ShowTransactionSwitchStatusResponse Response Object

func (ShowTransactionSwitchStatusResponse) String added in v0.1.105

type ShowTransactionSwitchStatusResponseSwitchStatus added in v0.1.105

type ShowTransactionSwitchStatusResponseSwitchStatus struct {
	// contains filtered or unexported fields
}

func (ShowTransactionSwitchStatusResponseSwitchStatus) MarshalJSON added in v0.1.105

func (*ShowTransactionSwitchStatusResponseSwitchStatus) UnmarshalJSON added in v0.1.105

func (ShowTransactionSwitchStatusResponseSwitchStatus) Value added in v0.1.105

type ShowTransactionSwitchStatusResponseSwitchStatusEnum added in v0.1.105

type ShowTransactionSwitchStatusResponseSwitchStatusEnum struct {
	ENABLED  ShowTransactionSwitchStatusResponseSwitchStatus
	DISABLED ShowTransactionSwitchStatusResponseSwitchStatus
}

func GetShowTransactionSwitchStatusResponseSwitchStatusEnum added in v0.1.105

func GetShowTransactionSwitchStatusResponseSwitchStatusEnum() ShowTransactionSwitchStatusResponseSwitchStatusEnum

type ShowTuningRequest added in v0.1.57

type ShowTuningRequest struct {

	// 诊断messageId
	MessageId string `json:"message_id"`

	// 连接Id
	ConnectionId string `json:"connection_id"`

	// 语言
	XLanguage *string `json:"X-Language,omitempty"`
}

ShowTuningRequest Request Object

func (ShowTuningRequest) String added in v0.1.57

func (o ShowTuningRequest) String() string

type ShowTuningResponse added in v0.1.57

type ShowTuningResponse struct {
	TuneResult     *AdviceResult `json:"tune_result,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ShowTuningResponse Response Object

func (ShowTuningResponse) String added in v0.1.57

func (o ShowTuningResponse) String() string

type SlowLog

type SlowLog struct {

	// SQL语句。
	Sql string `json:"sql"`

	// 数据库名。
	Database string `json:"database"`

	// 客户端。
	Client string `json:"client"`

	// 用户。
	User string `json:"user"`

	// 执行开始时间(Unix timestamp),单位:毫秒。
	ExecuteAt int64 `json:"execute_at"`

	// 执行耗时(秒)。
	QueryTime float64 `json:"query_time"`

	// 锁等待耗时(秒)。
	LockTime float64 `json:"lock_time"`

	// 扫描行数。
	RowsExamined int64 `json:"rows_examined"`

	// 返回行数。
	RowsSent int64 `json:"rows_sent"`
}

func (SlowLog) String

func (o SlowLog) String() string

type SlowSqlStatistics added in v0.1.96

type SlowSqlStatistics struct {

	// 执行次数。
	ExecuteCount int64 `json:"execute_count"`

	// 平均执行耗时(s)。
	AvgExecuteTime float64 `json:"avg_execute_time"`

	// 最大执行耗时(s)。
	MaxExecuteTime float64 `json:"max_execute_time"`

	// 平均锁等待时间(s)。
	AvgLockWaitTime float64 `json:"avg_lock_wait_time"`

	// 最大锁等待时间(s)。
	MaxLockWaitTime float64 `json:"max_lock_wait_time"`

	// 平均返回文档数。
	AvgRowsSent float64 `json:"avg_rows_sent"`

	// 最大返回文档数。
	MaxRowsSent float64 `json:"max_rows_sent"`

	// 平均扫描文档数。
	AvgRowsExamined float64 `json:"avg_rows_examined"`

	// 最大扫描文档数。
	MaxRowsExamined float64 `json:"max_rows_examined"`

	// 平均扫描索引数。
	AvgKeyExamined float64 `json:"avg_key_examined"`

	// 最大扫描索引数。
	MaxKeyExamined float64 `json:"max_key_examined"`

	// 节点ID,按node_id统计时赋值。
	NodeId *string `json:"node_id,omitempty"`

	// 节点名称,按node_id统计时赋值。
	NodeName *string `json:"node_name,omitempty"`

	// 语句类型,按sql_type统计时赋值。
	SqlType *string `json:"sql_type,omitempty"`

	// 库名,按db_name、collection统计时赋值。
	DbName *string `json:"db_name,omitempty"`

	// 数据库表,按collection统计时赋值。
	Collection *string `json:"collection,omitempty"`

	// 用户名,按user统计时赋值。
	User *string `json:"user,omitempty"`

	// 客户端,按client统计时赋值。
	Client *string `json:"client,omitempty"`
}

func (SlowSqlStatistics) String added in v0.1.96

func (o SlowSqlStatistics) String() string

type SlowSqlTemplate added in v0.1.12

type SlowSqlTemplate struct {

	// SQL模板。
	SqlTemplate string `json:"sql_template"`

	// SQL样本。
	SqlSample *string `json:"sql_sample,omitempty"`

	// SQL样本执行用户。
	SqlSampleUser *string `json:"sql_sample_user,omitempty"`

	// 库名。
	DbNames []string `json:"db_names"`

	// 执行次数。
	ExecuteCount int64 `json:"execute_count"`

	// 平均执行耗时(ms)。
	AvgExecuteTime float64 `json:"avg_execute_time"`

	// 最大执行耗时(ms)。
	MaxExecuteTime float64 `json:"max_execute_time"`

	// 平均锁等待时间(ms)。
	AvgLockWaitTime float64 `json:"avg_lock_wait_time"`

	// 最大锁等待时间(ms)。
	MaxLockWaitTime float64 `json:"max_lock_wait_time"`

	// 平均扫描行数。
	AvgRowsExamined float64 `json:"avg_rows_examined"`

	// 最大扫描行数。
	MaxRowsExamined float64 `json:"max_rows_examined"`

	// 平均返回行数。
	AvgRowsSent float64 `json:"avg_rows_sent"`

	// 最大返回行数。
	MaxRowsSent float64 `json:"max_rows_sent"`
}

func (SlowSqlTemplate) String added in v0.1.12

func (o SlowSqlTemplate) String() string

type SlowSqlTrendItem added in v0.1.104

type SlowSqlTrendItem struct {

	// 毫秒时间戳。表示统计数据的时间范围为timestamp到timestamp + interval_millis。
	Timestamp int64 `json:"timestamp"`

	// 慢SQL数量。
	SlowLogCount int64 `json:"slow_log_count"`
}

func (SlowSqlTrendItem) String added in v0.1.104

func (o SlowSqlTrendItem) String() string

type SqlLimitRule added in v0.1.12

type SqlLimitRule struct {

	// SQL限流规则ID
	Id string `json:"id"`

	// SQL类型
	SqlType string `json:"sql_type"`

	// 限流规则
	Pattern string `json:"pattern"`

	// 最大并发数
	MaxConcurrency int32 `json:"max_concurrency"`

	// 最大等待时间
	MaxWaiting *int32 `json:"max_waiting,omitempty"`
}

SqlLimitRule SQL限流规则

func (SqlLimitRule) String added in v0.1.12

func (o SqlLimitRule) String() string

type TbPosInfo added in v0.1.57

type TbPosInfo struct {

	// 原始名称
	OriginName *string `json:"origin_name,omitempty"`

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

	// 开始
	Start *int32 `json:"start,omitempty"`

	// 结束
	End *int32 `json:"end,omitempty"`
}

func (TbPosInfo) String added in v0.1.57

func (o TbPosInfo) String() string

type TopRiskInfo added in v0.1.108

type TopRiskInfo struct {

	// 实例id。
	InstanceId string `json:"instance_id"`

	// 实例名称。
	InstanceName string `json:"instance_name"`

	// 节点ID。
	NodeId string `json:"node_id"`

	// 指标名称。
	MetricNames []string `json:"metric_names"`

	// 指标值,单位%。
	MetricValues []float64 `json:"metric_values"`
}

func (TopRiskInfo) String added in v0.1.108

func (o TopRiskInfo) String() string

type TopSqlTemplate added in v0.1.12

type TopSqlTemplate struct {

	// SQL模板。
	SqlTemplate string `json:"sql_template"`

	// SQL样本。
	SqlSampleString string `json:"sql_sample_string"`

	// SQL操作类型。
	SqlType string `json:"sql_type"`

	// 数据库名称。
	DbName string `json:"db_name"`

	// 总执行次数。
	ExecuteNum int64 `json:"execute_num"`

	// 总耗时(ms)。
	TotalCost float64 `json:"total_cost"`

	// 平均耗时(ms)。
	AvgCost float64 `json:"avg_cost"`

	// 平均返回行数。
	AvgRowsSent float64 `json:"avg_rows_sent"`

	// 平均影响行数。
	AvgRowsAffected float64 `json:"avg_rows_affected"`

	// 平均锁等待耗时(ms)。
	AvgLockTime float64 `json:"avg_lock_time"`

	// 总扫描行数。
	TotalRowsExamined float64 `json:"total_rows_examined"`

	// 平均扫描行数。
	AvgRowsExamined float64 `json:"avg_rows_examined"`

	// 总耗时占比。
	TotalCostRatio string `json:"total_cost_ratio"`

	// 扫描行数占比。
	TotalExaminedRatio string `json:"total_examined_ratio"`

	// 执行次数占比。
	ExecuteNumRatio string `json:"execute_num_ratio"`
}

func (TopSqlTemplate) String added in v0.1.12

func (o TopSqlTemplate) String() string

type TopSqlTrendItem added in v0.1.12

type TopSqlTrendItem struct {

	// 执行时间点,毫秒时间戳。表示统计数据的时间范围为execute_at到execute_at + interval_millis。
	ExecuteAt int64 `json:"execute_at"`

	// 执行耗时小于100ms。
	QueryTimeIn100ms int64 `json:"query_time_in_100ms"`

	// 执行耗时100ms-500ms。
	QueryTimeIn500ms int64 `json:"query_time_in_500ms"`

	// 执行耗时500ms-1000ms
	QueryTimeIn1s int64 `json:"query_time_in_1s"`

	// 执行耗时大于1000ms。
	QueryTimeOver1s int64 `json:"query_time_over_1s"`
}

func (TopSqlTrendItem) String added in v0.1.12

func (o TopSqlTrendItem) String() string

type TransactionSwitchReq added in v0.1.105

type TransactionSwitchReq struct {

	// 开关状态
	SwitchStatus TransactionSwitchReqSwitchStatus `json:"switch_status"`

	// 数据库类型。仅支持MySQL
	DatastoreType TransactionSwitchReqDatastoreType `json:"datastore_type"`
}

func (TransactionSwitchReq) String added in v0.1.105

func (o TransactionSwitchReq) String() string

type TransactionSwitchReqDatastoreType added in v0.1.105

type TransactionSwitchReqDatastoreType struct {
	// contains filtered or unexported fields
}

func (TransactionSwitchReqDatastoreType) MarshalJSON added in v0.1.105

func (c TransactionSwitchReqDatastoreType) MarshalJSON() ([]byte, error)

func (*TransactionSwitchReqDatastoreType) UnmarshalJSON added in v0.1.105

func (c *TransactionSwitchReqDatastoreType) UnmarshalJSON(b []byte) error

func (TransactionSwitchReqDatastoreType) Value added in v0.1.105

type TransactionSwitchReqDatastoreTypeEnum added in v0.1.105

type TransactionSwitchReqDatastoreTypeEnum struct {
	MY_SQL TransactionSwitchReqDatastoreType
}

func GetTransactionSwitchReqDatastoreTypeEnum added in v0.1.105

func GetTransactionSwitchReqDatastoreTypeEnum() TransactionSwitchReqDatastoreTypeEnum

type TransactionSwitchReqSwitchStatus added in v0.1.105

type TransactionSwitchReqSwitchStatus struct {
	// contains filtered or unexported fields
}

func (TransactionSwitchReqSwitchStatus) MarshalJSON added in v0.1.105

func (c TransactionSwitchReqSwitchStatus) MarshalJSON() ([]byte, error)

func (*TransactionSwitchReqSwitchStatus) UnmarshalJSON added in v0.1.105

func (c *TransactionSwitchReqSwitchStatus) UnmarshalJSON(b []byte) error

func (TransactionSwitchReqSwitchStatus) Value added in v0.1.105

type TransactionSwitchReqSwitchStatusEnum added in v0.1.105

type TransactionSwitchReqSwitchStatusEnum struct {
	ENABLED  TransactionSwitchReqSwitchStatus
	DISABLED TransactionSwitchReqSwitchStatus
}

func GetTransactionSwitchReqSwitchStatusEnum added in v0.1.105

func GetTransactionSwitchReqSwitchStatusEnum() TransactionSwitchReqSwitchStatusEnum

type UpdateDbUserRequest

type UpdateDbUserRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 数据库用户ID
	DbUserId string `json:"db_user_id"`

	// 语言
	XLanguage *UpdateDbUserRequestXLanguage `json:"X-Language,omitempty"`

	Body *UpdateDbUserRequestBody `json:"body,omitempty"`
}

UpdateDbUserRequest Request Object

func (UpdateDbUserRequest) String

func (o UpdateDbUserRequest) String() string

type UpdateDbUserRequestBody

type UpdateDbUserRequestBody struct {

	// 数据库用户名称
	DbUsername string `json:"db_username"`

	// 数据库用户密码
	DbUserPassword string `json:"db_user_password"`
}

UpdateDbUserRequestBody 修改注册的数据库用户请求

func (UpdateDbUserRequestBody) String

func (o UpdateDbUserRequestBody) String() string

type UpdateDbUserRequestXLanguage

type UpdateDbUserRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (UpdateDbUserRequestXLanguage) MarshalJSON

func (c UpdateDbUserRequestXLanguage) MarshalJSON() ([]byte, error)

func (*UpdateDbUserRequestXLanguage) UnmarshalJSON

func (c *UpdateDbUserRequestXLanguage) UnmarshalJSON(b []byte) error

func (UpdateDbUserRequestXLanguage) Value added in v0.0.90

type UpdateDbUserRequestXLanguageEnum

type UpdateDbUserRequestXLanguageEnum struct {
	ZH_CN UpdateDbUserRequestXLanguage
	EN_US UpdateDbUserRequestXLanguage
}

func GetUpdateDbUserRequestXLanguageEnum

func GetUpdateDbUserRequestXLanguageEnum() UpdateDbUserRequestXLanguageEnum

type UpdateDbUserResponse

type UpdateDbUserResponse struct {

	// 修改结果,修改成功返回OK
	Result         *string `json:"result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateDbUserResponse Response Object

func (UpdateDbUserResponse) String

func (o UpdateDbUserResponse) String() string

type UpdateSqlLimitRuleOption added in v0.1.96

type UpdateSqlLimitRuleOption struct {

	// 最大并发数
	MaxConcurrency int32 `json:"max_concurrency"`

	// 最大等待时间
	MaxWaiting *int32 `json:"max_waiting,omitempty"`
}

func (UpdateSqlLimitRuleOption) String added in v0.1.96

func (o UpdateSqlLimitRuleOption) String() string

type UpdateSqlLimitRulesBody added in v0.1.96

type UpdateSqlLimitRulesBody struct {

	// 数据库类型
	DatastoreType UpdateSqlLimitRulesBodyDatastoreType `json:"datastore_type"`

	// SQL限流规则ID
	SqlLimitRuleIds []string `json:"sql_limit_rule_ids"`

	// 数据库名(PostgreSQL必填)
	DatabaseName *string `json:"database_name,omitempty"`

	SqlLimitRule *UpdateSqlLimitRuleOption `json:"sql_limit_rule"`
}

UpdateSqlLimitRulesBody 修改SQL限流规则请求体

func (UpdateSqlLimitRulesBody) String added in v0.1.96

func (o UpdateSqlLimitRulesBody) String() string

type UpdateSqlLimitRulesBodyDatastoreType added in v0.1.96

type UpdateSqlLimitRulesBodyDatastoreType struct {
	// contains filtered or unexported fields
}

func (UpdateSqlLimitRulesBodyDatastoreType) MarshalJSON added in v0.1.96

func (c UpdateSqlLimitRulesBodyDatastoreType) MarshalJSON() ([]byte, error)

func (*UpdateSqlLimitRulesBodyDatastoreType) UnmarshalJSON added in v0.1.96

func (c *UpdateSqlLimitRulesBodyDatastoreType) UnmarshalJSON(b []byte) error

func (UpdateSqlLimitRulesBodyDatastoreType) Value added in v0.1.96

type UpdateSqlLimitRulesBodyDatastoreTypeEnum added in v0.1.96

type UpdateSqlLimitRulesBodyDatastoreTypeEnum struct {
	POSTGRE_SQL UpdateSqlLimitRulesBodyDatastoreType
}

func GetUpdateSqlLimitRulesBodyDatastoreTypeEnum added in v0.1.96

func GetUpdateSqlLimitRulesBodyDatastoreTypeEnum() UpdateSqlLimitRulesBodyDatastoreTypeEnum

type UpdateSqlLimitRulesRequest added in v0.1.96

type UpdateSqlLimitRulesRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`

	// 语言
	XLanguage *UpdateSqlLimitRulesRequestXLanguage `json:"X-Language,omitempty"`

	Body *UpdateSqlLimitRulesBody `json:"body,omitempty"`
}

UpdateSqlLimitRulesRequest Request Object

func (UpdateSqlLimitRulesRequest) String added in v0.1.96

type UpdateSqlLimitRulesRequestXLanguage added in v0.1.96

type UpdateSqlLimitRulesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (UpdateSqlLimitRulesRequestXLanguage) MarshalJSON added in v0.1.96

func (c UpdateSqlLimitRulesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*UpdateSqlLimitRulesRequestXLanguage) UnmarshalJSON added in v0.1.96

func (c *UpdateSqlLimitRulesRequestXLanguage) UnmarshalJSON(b []byte) error

func (UpdateSqlLimitRulesRequestXLanguage) Value added in v0.1.96

type UpdateSqlLimitRulesRequestXLanguageEnum added in v0.1.96

type UpdateSqlLimitRulesRequestXLanguageEnum struct {
	ZH_CN UpdateSqlLimitRulesRequestXLanguage
	EN_US UpdateSqlLimitRulesRequestXLanguage
}

func GetUpdateSqlLimitRulesRequestXLanguageEnum added in v0.1.96

func GetUpdateSqlLimitRulesRequestXLanguageEnum() UpdateSqlLimitRulesRequestXLanguageEnum

type UpdateSqlLimitRulesResponse added in v0.1.96

type UpdateSqlLimitRulesResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateSqlLimitRulesResponse Response Object

func (UpdateSqlLimitRulesResponse) String added in v0.1.96

Source Files

Jump to

Keyboard shortcuts

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