Documentation ¶
Index ¶
- type ApiVersion
- type ChangeSqlSwitchBody
- type ChangeSqlSwitchRequest
- type ChangeSqlSwitchRequestXLanguage
- type ChangeSqlSwitchRequestXLanguageEnum
- type ChangeSqlSwitchResponse
- type CreateSpaceAnalysisTaskBody
- type CreateSpaceAnalysisTaskBodyDatastoreType
- type CreateSpaceAnalysisTaskBodyDatastoreTypeEnum
- type CreateSpaceAnalysisTaskBodyOperate
- type CreateSpaceAnalysisTaskBodyOperateEnum
- type CreateSpaceAnalysisTaskRequest
- type CreateSpaceAnalysisTaskRequestXLanguage
- type CreateSpaceAnalysisTaskRequestXLanguageEnum
- type CreateSpaceAnalysisTaskResponse
- 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 ExecutionPlan
- type ExportSlowQueryLogsRequest
- type ExportSlowQueryLogsRequestXLanguage
- type ExportSlowQueryLogsRequestXLanguageEnum
- type ExportSlowQueryLogsResponse
- type ExportSqlStatementsRequest
- type ExportSqlStatementsRequestXLanguage
- type ExportSqlStatementsRequestXLanguageEnum
- type ExportSqlStatementsResponse
- 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 MetadataLock
- type Process
- type QuerySqlPlanBody
- type RegisterDbUserRequest
- type RegisterDbUserRequestBody
- type RegisterDbUserRequestXLanguage
- type RegisterDbUserRequestXLanguageEnum
- type RegisterDbUserResponse
- 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 ShowSqlSwitchStatusRequest
- type ShowSqlSwitchStatusRequestXLanguage
- type ShowSqlSwitchStatusRequestXLanguageEnum
- type ShowSqlSwitchStatusResponse
- type SlowLog
- 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"` }
API版本详细信息列表。
func (ApiVersion) String ¶
func (o ApiVersion) 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"` }
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:"-"` }
Response Object
func (ChangeSqlSwitchResponse) String ¶
func (o ChangeSqlSwitchResponse) 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"` }
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:"-"` }
Response Object
func (CreateSpaceAnalysisTaskResponse) String ¶
func (o CreateSpaceAnalysisTaskResponse) 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"` }
数据库对象空间信息,数据来源于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"` }
注册的数据库用户信息
type DeleteDbUserRequest ¶
type DeleteDbUserRequest struct { // 实例ID InstanceId string `json:"instance_id"` // 数据库用户ID DbUserId string `json:"db_user_id"` // 语言 XLanguage *DeleteDbUserRequestXLanguage `json:"X-Language,omitempty"` }
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:"-"` }
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"` }
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:"-"`
}
Response Object
func (DeleteProcessResponse) String ¶
func (o DeleteProcessResponse) 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"` }
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:"-"` }
Response Object
func (ExportSlowQueryLogsResponse) String ¶
func (o ExportSlowQueryLogsResponse) 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"` }
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:"-"` }
Response Object
func (ExportSqlStatementsResponse) String ¶
func (o ExportSqlStatementsResponse) 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"` }
实例空间信息。数据来源于文件系统。已用空间包含数据空间、日志空间和其他空间,其他空间包括引擎产生的临时文件等。
func (InstanceSpaceInfo) String ¶
func (o InstanceSpaceInfo) String() string
type ListApiVersionsRequest ¶
type ListApiVersionsRequest struct { }
Request Object
func (ListApiVersionsRequest) String ¶
func (o ListApiVersionsRequest) String() string
type ListApiVersionsResponse ¶
type ListApiVersionsResponse struct { // API版本详细信息列表。 Versions *[]ApiVersion `json:"versions,omitempty"` HttpStatusCode int `json:"-"` }
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"` }
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:"-"` }
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"` }
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:"-"` }
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"` }
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:"-"` }
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"` }
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:"-"` }
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"` }
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:"-"` }
Response Object
func (ListSpaceAnalysisResponse) String ¶
func (o ListSpaceAnalysisResponse) 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"` }
元数据锁
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 RegisterDbUserRequest ¶
type RegisterDbUserRequest struct { // 实例ID InstanceId string `json:"instance_id"` // 语言 XLanguage *RegisterDbUserRequestXLanguage `json:"X-Language,omitempty"` Body *RegisterDbUserRequestBody `json:"body,omitempty"` }
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"` }
注册数据库用户请求
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:"-"` }
Response Object
func (RegisterDbUserResponse) String ¶
func (o RegisterDbUserResponse) String() string
type ShowApiVersionRequest ¶
type ShowApiVersionRequest struct { // API版本 Version string `json:"version"` }
Request Object
func (ShowApiVersionRequest) String ¶
func (o ShowApiVersionRequest) String() string
type ShowApiVersionResponse ¶
type ShowApiVersionResponse struct { Version *ApiVersion `json:"version,omitempty"` HttpStatusCode int `json:"-"` }
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"` }
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:"-"` }
Response Object
func (ShowDbUserResponse) String ¶
func (o ShowDbUserResponse) String() string
type ShowQuotasRequest ¶
type ShowQuotasRequest struct { // 语言 XLanguage *ShowQuotasRequestXLanguage `json:"X-Language,omitempty"` }
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 *interface{} `json:"quotas,omitempty"` HttpStatusCode int `json:"-"` }
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"` }
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:"-"` }
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"` }
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:"-"` }
Response Object
func (ShowSqlExplainResponse) String ¶ added in v0.0.81
func (o ShowSqlExplainResponse) String() string
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"` }
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:"-"` }
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 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"` }
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"` }
修改注册的数据库用户请求
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:"-"` }
Response Object
func (UpdateDbUserResponse) String ¶
func (o UpdateDbUserResponse) String() string
Source Files ¶
- model_api_version.go
- model_change_sql_switch_body.go
- model_change_sql_switch_request.go
- model_change_sql_switch_response.go
- model_create_space_analysis_task_body.go
- model_create_space_analysis_task_request.go
- model_create_space_analysis_task_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_execution_plan.go
- model_export_slow_query_logs_request.go
- model_export_slow_query_logs_response.go
- model_export_sql_statements_request.go
- model_export_sql_statements_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_metadata_lock.go
- model_process.go
- model_query_sql_plan_body.go
- model_register_db_user_request.go
- model_register_db_user_request_body.go
- model_register_db_user_response.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_switch_status_request.go
- model_show_sql_switch_status_response.go
- model_slow_log.go
- model_update_db_user_request.go
- model_update_db_user_request_body.go
- model_update_db_user_response.go