v20191016

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-10-16"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateDBDiagReportTask added in v1.0.64

func (c *Client) CreateDBDiagReportTask(request *CreateDBDiagReportTaskRequest) (response *CreateDBDiagReportTaskResponse, err error)

创建健康报告,并可以选择是否发送邮件。

func (*Client) CreateMailProfile added in v1.0.64

func (c *Client) CreateMailProfile(request *CreateMailProfileRequest) (response *CreateMailProfileResponse, err error)

创建邮件配置。其中入参ProfileType表示所创建配置的类型,ProfileType 取值包括:dbScan_mail_configuration(数据库巡检邮件配置)、scheduler_mail_configuration(定期生成邮件配置)。

func (*Client) DescribeAllUserContact added in v1.0.64

func (c *Client) DescribeAllUserContact(request *DescribeAllUserContactRequest) (response *DescribeAllUserContactResponse, err error)

获取邮件发送中联系人的相关信息。

func (*Client) DescribeAllUserGroup added in v1.0.64

func (c *Client) DescribeAllUserGroup(request *DescribeAllUserGroupRequest) (response *DescribeAllUserGroupResponse, err error)

获取邮件发送联系组的相关信息。

func (*Client) DescribeDBDiagEvent

func (c *Client) DescribeDBDiagEvent(request *DescribeDBDiagEventRequest) (response *DescribeDBDiagEventResponse, err error)

获取实例异常诊断事件的详情信息。

func (*Client) DescribeDBDiagHistory

func (c *Client) DescribeDBDiagHistory(request *DescribeDBDiagHistoryRequest) (response *DescribeDBDiagHistoryResponse, err error)

获取实例诊断事件的列表。

func (*Client) DescribeDBSpaceStatus

func (c *Client) DescribeDBSpaceStatus(request *DescribeDBSpaceStatusRequest) (response *DescribeDBSpaceStatusResponse, err error)

获取指定时间段内的实例空间使用概览,包括磁盘增长量(MB)、磁盘剩余(MB)、磁盘总量(MB)及预计可用天数。

func (*Client) DescribeSlowLogTimeSeriesStats

func (c *Client) DescribeSlowLogTimeSeriesStats(request *DescribeSlowLogTimeSeriesStatsRequest) (response *DescribeSlowLogTimeSeriesStatsResponse, err error)

获取慢日志统计柱状图。

func (*Client) DescribeSlowLogTopSqls

func (c *Client) DescribeSlowLogTopSqls(request *DescribeSlowLogTopSqlsRequest) (response *DescribeSlowLogTopSqlsResponse, err error)

按照Sql模板+schema的聚合方式,统计排序指定时间段内的top慢sql。

func (*Client) DescribeTopSpaceTableTimeSeries

func (c *Client) DescribeTopSpaceTableTimeSeries(request *DescribeTopSpaceTableTimeSeriesRequest) (response *DescribeTopSpaceTableTimeSeriesResponse, err error)

获取实例占用空间最大的前几张表在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。

func (*Client) DescribeTopSpaceTables

func (c *Client) DescribeTopSpaceTables(request *DescribeTopSpaceTablesRequest) (response *DescribeTopSpaceTablesResponse, err error)

获取实例Top表的实时空间统计信息,默认返回按大小排序。

func (*Client) ModifyDiagDBInstanceConf added in v1.0.64

func (c *Client) ModifyDiagDBInstanceConf(request *ModifyDiagDBInstanceConfRequest) (response *ModifyDiagDBInstanceConfResponse, err error)

修改实例巡检开关。

type ContactItem added in v1.0.64

type ContactItem struct {

	// 联系人id。
	Id *int64 `json:"Id,omitempty" name:"Id"`

	// 联系人姓名。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 联系人绑定的邮箱。
	Mail *string `json:"Mail,omitempty" name:"Mail"`
}

type CreateDBDiagReportTaskRequest added in v1.0.64

