Documentation ¶
Index ¶
- type ApiVersion
- type CancelShareConnectionsRequest
- type CancelShareConnectionsRequestBody
- type CancelShareConnectionsResponse
- type ChangeSqlLimitSwitchStatusBody
- type ChangeSqlLimitSwitchStatusBodyDatastoreType
- type ChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum
- type ChangeSqlLimitSwitchStatusBodySwitchStatus
- type ChangeSqlLimitSwitchStatusBodySwitchStatusEnum
- type ChangeSqlLimitSwitchStatusRequest
- type ChangeSqlLimitSwitchStatusRequestXLanguage
- type ChangeSqlLimitSwitchStatusRequestXLanguageEnum
- type ChangeSqlLimitSwitchStatusResponse
- type ChangeSqlSwitchBody
- type ChangeSqlSwitchRequest
- type ChangeSqlSwitchRequestXLanguage
- type ChangeSqlSwitchRequestXLanguageEnum
- type ChangeSqlSwitchResponse
- type CreateShareConnectionsRequest
- type CreateShareConnectionsRequestBody
- type CreateShareConnectionsResponse
- type CreateSpaceAnalysisTaskBody
- type CreateSpaceAnalysisTaskBodyDatastoreType
- type CreateSpaceAnalysisTaskBodyDatastoreTypeEnum
- type CreateSpaceAnalysisTaskBodyOperate
- type CreateSpaceAnalysisTaskBodyOperateEnum
- type CreateSpaceAnalysisTaskRequest
- type CreateSpaceAnalysisTaskRequestXLanguage
- type CreateSpaceAnalysisTaskRequestXLanguageEnum
- type CreateSpaceAnalysisTaskResponse
- type CreateSqlLimitRuleOption
- type CreateSqlLimitRuleOptionSqlType
- type CreateSqlLimitRuleOptionSqlTypeEnum
- type CreateSqlLimitRulesBody
- type CreateSqlLimitRulesBodyDatastoreType
- type CreateSqlLimitRulesBodyDatastoreTypeEnum
- type CreateSqlLimitRulesRequest
- type CreateSqlLimitRulesRequestXLanguage
- type CreateSqlLimitRulesRequestXLanguageEnum
- type CreateSqlLimitRulesResponse
- type DbObjectSpaceInfo
- type DbObjectSpaceInfoObjectType
- type DbObjectSpaceInfoObjectTypeEnum
- type DbUser
- type DeleteDbUserRequest
- type DeleteDbUserRequestXLanguage
- type DeleteDbUserRequestXLanguageEnum
- type DeleteDbUserResponse
- type DeleteProcessReqBody
- type DeleteProcessRequest
- type DeleteProcessRequestXLanguage
- type DeleteProcessRequestXLanguageEnum
- type DeleteProcessResponse
- type DeleteSqlLimitRulesBody
- type DeleteSqlLimitRulesBodyDatastoreType
- type DeleteSqlLimitRulesBodyDatastoreTypeEnum
- type DeleteSqlLimitRulesRequest
- type DeleteSqlLimitRulesRequestXLanguage
- type DeleteSqlLimitRulesRequestXLanguageEnum
- type DeleteSqlLimitRulesResponse
- type ExecutionPlan
- type ExportSlowQueryLogsRequest
- type ExportSlowQueryLogsRequestXLanguage
- type ExportSlowQueryLogsRequestXLanguageEnum
- type ExportSlowQueryLogsResponse
- type ExportSlowSqlTemplatesDetailsRequest
- type ExportSlowSqlTemplatesDetailsRequestXLanguage
- type ExportSlowSqlTemplatesDetailsRequestXLanguageEnum
- type ExportSlowSqlTemplatesDetailsResponse
- type ExportSqlStatementsRequest
- type ExportSqlStatementsRequestXLanguage
- type ExportSqlStatementsRequestXLanguageEnum
- type ExportSqlStatementsResponse
- type ExportTopSqlTemplatesDetailsRequest
- type ExportTopSqlTemplatesDetailsRequestSort
- type ExportTopSqlTemplatesDetailsRequestSortEnum
- type ExportTopSqlTemplatesDetailsRequestXLanguage
- type ExportTopSqlTemplatesDetailsRequestXLanguageEnum
- type ExportTopSqlTemplatesDetailsResponse
- type ExportTopSqlTrendDetailsRequest
- type ExportTopSqlTrendDetailsRequestXLanguage
- type ExportTopSqlTrendDetailsRequestXLanguageEnum
- type ExportTopSqlTrendDetailsResponse
- type FullSql
- type InnodbLock
- type InnodbLockWaits
- type InnodbTrx
- type InstanceSpaceInfo
- type ListApiVersionsRequest
- type ListApiVersionsResponse
- type ListDbUsersRequest
- type ListDbUsersRequestXLanguage
- type ListDbUsersRequestXLanguageEnum
- type ListDbUsersResponse
- type ListInnodbLocksRequest
- type ListInnodbLocksRequestXLanguage
- type ListInnodbLocksRequestXLanguageEnum
- type ListInnodbLocksResponse
- type ListMetadataLocksRequest
- type ListMetadataLocksRequestXLanguage
- type ListMetadataLocksRequestXLanguageEnum
- type ListMetadataLocksResponse
- type ListProcessesRequest
- type ListProcessesRequestXLanguage
- type ListProcessesRequestXLanguageEnum
- type ListProcessesResponse
- type ListSpaceAnalysisRequest
- type ListSpaceAnalysisRequestDatastoreType
- type ListSpaceAnalysisRequestDatastoreTypeEnum
- type ListSpaceAnalysisRequestObjectType
- type ListSpaceAnalysisRequestObjectTypeEnum
- type ListSpaceAnalysisResponse
- type ListSqlLimitRulesRequest
- type ListSqlLimitRulesRequestDatastoreType
- type ListSqlLimitRulesRequestDatastoreTypeEnum
- type ListSqlLimitRulesRequestXLanguage
- type ListSqlLimitRulesRequestXLanguageEnum
- type ListSqlLimitRulesResponse
- type MetadataLock
- type Process
- type QuerySqlPlanBody
- type Quotas
- type RegisterDbUserRequest
- type RegisterDbUserRequestBody
- type RegisterDbUserRequestXLanguage
- type RegisterDbUserRequestXLanguageEnum
- type RegisterDbUserResponse
- type Resource
- type ShareConnUserInfo
- type ShowApiVersionRequest
- type ShowApiVersionResponse
- type ShowDbUserRequest
- type ShowDbUserRequestXLanguage
- type ShowDbUserRequestXLanguageEnum
- type ShowDbUserResponse
- type ShowQuotasRequest
- type ShowQuotasRequestXLanguage
- type ShowQuotasRequestXLanguageEnum
- type ShowQuotasResponse
- type ShowSqlExecutionPlanRequest
- type ShowSqlExecutionPlanRequestXLanguage
- type ShowSqlExecutionPlanRequestXLanguageEnum
- type ShowSqlExecutionPlanResponse
- type ShowSqlExplainRequest
- type ShowSqlExplainRequestXLanguage
- type ShowSqlExplainRequestXLanguageEnum
- type ShowSqlExplainResponse
- type ShowSqlLimitJobInfoRequest
- type ShowSqlLimitJobInfoRequestXLanguage
- type ShowSqlLimitJobInfoRequestXLanguageEnum
- type ShowSqlLimitJobInfoResponse
- type ShowSqlLimitJobInfoResponseJobStatus
- type ShowSqlLimitJobInfoResponseJobStatusEnum
- type ShowSqlLimitSwitchStatusRequest
- type ShowSqlLimitSwitchStatusRequestDatastoreType
- type ShowSqlLimitSwitchStatusRequestDatastoreTypeEnum
- type ShowSqlLimitSwitchStatusRequestXLanguage
- type ShowSqlLimitSwitchStatusRequestXLanguageEnum
- type ShowSqlLimitSwitchStatusResponse
- type ShowSqlLimitSwitchStatusResponseSwitchStatus
- type ShowSqlLimitSwitchStatusResponseSwitchStatusEnum
- type ShowSqlSwitchStatusRequest
- type ShowSqlSwitchStatusRequestXLanguage
- type ShowSqlSwitchStatusRequestXLanguageEnum
- type ShowSqlSwitchStatusResponse
- type SlowLog
- type SlowSqlTemplate
- type SqlLimitRule
- type TopSqlTemplate
- type TopSqlTrendItem
- type UpdateDbUserRequest
- type UpdateDbUserRequestBody
- type UpdateDbUserRequestXLanguage
- type UpdateDbUserRequestXLanguageEnum
- type UpdateDbUserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 { string `json:"X-Language,omitempty"` }XLanguage *
CancelShareConnectionsRequest Request Object
func (CancelShareConnectionsRequest) String ¶ added in v0.1.40
func (o CancelShareConnectionsRequest) String() string
type CancelShareConnectionsRequestBody ¶ added in v0.1.40
type CancelShareConnectionsRequestBody struct { string `json:"shared_conn_id"` Users []ShareConnUserInfo `json:"users"` }SharedConnId
func (CancelShareConnectionsRequestBody) String ¶ added in v0.1.40
func (o CancelShareConnectionsRequestBody) String() string
type CancelShareConnectionsResponse ¶ added in v0.1.40
type CancelShareConnectionsResponse struct {
}CancelShareConnectionsResponse Response Object
func (CancelShareConnectionsResponse) String ¶ added in v0.1.40
func (o CancelShareConnectionsResponse) String() string
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
func (o ChangeSqlLimitSwitchStatusBody) String() string
type ChangeSqlLimitSwitchStatusBodyDatastoreType ¶ added in v0.1.12
type ChangeSqlLimitSwitchStatusBodyDatastoreType struct {
// contains filtered or unexported fields
}
func (ChangeSqlLimitSwitchStatusBodyDatastoreType) MarshalJSON ¶ added in v0.1.12
func (c ChangeSqlLimitSwitchStatusBodyDatastoreType) MarshalJSON() ([]byte, error)
func (*ChangeSqlLimitSwitchStatusBodyDatastoreType) UnmarshalJSON ¶ added in v0.1.12
func (c *ChangeSqlLimitSwitchStatusBodyDatastoreType) UnmarshalJSON(b []byte) error
func (ChangeSqlLimitSwitchStatusBodyDatastoreType) Value ¶ added in v0.1.12
func (c ChangeSqlLimitSwitchStatusBodyDatastoreType) Value() string
type ChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum ¶ added in v0.1.12
type ChangeSqlLimitSwitchStatusBodyDatastoreTypeEnum struct {
MY_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 (c ChangeSqlLimitSwitchStatusBodySwitchStatus) MarshalJSON() ([]byte, error)
func (*ChangeSqlLimitSwitchStatusBodySwitchStatus) UnmarshalJSON ¶ added in v0.1.12
func (c *ChangeSqlLimitSwitchStatusBodySwitchStatus) UnmarshalJSON(b []byte) error
func (ChangeSqlLimitSwitchStatusBodySwitchStatus) Value ¶ added in v0.1.12
func (c ChangeSqlLimitSwitchStatusBodySwitchStatus) Value() string
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
func (o ChangeSqlLimitSwitchStatusRequest) String() string
type ChangeSqlLimitSwitchStatusRequestXLanguage ¶ added in v0.1.12
type ChangeSqlLimitSwitchStatusRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ChangeSqlLimitSwitchStatusRequestXLanguage) MarshalJSON ¶ added in v0.1.12
func (c ChangeSqlLimitSwitchStatusRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ChangeSqlLimitSwitchStatusRequestXLanguage) UnmarshalJSON ¶ added in v0.1.12
func (c *ChangeSqlLimitSwitchStatusRequestXLanguage) UnmarshalJSON(b []byte) error
func (ChangeSqlLimitSwitchStatusRequestXLanguage) Value ¶ added in v0.1.12
func (c ChangeSqlLimitSwitchStatusRequestXLanguage) Value() string
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
func (o ChangeSqlLimitSwitchStatusResponse) String() string
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
func (c ChangeSqlSwitchRequestXLanguage) Value() string
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 CreateShareConnectionsRequest ¶ added in v0.1.40
type CreateShareConnectionsRequest struct { string `json:"X-Language,omitempty"` }XLanguage *
CreateShareConnectionsRequest Request Object
func (CreateShareConnectionsRequest) String ¶ added in v0.1.40
func (o CreateShareConnectionsRequest) String() string
type CreateShareConnectionsRequestBody ¶ added in v0.1.40
type CreateShareConnectionsRequestBody struct { string `json:"shared_conn_id"` ExpiredTime *string `json:"expired_time,omitempty"` Users []ShareConnUserInfo `json:"users"` }SharedConnId
func (CreateShareConnectionsRequestBody) String ¶ added in v0.1.40
func (o CreateShareConnectionsRequestBody) String() string
type CreateShareConnectionsResponse ¶ added in v0.1.40
type CreateShareConnectionsResponse struct {
}CreateShareConnectionsResponse Response Object
func (CreateShareConnectionsResponse) String ¶ added in v0.1.40
func (o CreateShareConnectionsResponse) String() string
type CreateSpaceAnalysisTaskBody ¶
type CreateSpaceAnalysisTaskBody struct { // 操作类型 Operate CreateSpaceAnalysisTaskBodyOperate `json:"operate"` // 引擎类型 DatastoreType CreateSpaceAnalysisTaskBodyDatastoreType `json:"datastore_type"` }
func (CreateSpaceAnalysisTaskBody) String ¶
func (o CreateSpaceAnalysisTaskBody) String() string
type CreateSpaceAnalysisTaskBodyDatastoreType ¶
type CreateSpaceAnalysisTaskBodyDatastoreType struct {
// contains filtered or unexported fields
}
func (CreateSpaceAnalysisTaskBodyDatastoreType) MarshalJSON ¶
func (c CreateSpaceAnalysisTaskBodyDatastoreType) MarshalJSON() ([]byte, error)
func (*CreateSpaceAnalysisTaskBodyDatastoreType) UnmarshalJSON ¶
func (c *CreateSpaceAnalysisTaskBodyDatastoreType) UnmarshalJSON(b []byte) error
func (CreateSpaceAnalysisTaskBodyDatastoreType) Value ¶ added in v0.0.90
func (c CreateSpaceAnalysisTaskBodyDatastoreType) Value() string
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
func (c CreateSpaceAnalysisTaskBodyOperate) Value() string
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 ¶
func (o CreateSpaceAnalysisTaskRequest) String() 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
func (c CreateSpaceAnalysisTaskRequestXLanguage) Value() string
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 ¶
func (o CreateSpaceAnalysisTaskResponse) String() string
type CreateSqlLimitRuleOption ¶ added in v0.1.12
type CreateSqlLimitRuleOption struct { // SQL类型 SqlType CreateSqlLimitRuleOptionSqlType `json:"sql_type"` // 最大并发数 MaxConcurrency int32 `json:"max_concurrency"` // SQL限流规则。限流规则以~分隔关键字,例如select~a。规则举例详细说明:例如关键字是\"select~a\", 含义为:select以及a为该并发控制所包含的两个关键字,~为关键字间隔符,即若执行SQL命令包含select与a两个关键字视为命中此条并发控制规则。 Pattern string `json:"pattern"` }
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
func (c CreateSqlLimitRuleOptionSqlType) Value() string
type CreateSqlLimitRuleOptionSqlTypeEnum ¶ added in v0.1.12
type CreateSqlLimitRuleOptionSqlTypeEnum struct { SELECT CreateSqlLimitRuleOptionSqlType UPDATE CreateSqlLimitRuleOptionSqlType DELETE CreateSqlLimitRuleOptionSqlType }
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"` }
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
func (c CreateSqlLimitRulesBodyDatastoreType) Value() string
type CreateSqlLimitRulesBodyDatastoreTypeEnum ¶ added in v0.1.12
type CreateSqlLimitRulesBodyDatastoreTypeEnum struct {
MY_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
func (o CreateSqlLimitRulesRequest) String() string
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
func (c CreateSqlLimitRulesRequestXLanguage) Value() string
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
func (o CreateSqlLimitRulesResponse) 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"` // 估算值行数,以字节为单位 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
func (c DbObjectSpaceInfoObjectType) Value() string
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 注册的数据库用户信息
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
func (c DeleteDbUserRequestXLanguage) Value() string
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
func (c DeleteProcessRequestXLanguage) Value() string
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"` }
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
func (c DeleteSqlLimitRulesBodyDatastoreType) Value() string
type DeleteSqlLimitRulesBodyDatastoreTypeEnum ¶ added in v0.1.12
type DeleteSqlLimitRulesBodyDatastoreTypeEnum struct {
MY_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
func (o DeleteSqlLimitRulesRequest) String() string
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
func (c DeleteSqlLimitRulesRequestXLanguage) Value() string
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
func (o DeleteSqlLimitRulesResponse) String() string
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 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 ¶
func (o ExportSlowQueryLogsRequest) String() 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
func (c ExportSlowQueryLogsRequestXLanguage) Value() string
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 ¶
func (o ExportSlowQueryLogsResponse) String() string
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
func (o ExportSlowSqlTemplatesDetailsRequest) String() string
type ExportSlowSqlTemplatesDetailsRequestXLanguage ¶ added in v0.1.12
type ExportSlowSqlTemplatesDetailsRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ExportSlowSqlTemplatesDetailsRequestXLanguage) MarshalJSON ¶ added in v0.1.12
func (c ExportSlowSqlTemplatesDetailsRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ExportSlowSqlTemplatesDetailsRequestXLanguage) UnmarshalJSON ¶ added in v0.1.12
func (c *ExportSlowSqlTemplatesDetailsRequestXLanguage) UnmarshalJSON(b []byte) error
func (ExportSlowSqlTemplatesDetailsRequestXLanguage) Value ¶ added in v0.1.12
func (c ExportSlowSqlTemplatesDetailsRequestXLanguage) Value() string
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
func (o ExportSlowSqlTemplatesDetailsResponse) String() string
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 ¶
func (o ExportSqlStatementsRequest) String() 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
func (c ExportSqlStatementsRequestXLanguage) Value() string
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 ¶
func (o ExportSqlStatementsResponse) String() string
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
func (o ExportTopSqlTemplatesDetailsRequest) String() string
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
func (c ExportTopSqlTemplatesDetailsRequestSort) Value() string
type ExportTopSqlTemplatesDetailsRequestSortEnum ¶ added in v0.1.12
type ExportTopSqlTemplatesDetailsRequestSortEnum struct { EXECUTE_NUM ExportTopSqlTemplatesDetailsRequestSort TOTAL_COST ExportTopSqlTemplatesDetailsRequestSort AVG_COST ExportTopSqlTemplatesDetailsRequestSort TOTAL_SCAN ExportTopSqlTemplatesDetailsRequestSort AVG_SCAN ExportTopSqlTemplatesDetailsRequestSort }
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 (c ExportTopSqlTemplatesDetailsRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ExportTopSqlTemplatesDetailsRequestXLanguage) UnmarshalJSON ¶ added in v0.1.12
func (c *ExportTopSqlTemplatesDetailsRequestXLanguage) UnmarshalJSON(b []byte) error
func (ExportTopSqlTemplatesDetailsRequestXLanguage) Value ¶ added in v0.1.12
func (c ExportTopSqlTemplatesDetailsRequestXLanguage) Value() string
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
func (o ExportTopSqlTemplatesDetailsResponse) String() string
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
func (o ExportTopSqlTrendDetailsRequest) String() string
type ExportTopSqlTrendDetailsRequestXLanguage ¶ added in v0.1.12
type ExportTopSqlTrendDetailsRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ExportTopSqlTrendDetailsRequestXLanguage) MarshalJSON ¶ added in v0.1.12
func (c ExportTopSqlTrendDetailsRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ExportTopSqlTrendDetailsRequestXLanguage) UnmarshalJSON ¶ added in v0.1.12
func (c *ExportTopSqlTrendDetailsRequestXLanguage) UnmarshalJSON(b []byte) error
func (ExportTopSqlTrendDetailsRequestXLanguage) Value ¶ added in v0.1.12
func (c ExportTopSqlTrendDetailsRequestXLanguage) Value() string
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,六小时以上间隔300s。单位为毫秒。 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
func (o ExportTopSqlTrendDetailsResponse) 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"` }
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"` }
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 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
func (c ListDbUsersRequestXLanguage) Value() string
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
func (c ListInnodbLocksRequestXLanguage) Value() string
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
func (c ListMetadataLocksRequestXLanguage) Value() string
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"` // 偏移量。从第一条数据偏移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
func (c ListProcessesRequestXLanguage) Value() string
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
func (c ListSpaceAnalysisRequestDatastoreType) Value() string
type ListSpaceAnalysisRequestDatastoreTypeEnum ¶
type ListSpaceAnalysisRequestDatastoreTypeEnum struct { MY_SQL ListSpaceAnalysisRequestDatastoreType GAUSS_DB_FOR_MY_SQL 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
func (c ListSpaceAnalysisRequestObjectType) Value() string
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"` // 语言 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
func (c ListSqlLimitRulesRequestDatastoreType) Value() string
type ListSqlLimitRulesRequestDatastoreTypeEnum ¶ added in v0.1.12
type ListSqlLimitRulesRequestDatastoreTypeEnum struct {
MY_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
func (c ListSqlLimitRulesRequestXLanguage) Value() string
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 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 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"` }
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 Quotas ¶ added in v0.1.12
type Quotas struct { // 资源列表对。 Resources []Resource `json:"resources"` }
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
func (c RegisterDbUserRequestXLanguage) Value() string
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 Resource ¶ added in v0.1.12
type ShareConnUserInfo ¶ added in v0.1.40
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
func (c ShowDbUserRequestXLanguage) Value() string
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
func (c ShowQuotasRequestXLanguage) Value() string
type ShowQuotasRequestXLanguageEnum ¶
type ShowQuotasRequestXLanguageEnum struct { ZH_CN ShowQuotasRequestXLanguage EN_US ShowQuotasRequestXLanguage }
func GetShowQuotasRequestXLanguageEnum ¶
func GetShowQuotasRequestXLanguageEnum() ShowQuotasRequestXLanguageEnum
type ShowQuotasResponse ¶
type ShowQuotasResponse struct { // 配额列表对象。 Quotas *[]Quotas `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 ¶
func (o ShowSqlExecutionPlanRequest) String() 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
func (c ShowSqlExecutionPlanRequestXLanguage) Value() string
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 ¶
func (o ShowSqlExecutionPlanResponse) String() 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
func (c ShowSqlExplainRequestXLanguage) Value() string
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
func (o ShowSqlLimitJobInfoRequest) String() string
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
func (c ShowSqlLimitJobInfoRequestXLanguage) Value() string
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
func (o ShowSqlLimitJobInfoResponse) String() string
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
func (c ShowSqlLimitJobInfoResponseJobStatus) Value() string
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
func (o ShowSqlLimitSwitchStatusRequest) String() string
type ShowSqlLimitSwitchStatusRequestDatastoreType ¶ added in v0.1.12
type ShowSqlLimitSwitchStatusRequestDatastoreType struct {
// contains filtered or unexported fields
}
func (ShowSqlLimitSwitchStatusRequestDatastoreType) MarshalJSON ¶ added in v0.1.12
func (c ShowSqlLimitSwitchStatusRequestDatastoreType) MarshalJSON() ([]byte, error)
func (*ShowSqlLimitSwitchStatusRequestDatastoreType) UnmarshalJSON ¶ added in v0.1.12
func (c *ShowSqlLimitSwitchStatusRequestDatastoreType) UnmarshalJSON(b []byte) error
func (ShowSqlLimitSwitchStatusRequestDatastoreType) Value ¶ added in v0.1.12
func (c ShowSqlLimitSwitchStatusRequestDatastoreType) Value() string
type ShowSqlLimitSwitchStatusRequestDatastoreTypeEnum ¶ added in v0.1.12
type ShowSqlLimitSwitchStatusRequestDatastoreTypeEnum struct {
MY_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 (c ShowSqlLimitSwitchStatusRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ShowSqlLimitSwitchStatusRequestXLanguage) UnmarshalJSON ¶ added in v0.1.12
func (c *ShowSqlLimitSwitchStatusRequestXLanguage) UnmarshalJSON(b []byte) error
func (ShowSqlLimitSwitchStatusRequestXLanguage) Value ¶ added in v0.1.12
func (c ShowSqlLimitSwitchStatusRequestXLanguage) Value() string
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
func (o ShowSqlLimitSwitchStatusResponse) String() string
type ShowSqlLimitSwitchStatusResponseSwitchStatus ¶ added in v0.1.12
type ShowSqlLimitSwitchStatusResponseSwitchStatus struct {
// contains filtered or unexported fields
}
func (ShowSqlLimitSwitchStatusResponseSwitchStatus) MarshalJSON ¶ added in v0.1.12
func (c ShowSqlLimitSwitchStatusResponseSwitchStatus) MarshalJSON() ([]byte, error)
func (*ShowSqlLimitSwitchStatusResponseSwitchStatus) UnmarshalJSON ¶ added in v0.1.12
func (c *ShowSqlLimitSwitchStatusResponseSwitchStatus) UnmarshalJSON(b []byte) error
func (ShowSqlLimitSwitchStatusResponseSwitchStatus) Value ¶ added in v0.1.12
func (c ShowSqlLimitSwitchStatusResponseSwitchStatus) Value() string
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 ¶
func (o ShowSqlSwitchStatusRequest) String() 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
func (c ShowSqlSwitchStatusRequestXLanguage) Value() string
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 ¶
func (o ShowSqlSwitchStatusResponse) 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"` }
type SlowSqlTemplate ¶ added in v0.1.12
type SlowSqlTemplate struct { // SQL模板。 SqlTemplate string `json:"sql_template"` // SQL样本。 SqlSample string `json:"sql_sample"` // 库名。 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 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"` }
SqlLimitRule SQL限流规则
func (SqlLimitRule) String ¶ added in v0.1.12
func (o SqlLimitRule) 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 - interval_millis到execute_at。 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 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
func (c UpdateDbUserRequestXLanguage) Value() string
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
Source Files ¶
- model_api_version.go
- model_cancel_share_connections_request.go
- model_cancel_share_connections_request_body.go
- model_cancel_share_connections_response.go
- model_change_sql_limit_switch_status_body.go
- model_change_sql_limit_switch_status_request.go
- model_change_sql_limit_switch_status_response.go
- model_change_sql_switch_body.go
- model_change_sql_switch_request.go
- model_change_sql_switch_response.go
- model_create_share_connections_request.go
- model_create_share_connections_request_body.go
- model_create_share_connections_response.go
- model_create_space_analysis_task_body.go
- model_create_space_analysis_task_request.go
- model_create_space_analysis_task_response.go
- model_create_sql_limit_rule_option.go
- model_create_sql_limit_rules_body.go
- model_create_sql_limit_rules_request.go
- model_create_sql_limit_rules_response.go
- model_db_object_space_info.go
- model_db_user.go
- model_delete_db_user_request.go
- model_delete_db_user_response.go
- model_delete_process_req_body.go
- model_delete_process_request.go
- model_delete_process_response.go
- model_delete_sql_limit_rules_body.go
- model_delete_sql_limit_rules_request.go
- model_delete_sql_limit_rules_response.go
- model_execution_plan.go
- model_export_slow_query_logs_request.go
- model_export_slow_query_logs_response.go
- model_export_slow_sql_templates_details_request.go
- model_export_slow_sql_templates_details_response.go
- model_export_sql_statements_request.go
- model_export_sql_statements_response.go
- model_export_top_sql_templates_details_request.go
- model_export_top_sql_templates_details_response.go
- model_export_top_sql_trend_details_request.go
- model_export_top_sql_trend_details_response.go
- model_full_sql.go
- model_innodb_lock.go
- model_innodb_lock_waits.go
- model_innodb_trx.go
- model_instance_space_info.go
- model_list_api_versions_request.go
- model_list_api_versions_response.go
- model_list_db_users_request.go
- model_list_db_users_response.go
- model_list_innodb_locks_request.go
- model_list_innodb_locks_response.go
- model_list_metadata_locks_request.go
- model_list_metadata_locks_response.go
- model_list_processes_request.go
- model_list_processes_response.go
- model_list_space_analysis_request.go
- model_list_space_analysis_response.go
- model_list_sql_limit_rules_request.go
- model_list_sql_limit_rules_response.go
- model_metadata_lock.go
- model_process.go
- model_query_sql_plan_body.go
- model_quotas.go
- model_register_db_user_request.go
- model_register_db_user_request_body.go
- model_register_db_user_response.go
- model_resource.go
- model_share_conn_user_info.go
- model_show_api_version_request.go
- model_show_api_version_response.go
- model_show_db_user_request.go
- model_show_db_user_response.go
- model_show_quotas_request.go
- model_show_quotas_response.go
- model_show_sql_execution_plan_request.go
- model_show_sql_execution_plan_response.go
- model_show_sql_explain_request.go
- model_show_sql_explain_response.go
- model_show_sql_limit_job_info_request.go
- model_show_sql_limit_job_info_response.go
- model_show_sql_limit_switch_status_request.go
- model_show_sql_limit_switch_status_response.go
- model_show_sql_switch_status_request.go
- model_show_sql_switch_status_response.go
- model_slow_log.go
- model_slow_sql_template.go
- model_sql_limit_rule.go
- model_top_sql_template.go
- model_top_sql_trend_item.go
- model_update_db_user_request.go
- model_update_db_user_request_body.go
- model_update_db_user_response.go