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 { Id string `json:"id"` Status string `json:"status"` Updated string `json:"updated"` Version string `json:"version"` }
API版本详细信息列表。
func (ApiVersion) String ¶
func (o ApiVersion) String() string
type ChangeSqlSwitchBody ¶
type ChangeSqlSwitchBody struct { Type string `json:"type"` Status int32 `json:"status"` DatastoreType string `json:"datastore_type"` RetentionDays *int64 `json:"retention_days,omitempty"` }
func (ChangeSqlSwitchBody) String ¶
func (o ChangeSqlSwitchBody) String() string
type ChangeSqlSwitchRequest ¶
type ChangeSqlSwitchRequest struct { 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
type ChangeSqlSwitchRequestXLanguageEnum ¶
type ChangeSqlSwitchRequestXLanguageEnum struct { EN_US ChangeSqlSwitchRequestXLanguage ZH_CN ChangeSqlSwitchRequestXLanguage }
func GetChangeSqlSwitchRequestXLanguageEnum ¶
func GetChangeSqlSwitchRequestXLanguageEnum() ChangeSqlSwitchRequestXLanguageEnum
type ChangeSqlSwitchResponse ¶
type ChangeSqlSwitchResponse struct { 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
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
type CreateSpaceAnalysisTaskBodyOperateEnum ¶
type CreateSpaceAnalysisTaskBodyOperateEnum struct {
REANALYSIS CreateSpaceAnalysisTaskBodyOperate
}
func GetCreateSpaceAnalysisTaskBodyOperateEnum ¶
func GetCreateSpaceAnalysisTaskBodyOperateEnum() CreateSpaceAnalysisTaskBodyOperateEnum
type CreateSpaceAnalysisTaskRequest ¶
type CreateSpaceAnalysisTaskRequest struct { 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
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 { ObjectType DbObjectSpaceInfoObjectType `json:"object_type"` ObjectName string `json:"object_name"` 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
type DbObjectSpaceInfoObjectTypeEnum ¶
type DbObjectSpaceInfoObjectTypeEnum struct { DATABASE DbObjectSpaceInfoObjectType TABLE DbObjectSpaceInfoObjectType }
func GetDbObjectSpaceInfoObjectTypeEnum ¶
func GetDbObjectSpaceInfoObjectTypeEnum() DbObjectSpaceInfoObjectTypeEnum
type DeleteDbUserRequest ¶
type DeleteDbUserRequest struct { InstanceId string `json:"instance_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
type DeleteDbUserRequestXLanguageEnum ¶
type DeleteDbUserRequestXLanguageEnum struct { ZH_CN DeleteDbUserRequestXLanguage EN_US DeleteDbUserRequestXLanguage }
func GetDeleteDbUserRequestXLanguageEnum ¶
func GetDeleteDbUserRequestXLanguageEnum() DeleteDbUserRequestXLanguageEnum
type DeleteDbUserResponse ¶
type DeleteDbUserResponse struct { Result *string `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteDbUserResponse) String ¶
func (o DeleteDbUserResponse) String() string
type DeleteProcessReqBody ¶
type DeleteProcessReqBody struct { DbUserId string `json:"db_user_id"` 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 { 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
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 string `json:"id"` 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"` 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 { InstanceId string `json:"instance_id"` DatastoreType string `json:"datastore_type"` StartAt int64 `json:"start_at"` EndAt int64 `json:"end_at"` 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
type ExportSlowQueryLogsRequestXLanguageEnum ¶
type ExportSlowQueryLogsRequestXLanguageEnum struct { EN_US ExportSlowQueryLogsRequestXLanguage ZH_CN ExportSlowQueryLogsRequestXLanguage }
func GetExportSlowQueryLogsRequestXLanguageEnum ¶
func GetExportSlowQueryLogsRequestXLanguageEnum() ExportSlowQueryLogsRequestXLanguageEnum
type ExportSlowQueryLogsResponse ¶
type ExportSlowQueryLogsResponse struct { SlowLogs *[]SlowLog `json:"slow_logs,omitempty"` NextMarker *string `json:"next_marker,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ExportSlowQueryLogsResponse) String ¶
func (o ExportSlowQueryLogsResponse) String() string
type ExportSqlStatementsRequest ¶
type ExportSqlStatementsRequest struct { InstanceId string `json:"instance_id"` StartAt int64 `json:"start_at"` EndAt int64 `json:"end_at"` Limit int32 `json:"limit"` Marker *string `json:"marker,omitempty"` 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
type ExportSqlStatementsRequestXLanguageEnum ¶
type ExportSqlStatementsRequestXLanguageEnum struct { EN_US ExportSqlStatementsRequestXLanguage ZH_CN ExportSqlStatementsRequestXLanguage }
func GetExportSqlStatementsRequestXLanguageEnum ¶
func GetExportSqlStatementsRequestXLanguageEnum() ExportSqlStatementsRequestXLanguageEnum
type ExportSqlStatementsResponse ¶
type ExportSqlStatementsResponse struct { Statements *[]FullSql `json:"statements,omitempty"` 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 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"` ThreadId string `json:"thread_id"` User string `json:"user"` 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 { LockId string `json:"lock_id"` LockTrxId string `json:"lock_trx_id"` LockMode string `json:"lock_mode"` LockType string `json:"lock_type"` LockTable string `json:"lock_table"` LockIndex string `json:"lock_index"` LockSpace string `json:"lock_space"` LockPage string `json:"lock_page"` LockRec string `json:"lock_rec"` LockData string `json:"lock_data"` }
func (InnodbLock) String ¶
func (o InnodbLock) String() string
type InnodbLockWaits ¶
type InnodbLockWaits struct { RequestingTrxId string `json:"requesting_trx_id"` RequestedLockId string `json:"requested_lock_id"` BlockingTrxId string `json:"blocking_trx_id"` BlockingLockId string `json:"blocking_lock_id"` }
func (InnodbLockWaits) String ¶
func (o InnodbLockWaits) String() string
type InnodbTrx ¶
type InnodbTrx struct { TrxId string `json:"trx_id"` TrxState string `json:"trx_state"` TrxStarted string `json:"trx_started"` TrxWaitStarted string `json:"trx_wait_started"` TrxMysqlThreadId string `json:"trx_mysql_thread_id"` 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 { 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 { Versions *[]ApiVersion `json:"versions,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListApiVersionsResponse) String ¶
func (o ListApiVersionsResponse) String() string
type ListDbUsersRequest ¶
type ListDbUsersRequest struct { InstanceId string `json:"instance_id"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` 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
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 { InstanceId string `json:"instance_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
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 { InstanceId string `json:"instance_id"` DbUserId string `json:"db_user_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
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 { InstanceId string `json:"instance_id"` DbUserId string `json:"db_user_id"` User *string `json:"user,omitempty"` Database *string `json:"database,omitempty"` Offset *int32 `json:"offset,omitempty"` 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
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 { InstanceId string `json:"instance_id"` XLanguage *string `json:"X-Language,omitempty"` ObjectType ListSpaceAnalysisRequestObjectType `json:"object_type"` DatabaseId *string `json:"database_id,omitempty"` Offset *string `json:"offset,omitempty"` Limit *string `json:"limit,omitempty"` 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
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
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 { ThreadId string `json:"thread_id"` LockStatus string `json:"lock_status"` LockMode string `json:"lock_mode"` LockType string `json:"lock_type"` LockDuration string `json:"lock_duration"` 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 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 QuerySqlPlanBody ¶ added in v0.0.81
type QuerySqlPlanBody struct { DbUserId *string `json:"db_user_id,omitempty"` Database *string `json:"database,omitempty"` Sql *string `json:"sql,omitempty"` }
func (QuerySqlPlanBody) String ¶ added in v0.0.81
func (o QuerySqlPlanBody) String() string
type RegisterDbUserRequest ¶
type RegisterDbUserRequest struct { 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"` 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
type RegisterDbUserRequestXLanguageEnum ¶
type RegisterDbUserRequestXLanguageEnum struct { ZH_CN RegisterDbUserRequestXLanguage EN_US RegisterDbUserRequestXLanguage }
func GetRegisterDbUserRequestXLanguageEnum ¶
func GetRegisterDbUserRequestXLanguageEnum() RegisterDbUserRequestXLanguageEnum
type RegisterDbUserResponse ¶
type RegisterDbUserResponse struct { 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 {
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 { InstanceId string `json:"instance_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
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
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 { InstanceId string `json:"instance_id"` DbUserId string `json:"db_user_id"` Database string `json:"database"` 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
type ShowSqlExecutionPlanRequestXLanguageEnum ¶
type ShowSqlExecutionPlanRequestXLanguageEnum struct { ZH_CN ShowSqlExecutionPlanRequestXLanguage EN_US ShowSqlExecutionPlanRequestXLanguage }
func GetShowSqlExecutionPlanRequestXLanguageEnum ¶
func GetShowSqlExecutionPlanRequestXLanguageEnum() ShowSqlExecutionPlanRequestXLanguageEnum
type ShowSqlExecutionPlanResponse ¶
type ShowSqlExecutionPlanResponse struct { ExecutionPlans *[]ExecutionPlan `json:"execution_plans,omitempty"` 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 { 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
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 { ExecutionPlans *[]ExecutionPlan `json:"execution_plans,omitempty"` 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 { InstanceId string `json:"instance_id"` Type string `json:"type"` 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
type ShowSqlSwitchStatusRequestXLanguageEnum ¶
type ShowSqlSwitchStatusRequestXLanguageEnum struct { EN_US ShowSqlSwitchStatusRequestXLanguage ZH_CN ShowSqlSwitchStatusRequestXLanguage }
func GetShowSqlSwitchStatusRequestXLanguageEnum ¶
func GetShowSqlSwitchStatusRequestXLanguageEnum() ShowSqlSwitchStatusRequestXLanguageEnum
type ShowSqlSwitchStatusResponse ¶
type ShowSqlSwitchStatusResponse struct { Status *string `json:"status,omitempty"` 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 string `json:"sql"` Database string `json:"database"` Client string `json:"client"` User string `json:"user"` 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 { InstanceId string `json:"instance_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
type UpdateDbUserRequestXLanguageEnum ¶
type UpdateDbUserRequestXLanguageEnum struct { ZH_CN UpdateDbUserRequestXLanguage EN_US UpdateDbUserRequestXLanguage }
func GetUpdateDbUserRequestXLanguageEnum ¶
func GetUpdateDbUserRequestXLanguageEnum() UpdateDbUserRequestXLanguageEnum
type UpdateDbUserResponse ¶
type UpdateDbUserResponse struct { 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