type CreateDBDiagReportTaskRequest struct {
	*tchttp.BaseRequest

	// 实例ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 开始时间,如“2020-11-08T14:00:00+08:00”。
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 结束时间,如“2020-11-09T14:00:00+08:00”。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 是否发送邮件: 0 - 否,1 - 是。
	SendMailFlag *int64 `json:"SendMailFlag,omitempty" name:"SendMailFlag"`

	// 接收邮件的联系人ID数组。
	ContactPerson []*int64 `json:"ContactPerson,omitempty" name:"ContactPerson" list`

	// 接收邮件的联系组ID数组。
	ContactGroup []*int64 `json:"ContactGroup,omitempty" name:"ContactGroup" list`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认值为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewCreateDBDiagReportTaskRequest added in v1.0.64

func NewCreateDBDiagReportTaskRequest() (request *CreateDBDiagReportTaskRequest)

func (*CreateDBDiagReportTaskRequest) FromJsonString added in v1.0.64

func (r *CreateDBDiagReportTaskRequest) FromJsonString(s string) error

func (*CreateDBDiagReportTaskRequest) ToJsonString added in v1.0.64

func (r *CreateDBDiagReportTaskRequest) ToJsonString() string

type CreateDBDiagReportTaskResponse added in v1.0.64

type CreateDBDiagReportTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
		// 注意:此字段可能返回 null,表示取不到有效值。
		AsyncRequestId *int64 `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateDBDiagReportTaskResponse added in v1.0.64

func NewCreateDBDiagReportTaskResponse() (response *CreateDBDiagReportTaskResponse)

func (*CreateDBDiagReportTaskResponse) FromJsonString added in v1.0.64

func (r *CreateDBDiagReportTaskResponse) FromJsonString(s string) error

func (*CreateDBDiagReportTaskResponse) ToJsonString added in v1.0.64

func (r *CreateDBDiagReportTaskResponse) ToJsonString() string

type CreateMailProfileRequest added in v1.0.64

type CreateMailProfileRequest struct {
	*tchttp.BaseRequest

	// 邮件配置内容。
	ProfileInfo *ProfileInfo `json:"ProfileInfo,omitempty" name:"ProfileInfo"`

	// 配置级别,支持值包括:"User" - 用户级别,"Instance" - 实例级别,其中数据库巡检邮件配置为用户级别,定期生成邮件配置为实例级别。
	ProfileLevel *string `json:"ProfileLevel,omitempty" name:"ProfileLevel"`

	// 配置名称,需要保持唯一性,数据库巡检邮件配置名称自拟;定期生成邮件配置命名格式:"scheduler_" + {instanceId},如"schduler_cdb-test"。
	ProfileName *string `json:"ProfileName,omitempty" name:"ProfileName"`

	// 配置类型,支持值包括:"dbScan_mail_configuration" - 数据库巡检邮件配置,"scheduler_mail_configuration" - 定期生成邮件配置。
	ProfileType *string `json:"ProfileType,omitempty" name:"ProfileType"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL。
	Product *string `json:"Product,omitempty" name:"Product"`

	// 配置绑定的实例ID,当配置级别为"Instance"时需要传入。
	BindInstanceIds []*string `json:"BindInstanceIds,omitempty" name:"BindInstanceIds" list`
}

func NewCreateMailProfileRequest added in v1.0.64

func NewCreateMailProfileRequest() (request *CreateMailProfileRequest)

func (*CreateMailProfileRequest) FromJsonString added in v1.0.64

func (r *CreateMailProfileRequest) FromJsonString(s string) error

func (*CreateMailProfileRequest) ToJsonString added in v1.0.64

func (r *CreateMailProfileRequest) ToJsonString() string

type CreateMailProfileResponse added in v1.0.64

type CreateMailProfileResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateMailProfileResponse added in v1.0.64

func NewCreateMailProfileResponse() (response *CreateMailProfileResponse)

func (*CreateMailProfileResponse) FromJsonString added in v1.0.64

func (r *CreateMailProfileResponse) FromJsonString(s string) error

func (*CreateMailProfileResponse) ToJsonString added in v1.0.64

func (r *CreateMailProfileResponse) ToJsonString() string

type DescribeAllUserContactRequest added in v1.0.64

type DescribeAllUserContactRequest struct {
	*tchttp.BaseRequest

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL。
	Product *string `json:"Product,omitempty" name:"Product"`

	// 联系人名数组,支持模糊搜索。
	Names []*string `json:"Names,omitempty" name:"Names" list`
}

func NewDescribeAllUserContactRequest added in v1.0.64

func NewDescribeAllUserContactRequest() (request *DescribeAllUserContactRequest)

func (*DescribeAllUserContactRequest) FromJsonString added in v1.0.64

func (r *DescribeAllUserContactRequest) FromJsonString(s string) error

func (*DescribeAllUserContactRequest) ToJsonString added in v1.0.64

func (r *DescribeAllUserContactRequest) ToJsonString() string

type DescribeAllUserContactResponse added in v1.0.64

type DescribeAllUserContactResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 联系人的总数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 联系人的信息。
		// 注意:此字段可能返回 null,表示取不到有效值。
		Contacts []*ContactItem `json:"Contacts,omitempty" name:"Contacts" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeAllUserContactResponse added in v1.0.64

func NewDescribeAllUserContactResponse() (response *DescribeAllUserContactResponse)

func (*DescribeAllUserContactResponse) FromJsonString added in v1.0.64

func (r *DescribeAllUserContactResponse) FromJsonString(s string) error

func (*DescribeAllUserContactResponse) ToJsonString added in v1.0.64

func (r *DescribeAllUserContactResponse) ToJsonString() string

type DescribeAllUserGroupRequest added in v1.0.64

type DescribeAllUserGroupRequest struct {
	*tchttp.BaseRequest

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL。
	Product *string `json:"Product,omitempty" name:"Product"`

	// 联系组名称数组,支持模糊搜索。
	Names []*string `json:"Names,omitempty" name:"Names" list`
}

func NewDescribeAllUserGroupRequest added in v1.0.64

func NewDescribeAllUserGroupRequest() (request *DescribeAllUserGroupRequest)

func (*DescribeAllUserGroupRequest) FromJsonString added in v1.0.64

func (r *DescribeAllUserGroupRequest) FromJsonString(s string) error

func (*DescribeAllUserGroupRequest) ToJsonString added in v1.0.64

func (r *DescribeAllUserGroupRequest) ToJsonString() string

type DescribeAllUserGroupResponse added in v1.0.64

type DescribeAllUserGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 组总数。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 组信息。
		// 注意:此字段可能返回 null,表示取不到有效值。
		Groups []*GroupItem `json:"Groups,omitempty" name:"Groups" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeAllUserGroupResponse added in v1.0.64

func NewDescribeAllUserGroupResponse() (response *DescribeAllUserGroupResponse)

func (*DescribeAllUserGroupResponse) FromJsonString added in v1.0.64

func (r *DescribeAllUserGroupResponse) FromJsonString(s string) error

func (*DescribeAllUserGroupResponse) ToJsonString added in v1.0.64

func (r *DescribeAllUserGroupResponse) ToJsonString() string

type DescribeDBDiagEventRequest

type DescribeDBDiagEventRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
	EventId *int64 `json:"EventId,omitempty" name:"EventId"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewDescribeDBDiagEventRequest

func NewDescribeDBDiagEventRequest() (request *DescribeDBDiagEventRequest)

func (*DescribeDBDiagEventRequest) FromJsonString

func (r *DescribeDBDiagEventRequest) FromJsonString(s string) error

func (*DescribeDBDiagEventRequest) ToJsonString

func (r *DescribeDBDiagEventRequest) ToJsonString() string

type DescribeDBDiagEventResponse

type DescribeDBDiagEventResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 诊断项。
		DiagItem *string `json:"DiagItem,omitempty" name:"DiagItem"`

		// 诊断类型。
		DiagType *string `json:"DiagType,omitempty" name:"DiagType"`

		// 事件 ID 。
		EventId *int64 `json:"EventId,omitempty" name:"EventId"`

		// 事件详情。
		Explanation *string `json:"Explanation,omitempty" name:"Explanation"`

		// 概要。
		Outline *string `json:"Outline,omitempty" name:"Outline"`

		// 诊断出的问题。
		Problem *string `json:"Problem,omitempty" name:"Problem"`

		// 严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。
		Severity *int64 `json:"Severity,omitempty" name:"Severity"`

		// 开始时间
		StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

		// 建议。
		Suggestions *string `json:"Suggestions,omitempty" name:"Suggestions"`

		// 保留字段。
		// 注意:此字段可能返回 null,表示取不到有效值。
		Metric *string `json:"Metric,omitempty" name:"Metric"`

		// 结束时间。
		EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBDiagEventResponse

func NewDescribeDBDiagEventResponse() (response *DescribeDBDiagEventResponse)

func (*DescribeDBDiagEventResponse) FromJsonString

func (r *DescribeDBDiagEventResponse) FromJsonString(s string) error

func (*DescribeDBDiagEventResponse) ToJsonString

func (r *DescribeDBDiagEventResponse) ToJsonString() string

type DescribeDBDiagHistoryRequest

type DescribeDBDiagHistoryRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 开始时间,如“2019-09-10 12:13:14”。
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 结束时间,如“2019-09-11 12:13:14”,结束时间与开始时间的间隔最大可为2天。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewDescribeDBDiagHistoryRequest

func NewDescribeDBDiagHistoryRequest() (request *DescribeDBDiagHistoryRequest)

func (*DescribeDBDiagHistoryRequest) FromJsonString

func (r *DescribeDBDiagHistoryRequest) FromJsonString(s string) error

func (*DescribeDBDiagHistoryRequest) ToJsonString

func (r *DescribeDBDiagHistoryRequest) ToJsonString() string

type DescribeDBDiagHistoryResponse

type DescribeDBDiagHistoryResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 事件描述。
		Events []*DiagHistoryEventItem `json:"Events,omitempty" name:"Events" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBDiagHistoryResponse

func NewDescribeDBDiagHistoryResponse() (response *DescribeDBDiagHistoryResponse)

func (*DescribeDBDiagHistoryResponse) FromJsonString

func (r *DescribeDBDiagHistoryResponse) FromJsonString(s string) error

func (*DescribeDBDiagHistoryResponse) ToJsonString

func (r *DescribeDBDiagHistoryResponse) ToJsonString() string

type DescribeDBSpaceStatusRequest

type DescribeDBSpaceStatusRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 时间段天数,截止日期为当日,默认为7天。
	RangeDays *int64 `json:"RangeDays,omitempty" name:"RangeDays"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewDescribeDBSpaceStatusRequest

func NewDescribeDBSpaceStatusRequest() (request *DescribeDBSpaceStatusRequest)

func (*DescribeDBSpaceStatusRequest) FromJsonString

func (r *DescribeDBSpaceStatusRequest) FromJsonString(s string) error

func (*DescribeDBSpaceStatusRequest) ToJsonString

func (r *DescribeDBSpaceStatusRequest) ToJsonString() string

type DescribeDBSpaceStatusResponse

type DescribeDBSpaceStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 磁盘增长量(MB)。
		Growth *int64 `json:"Growth,omitempty" name:"Growth"`

		// 磁盘剩余(MB)。
		Remain *int64 `json:"Remain,omitempty" name:"Remain"`

		// 磁盘总量(MB)。
		Total *int64 `json:"Total,omitempty" name:"Total"`

		// 预计可用天数。
		AvailableDays *int64 `json:"AvailableDays,omitempty" name:"AvailableDays"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBSpaceStatusResponse

func NewDescribeDBSpaceStatusResponse() (response *DescribeDBSpaceStatusResponse)

func (*DescribeDBSpaceStatusResponse) FromJsonString

func (r *DescribeDBSpaceStatusResponse) FromJsonString(s string) error

func (*DescribeDBSpaceStatusResponse) ToJsonString

func (r *DescribeDBSpaceStatusResponse) ToJsonString() string

type DescribeSlowLogTimeSeriesStatsRequest

type DescribeSlowLogTimeSeriesStatsRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 开始时间,如“2019-09-10 12:13:14”。
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewDescribeSlowLogTimeSeriesStatsRequest

func NewDescribeSlowLogTimeSeriesStatsRequest() (request *DescribeSlowLogTimeSeriesStatsRequest)

func (*DescribeSlowLogTimeSeriesStatsRequest) FromJsonString

func (r *DescribeSlowLogTimeSeriesStatsRequest) FromJsonString(s string) error

func (*DescribeSlowLogTimeSeriesStatsRequest) ToJsonString

type DescribeSlowLogTimeSeriesStatsResponse

type DescribeSlowLogTimeSeriesStatsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 柱间单位时间间隔,单位为秒。
		Period *int64 `json:"Period,omitempty" name:"Period"`

		// 单位时间间隔内慢日志数量统计。
		TimeSeries []*TimeSlice `json:"TimeSeries,omitempty" name:"TimeSeries" list`

		// 单位时间间隔内的实例 cpu 利用率监控数据。
		SeriesData *MonitorMetricSeriesData `json:"SeriesData,omitempty" name:"SeriesData"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeSlowLogTimeSeriesStatsResponse

func NewDescribeSlowLogTimeSeriesStatsResponse() (response *DescribeSlowLogTimeSeriesStatsResponse)

func (*DescribeSlowLogTimeSeriesStatsResponse) FromJsonString

func (*DescribeSlowLogTimeSeriesStatsResponse) ToJsonString

type DescribeSlowLogTopSqlsRequest

type DescribeSlowLogTopSqlsRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 开始时间,如“2019-09-10 12:13:14”。
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 截止时间,如“2019-09-10 12:13:14”,截止时间与开始时间的间隔最大可为7天。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键。
	SortBy *string `json:"SortBy,omitempty" name:"SortBy"`

	// 排序方式,支持ASC(升序)以及DESC(降序)。
	OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`

	// 返回数量,默认为20,最大值为100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 偏移量,默认为0。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 数据库名称数组。
	SchemaList []*SchemaItem `json:"SchemaList,omitempty" name:"SchemaList" list`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewDescribeSlowLogTopSqlsRequest

func NewDescribeSlowLogTopSqlsRequest() (request *DescribeSlowLogTopSqlsRequest)

func (*DescribeSlowLogTopSqlsRequest) FromJsonString

func (r *DescribeSlowLogTopSqlsRequest) FromJsonString(s string) error

func (*DescribeSlowLogTopSqlsRequest) ToJsonString

func (r *DescribeSlowLogTopSqlsRequest) ToJsonString() string

type DescribeSlowLogTopSqlsResponse

type DescribeSlowLogTopSqlsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 符合条件的记录总数。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 慢日志 top sql 列表
		Rows []*SlowLogTopSqlItem `json:"Rows,omitempty" name:"Rows" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeSlowLogTopSqlsResponse

func NewDescribeSlowLogTopSqlsResponse() (response *DescribeSlowLogTopSqlsResponse)

func (*DescribeSlowLogTopSqlsResponse) FromJsonString

func (r *DescribeSlowLogTopSqlsResponse) FromJsonString(s string) error

func (*DescribeSlowLogTopSqlsResponse) ToJsonString

func (r *DescribeSlowLogTopSqlsResponse) ToJsonString() string

type DescribeTopSpaceTableTimeSeriesRequest

type DescribeTopSpaceTableTimeSeriesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 返回的Top表数量,最大值为20,默认为最大值。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 筛选Top表所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize,默认为 PhysicalFileSize。
	SortBy *string `json:"SortBy,omitempty" name:"SortBy"`

	// 开始日期,最早为当日的前第29天,默认为截止日期的前第6天。
	StartDate *string `json:"StartDate,omitempty" name:"StartDate"`

	// 截止日期,最早为当日的前第29天,默认为当日。
	EndDate *string `json:"EndDate,omitempty" name:"EndDate"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewDescribeTopSpaceTableTimeSeriesRequest

func NewDescribeTopSpaceTableTimeSeriesRequest() (request *DescribeTopSpaceTableTimeSeriesRequest)

func (*DescribeTopSpaceTableTimeSeriesRequest) FromJsonString

func (*DescribeTopSpaceTableTimeSeriesRequest) ToJsonString

type DescribeTopSpaceTableTimeSeriesResponse

type DescribeTopSpaceTableTimeSeriesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 返回的Top表空间统计信息的时序数据列表。
		TopSpaceTableTimeSeries []*TableSpaceTimeSeries `json:"TopSpaceTableTimeSeries,omitempty" name:"TopSpaceTableTimeSeries" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeTopSpaceTableTimeSeriesResponse

func NewDescribeTopSpaceTableTimeSeriesResponse() (response *DescribeTopSpaceTableTimeSeriesResponse)

func (*DescribeTopSpaceTableTimeSeriesResponse) FromJsonString

func (*DescribeTopSpaceTableTimeSeriesResponse) ToJsonString

type DescribeTopSpaceTablesRequest

type DescribeTopSpaceTablesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 返回的Top表数量,最大值为20,默认为最大值。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 筛选Top表所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize,默认为 PhysicalFileSize。
	SortBy *string `json:"SortBy,omitempty" name:"SortBy"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。
	Product *string `json:"Product,omitempty" name:"Product"`
}

func NewDescribeTopSpaceTablesRequest

func NewDescribeTopSpaceTablesRequest() (request *DescribeTopSpaceTablesRequest)

func (*DescribeTopSpaceTablesRequest) FromJsonString

func (r *DescribeTopSpaceTablesRequest) FromJsonString(s string) error

func (*DescribeTopSpaceTablesRequest) ToJsonString

func (r *DescribeTopSpaceTablesRequest) ToJsonString() string

type DescribeTopSpaceTablesResponse

type DescribeTopSpaceTablesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 返回的Top表空间统计信息列表。
		TopSpaceTables []*TableSpaceData `json:"TopSpaceTables,omitempty" name:"TopSpaceTables" list`

		// 采集表空间数据的时间戳(秒)。
		Timestamp *int64 `json:"Timestamp,omitempty" name:"Timestamp"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeTopSpaceTablesResponse

func NewDescribeTopSpaceTablesResponse() (response *DescribeTopSpaceTablesResponse)

func (*DescribeTopSpaceTablesResponse) FromJsonString

func (r *DescribeTopSpaceTablesResponse) FromJsonString(s string) error

func (*DescribeTopSpaceTablesResponse) ToJsonString

func (r *DescribeTopSpaceTablesResponse) ToJsonString() string

type DiagHistoryEventItem

type DiagHistoryEventItem struct {

	// 诊断类型。
	DiagType *string `json:"DiagType,omitempty" name:"DiagType"`

	// 结束时间。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 开始时间。
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 事件 ID 。
	EventId *int64 `json:"EventId,omitempty" name:"EventId"`

	// 严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。
	Severity *int64 `json:"Severity,omitempty" name:"Severity"`

	// 概要。
	Outline *string `json:"Outline,omitempty" name:"Outline"`

	// 诊断项。
	DiagItem *string `json:"DiagItem,omitempty" name:"DiagItem"`

	// 实例 ID 。
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 保留字段
	// 注意:此字段可能返回 null,表示取不到有效值。
	Metric *string `json:"Metric,omitempty" name:"Metric"`

	// 地域
	// 注意:此字段可能返回 null,表示取不到有效值。
	Region *string `json:"Region,omitempty" name:"Region"`
}

type GroupItem added in v1.0.64

type GroupItem struct {

	// 组id。
	Id *int64 `json:"Id,omitempty" name:"Id"`

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

	// 组成员数量。
	MemberCount *int64 `json:"MemberCount,omitempty" name:"MemberCount"`
}

type InstanceConfs added in v1.0.64

type InstanceConfs struct {

	// 数据库巡检开关, Yes/No。
	DailyInspection *string `json:"DailyInspection,omitempty" name:"DailyInspection"`
}

type MailConfiguration added in v1.0.64

type MailConfiguration struct {

	// 是否开启邮件发送: 0, 否; 1, 是。
	SendMail *int64 `json:"SendMail,omitempty" name:"SendMail"`

	// 地域配置, 如["ap-guangzhou", "ap-shanghai"]。
	Region []*string `json:"Region,omitempty" name:"Region" list`

	// 发送指定的健康等级的报告, 如["HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"]。
	HealthStatus []*string `json:"HealthStatus,omitempty" name:"HealthStatus" list`

	// 联系人id, 联系人/联系组不能都为空。
	ContactPerson []*int64 `json:"ContactPerson,omitempty" name:"ContactPerson" list`

	// 联系组id, 联系人/联系组不能都为空。
	ContactGroup []*int64 `json:"ContactGroup,omitempty" name:"ContactGroup" list`
}

type ModifyDiagDBInstanceConfRequest added in v1.0.64

type ModifyDiagDBInstanceConfRequest struct {
	*tchttp.BaseRequest

	// 巡检开关。
	InstanceConfs *InstanceConfs `json:"InstanceConfs,omitempty" name:"InstanceConfs"`

	// 生效实例地域,取值为"All",代表全地域。
	Regions *string `json:"Regions,omitempty" name:"Regions"`

	// 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL。
	Product *string `json:"Product,omitempty" name:"Product"`

	// 指定更改巡检状态的实例ID。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewModifyDiagDBInstanceConfRequest added in v1.0.64

func NewModifyDiagDBInstanceConfRequest() (request *ModifyDiagDBInstanceConfRequest)

func (*ModifyDiagDBInstanceConfRequest) FromJsonString added in v1.0.64

func (r *ModifyDiagDBInstanceConfRequest) FromJsonString(s string) error

func (*ModifyDiagDBInstanceConfRequest) ToJsonString added in v1.0.64

func (r *ModifyDiagDBInstanceConfRequest) ToJsonString() string

type ModifyDiagDBInstanceConfResponse added in v1.0.64

type ModifyDiagDBInstanceConfResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyDiagDBInstanceConfResponse added in v1.0.64

func NewModifyDiagDBInstanceConfResponse() (response *ModifyDiagDBInstanceConfResponse)

func (*ModifyDiagDBInstanceConfResponse) FromJsonString added in v1.0.64

func (r *ModifyDiagDBInstanceConfResponse) FromJsonString(s string) error

func (*ModifyDiagDBInstanceConfResponse) ToJsonString added in v1.0.64

func (r *ModifyDiagDBInstanceConfResponse) ToJsonString() string

type MonitorFloatMetric

type MonitorFloatMetric struct {

	// 指标名称。
	Metric *string `json:"Metric,omitempty" name:"Metric"`

	// 指标单位。
	Unit *string `json:"Unit,omitempty" name:"Unit"`

	// 指标值。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Values []*float64 `json:"Values,omitempty" name:"Values" list`
}

type MonitorFloatMetricSeriesData

type MonitorFloatMetricSeriesData struct {

	// 监控指标。
	Series []*MonitorFloatMetric `json:"Series,omitempty" name:"Series" list`

	// 监控指标对应的时间戳。
	Timestamp []*int64 `json:"Timestamp,omitempty" name:"Timestamp" list`
}

type MonitorMetric

type MonitorMetric struct {

	// 指标名称。
	Metric *string `json:"Metric,omitempty" name:"Metric"`

	// 指标单位。
	Unit *string `json:"Unit,omitempty" name:"Unit"`

	// 指标值。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Values []*int64 `json:"Values,omitempty" name:"Values" list`
}

type MonitorMetricSeriesData

type MonitorMetricSeriesData struct {

	// 监控指标。
	Series []*MonitorMetric `json:"Series,omitempty" name:"Series" list`

	// 监控指标对应的时间戳。
	Timestamp []*int64 `json:"Timestamp,omitempty" name:"Timestamp" list`
}

type ProfileInfo added in v1.0.64

type ProfileInfo struct {

	// 语言, 如"zh"。
	Language *string `json:"Language,omitempty" name:"Language"`

	// 邮件模板的内容。
	MailConfiguration *MailConfiguration `json:"MailConfiguration,omitempty" name:"MailConfiguration"`
}

type SchemaItem added in v1.0.50

type SchemaItem struct {

	// 数据库名称
	Schema *string `json:"Schema,omitempty" name:"Schema"`
}

type SlowLogTopSqlItem

type SlowLogTopSqlItem struct {

	// sql总锁等待时间
	LockTime *float64 `json:"LockTime,omitempty" name:"LockTime"`

	// 最大锁等待时间
	LockTimeMax *float64 `json:"LockTimeMax,omitempty" name:"LockTimeMax"`

	// 最小锁等待时间
	LockTimeMin *float64 `json:"LockTimeMin,omitempty" name:"LockTimeMin"`

	// 总扫描行数
	RowsExamined *int64 `json:"RowsExamined,omitempty" name:"RowsExamined"`

	// 最大扫描行数
	RowsExaminedMax *int64 `json:"RowsExaminedMax,omitempty" name:"RowsExaminedMax"`

	// 最小扫描行数
	RowsExaminedMin *int64 `json:"RowsExaminedMin,omitempty" name:"RowsExaminedMin"`

	// 总耗时
	QueryTime *float64 `json:"QueryTime,omitempty" name:"QueryTime"`

	// 最大执行时间
	QueryTimeMax *float64 `json:"QueryTimeMax,omitempty" name:"QueryTimeMax"`

	// 最小执行时间
	QueryTimeMin *float64 `json:"QueryTimeMin,omitempty" name:"QueryTimeMin"`

	// 总返回行数
	RowsSent *int64 `json:"RowsSent,omitempty" name:"RowsSent"`

	// 最大返回行数
	RowsSentMax *int64 `json:"RowsSentMax,omitempty" name:"RowsSentMax"`

	// 最小返回行数
	RowsSentMin *int64 `json:"RowsSentMin,omitempty" name:"RowsSentMin"`

	// 执行次数
	ExecTimes *int64 `json:"ExecTimes,omitempty" name:"ExecTimes"`

	// sql模板
	SqlTemplate *string `json:"SqlTemplate,omitempty" name:"SqlTemplate"`

	// 带参数SQL(随机)
	SqlText *string `json:"SqlText,omitempty" name:"SqlText"`

	// 数据库名
	Schema *string `json:"Schema,omitempty" name:"Schema"`

	// 总耗时占比
	QueryTimeRatio *float64 `json:"QueryTimeRatio,omitempty" name:"QueryTimeRatio"`

	// sql总锁等待时间占比
	LockTimeRatio *float64 `json:"LockTimeRatio,omitempty" name:"LockTimeRatio"`

	// 总扫描行数占比
	RowsExaminedRatio *float64 `json:"RowsExaminedRatio,omitempty" name:"RowsExaminedRatio"`

	// 总返回行数占比
	RowsSentRatio *float64 `json:"RowsSentRatio,omitempty" name:"RowsSentRatio"`
}

type TableSpaceData

type TableSpaceData struct {

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

	// 库名。
	TableSchema *string `json:"TableSchema,omitempty" name:"TableSchema"`

	// 库表的存储引擎。
	Engine *string `json:"Engine,omitempty" name:"Engine"`

	// 数据空间(MB)。
	DataLength *float64 `json:"DataLength,omitempty" name:"DataLength"`

	// 索引空间(MB)。
	IndexLength *float64 `json:"IndexLength,omitempty" name:"IndexLength"`

	// 碎片空间(MB)。
	DataFree *float64 `json:"DataFree,omitempty" name:"DataFree"`

	// 总使用空间(MB)。
	TotalLength *float64 `json:"TotalLength,omitempty" name:"TotalLength"`

	// 碎片率(%)。
	FragRatio *float64 `json:"FragRatio,omitempty" name:"FragRatio"`

	// 行数。
	TableRows *int64 `json:"TableRows,omitempty" name:"TableRows"`

	// 表对应的独立物理文件大小(MB)。
	PhysicalFileSize *float64 `json:"PhysicalFileSize,omitempty" name:"PhysicalFileSize"`
}

type TableSpaceTimeSeries

type TableSpaceTimeSeries struct {

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

	// 库名。
	TableSchema *string `json:"TableSchema,omitempty" name:"TableSchema"`

	// 库表的存储引擎。
	Engine *string `json:"Engine,omitempty" name:"Engine"`

	// 单位时间间隔内的空间指标数据。
	SeriesData *MonitorFloatMetricSeriesData `json:"SeriesData,omitempty" name:"SeriesData"`
}

type TimeSlice

type TimeSlice struct {

	// 总数
	Count *int64 `json:"Count,omitempty" name:"Count"`

	// 统计开始时间
	Timestamp *int64 `json:"Timestamp,omitempty" name:"Timestamp"`
}

Jump to

Keyboard shortcuts

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