v20191016

package
v3.0.959+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Error with CAM signature/authentication.
	AUTHFAILURE = "AuthFailure"

	// Operation failed.
	FAILEDOPERATION = "FailedOperation"

	// Internal error.
	INTERNALERROR = "InternalError"

	// Incorrect parameter.
	INVALIDPARAMETER = "InvalidParameter"

	// Incorrect parameter value.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// Missing parameter.
	MISSINGPARAMETER = "MissingParameter"

	// Operation denied.
	OPERATIONDENIED = "OperationDenied"

	// Error with CAM authentication.
	OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

	// The number of requests exceeds the frequency limit.
	REQUESTLIMITEXCEEDED = "RequestLimitExceeded"

	// The resource does not exist.
	RESOURCENOTFOUND = "ResourceNotFound"

	// The operation is unauthorized.
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

	// Unknown parameter.
	UNKNOWNPARAMETER = "UnknownParameter"

	// Unsupported operation.
	UNSUPPORTEDOPERATION = "UnsupportedOperation"
)
View Source
const APIVersion = "2019-10-16"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUserContactRequest

type AddUserContactRequest struct {
	*tchttp.BaseRequest

	// Contact name, which needs to be unique and can contain 2-60 characters, supporting uppercase and lowercase letters, numbers, and underline “_”. It cannot start with “_”.
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Email address, which can contain uppercase and lowercase letters, numbers, and underline “_”, and cannot start with “_”.
	ContactInfo *string `json:"ContactInfo,omitnil,omitempty" name:"ContactInfo"`

	// Service type, which is fixed to “mysql”.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewAddUserContactRequest

func NewAddUserContactRequest() (request *AddUserContactRequest)

func (*AddUserContactRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddUserContactRequest) ToJsonString

func (r *AddUserContactRequest) ToJsonString() string

type AddUserContactRequestParams

type AddUserContactRequestParams struct {
	// Contact name, which needs to be unique and can contain 2-60 characters, supporting uppercase and lowercase letters, numbers, and underline “_”. It cannot start with “_”.
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Email address, which can contain uppercase and lowercase letters, numbers, and underline “_”, and cannot start with “_”.
	ContactInfo *string `json:"ContactInfo,omitnil,omitempty" name:"ContactInfo"`

	// Service type, which is fixed to “mysql”.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type AddUserContactResponse

type AddUserContactResponse struct {
	*tchttp.BaseResponse
	Response *AddUserContactResponseParams `json:"Response"`
}

func NewAddUserContactResponse

func NewAddUserContactResponse() (response *AddUserContactResponse)

func (*AddUserContactResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddUserContactResponse) ToJsonString

func (r *AddUserContactResponse) ToJsonString() string

type AddUserContactResponseParams

type AddUserContactResponseParams struct {
	// The successfully added contact ID
	Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Client

type Client struct {
	common.Client
}

func NewClient

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

func NewClientWithSecretId

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

Deprecated

func (*Client) AddUserContact

func (c *Client) AddUserContact(request *AddUserContactRequest) (response *AddUserContactResponse, err error)

AddUserContact This API is used to add the contact name and email.. The return value is the successfully added contact ID. Select Guangzhou for Region.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) AddUserContactWithContext

func (c *Client) AddUserContactWithContext(ctx context.Context, request *AddUserContactRequest) (response *AddUserContactResponse, err error)

AddUserContact This API is used to add the contact name and email.. The return value is the successfully added contact ID. Select Guangzhou for Region.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) CreateDBDiagReportTask

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

CreateDBDiagReportTask This API is used to create a health report and send it via email as configured.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) CreateDBDiagReportTaskWithContext

func (c *Client) CreateDBDiagReportTaskWithContext(ctx context.Context, request *CreateDBDiagReportTaskRequest) (response *CreateDBDiagReportTaskResponse, err error)

CreateDBDiagReportTask This API is used to create a health report and send it via email as configured.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) CreateDBDiagReportUrl

func (c *Client) CreateDBDiagReportUrl(request *CreateDBDiagReportUrlRequest) (response *CreateDBDiagReportUrlResponse, err error)

CreateDBDiagReportUrl This API is used to create a URL for a health report.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) CreateDBDiagReportUrlWithContext

func (c *Client) CreateDBDiagReportUrlWithContext(ctx context.Context, request *CreateDBDiagReportUrlRequest) (response *CreateDBDiagReportUrlResponse, err error)

CreateDBDiagReportUrl This API is used to create a URL for a health report.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) CreateMailProfile

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

CreateMailProfile This API is used to create the email configuration. The input parameter `ProfileType` represents the type of the email configuration. Valid values: `dbScan_mail_configuration` (email configuration of database inspection report) and `scheduler_mail_configuration` (email sending configuration of regularly generated health report). Select Guangzhou for Region, regardless of the region where the instance belongs.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) CreateMailProfileWithContext

func (c *Client) CreateMailProfileWithContext(ctx context.Context, request *CreateMailProfileRequest) (response *CreateMailProfileResponse, err error)

CreateMailProfile This API is used to create the email configuration. The input parameter `ProfileType` represents the type of the email configuration. Valid values: `dbScan_mail_configuration` (email configuration of database inspection report) and `scheduler_mail_configuration` (email sending configuration of regularly generated health report). Select Guangzhou for Region, regardless of the region where the instance belongs.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) CreateSchedulerMailProfile

func (c *Client) CreateSchedulerMailProfile(request *CreateSchedulerMailProfileRequest) (response *CreateSchedulerMailProfileResponse, err error)

CreateSchedulerMailProfile This API is used to create the regular generation time of the health reports and the regular email sending configuration. Pass in the regular generation time of the health reports as a parameter (Monday to Sunday) to set the regular generation time of the health reports, and save the corresponding regular email sending configuration.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) CreateSchedulerMailProfileWithContext

func (c *Client) CreateSchedulerMailProfileWithContext(ctx context.Context, request *CreateSchedulerMailProfileRequest) (response *CreateSchedulerMailProfileResponse, err error)

CreateSchedulerMailProfile This API is used to create the regular generation time of the health reports and the regular email sending configuration. Pass in the regular generation time of the health reports as a parameter (Monday to Sunday) to set the regular generation time of the health reports, and save the corresponding regular email sending configuration.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) DescribeAllUserContact

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

DescribeAllUserContact This API is used to obtain the information of the contact in the email.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeAllUserContactWithContext

func (c *Client) DescribeAllUserContactWithContext(ctx context.Context, request *DescribeAllUserContactRequest) (response *DescribeAllUserContactResponse, err error)

DescribeAllUserContact This API is used to obtain the information of the contact in the email.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeAllUserGroup

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

DescribeAllUserGroup This API is used to obtain the information of the contact group in the email.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeAllUserGroupWithContext

func (c *Client) DescribeAllUserGroupWithContext(ctx context.Context, request *DescribeAllUserGroupRequest) (response *DescribeAllUserGroupResponse, err error)

DescribeAllUserGroup This API is used to obtain the information of the contact group in the email.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeDBDiagEvent

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

DescribeDBDiagEvent This API is used to get the details of an instance exception diagnosis event.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeDBDiagEventWithContext

func (c *Client) DescribeDBDiagEventWithContext(ctx context.Context, request *DescribeDBDiagEventRequest) (response *DescribeDBDiagEventResponse, err error)

DescribeDBDiagEvent This API is used to get the details of an instance exception diagnosis event.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeDBDiagHistory

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

DescribeDBDiagHistory This API is used to get the list of instance diagnosis events.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeDBDiagHistoryWithContext

func (c *Client) DescribeDBDiagHistoryWithContext(ctx context.Context, request *DescribeDBDiagHistoryRequest) (response *DescribeDBDiagHistoryResponse, err error)

DescribeDBDiagHistory This API is used to get the list of instance diagnosis events.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeDBDiagReportTasks

func (c *Client) DescribeDBDiagReportTasks(request *DescribeDBDiagReportTasksRequest) (response *DescribeDBDiagReportTasksResponse, err error)

DescribeDBDiagReportTasks This API is used to query the list of health report generation tasks.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeDBDiagReportTasksWithContext

func (c *Client) DescribeDBDiagReportTasksWithContext(ctx context.Context, request *DescribeDBDiagReportTasksRequest) (response *DescribeDBDiagReportTasksResponse, err error)

DescribeDBDiagReportTasks This API is used to query the list of health report generation tasks.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeDBSpaceStatus

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

DescribeDBSpaceStatus This API is used to query the overview of instance space usage during a specified time period, including disk usage growth (MB), available disk space (MB), total disk space (MB), and estimated number of available days.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeDBSpaceStatusWithContext

func (c *Client) DescribeDBSpaceStatusWithContext(ctx context.Context, request *DescribeDBSpaceStatusRequest) (response *DescribeDBSpaceStatusResponse, err error)

DescribeDBSpaceStatus This API is used to query the overview of instance space usage during a specified time period, including disk usage growth (MB), available disk space (MB), total disk space (MB), and estimated number of available days.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeDiagDBInstances

func (c *Client) DescribeDiagDBInstances(request *DescribeDiagDBInstancesRequest) (response *DescribeDiagDBInstancesResponse, err error)

DescribeDiagDBInstances This API is used to obtain the instance information list. Select Guangzhou for Region.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeDiagDBInstancesWithContext

func (c *Client) DescribeDiagDBInstancesWithContext(ctx context.Context, request *DescribeDiagDBInstancesRequest) (response *DescribeDiagDBInstancesResponse, err error)

DescribeDiagDBInstances This API is used to obtain the instance information list. Select Guangzhou for Region.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeHealthScore

func (c *Client) DescribeHealthScore(request *DescribeHealthScoreRequest) (response *DescribeHealthScoreResponse, err error)

DescribeHealthScore This API is used to obtain the health score and deduction for exceptions in the specified time period (30 minutes) based on the instance ID.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) DescribeHealthScoreWithContext

func (c *Client) DescribeHealthScoreWithContext(ctx context.Context, request *DescribeHealthScoreRequest) (response *DescribeHealthScoreResponse, err error)

DescribeHealthScore This API is used to obtain the health score and deduction for exceptions in the specified time period (30 minutes) based on the instance ID.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) DescribeMailProfile

func (c *Client) DescribeMailProfile(request *DescribeMailProfileRequest) (response *DescribeMailProfileResponse, err error)

DescribeMailProfile This API is used to obtain the email sending configurations, including the email configuration for database inspection and the email sending configuration for regularly generated health reports. Select Guangzhou for Region.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeMailProfileWithContext

func (c *Client) DescribeMailProfileWithContext(ctx context.Context, request *DescribeMailProfileRequest) (response *DescribeMailProfileResponse, err error)

DescribeMailProfile This API is used to obtain the email sending configurations, including the email configuration for database inspection and the email sending configuration for regularly generated health reports. Select Guangzhou for Region.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeSlowLogTimeSeriesStats

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

DescribeSlowLogTimeSeriesStats This API is used to get the slow log statistics histogram.

error code that may be returned:

OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeSlowLogTimeSeriesStatsWithContext

func (c *Client) DescribeSlowLogTimeSeriesStatsWithContext(ctx context.Context, request *DescribeSlowLogTimeSeriesStatsRequest) (response *DescribeSlowLogTimeSeriesStatsResponse, err error)

DescribeSlowLogTimeSeriesStats This API is used to get the slow log statistics histogram.

error code that may be returned:

OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeSlowLogTopSqls

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

DescribeSlowLogTopSqls This API is used to get and sort the top slow SQL statements in a specified time period by the aggregation mode of SQL template plus schema.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeSlowLogTopSqlsWithContext

func (c *Client) DescribeSlowLogTopSqlsWithContext(ctx context.Context, request *DescribeSlowLogTopSqlsRequest) (response *DescribeSlowLogTopSqlsResponse, err error)

DescribeSlowLogTopSqls This API is used to get and sort the top slow SQL statements in a specified time period by the aggregation mode of SQL template plus schema.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeSlowLogUserHostStats

func (c *Client) DescribeSlowLogUserHostStats(request *DescribeSlowLogUserHostStatsRequest) (response *DescribeSlowLogUserHostStatsResponse, err error)

DescribeSlowLogUserHostStats This API is used to obtain the statistical distribution chart of slow log source addresses.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeSlowLogUserHostStatsWithContext

func (c *Client) DescribeSlowLogUserHostStatsWithContext(ctx context.Context, request *DescribeSlowLogUserHostStatsRequest) (response *DescribeSlowLogUserHostStatsResponse, err error)

DescribeSlowLogUserHostStats This API is used to obtain the statistical distribution chart of slow log source addresses.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeTopSpaceSchemaTimeSeries

func (c *Client) DescribeTopSpaceSchemaTimeSeries(request *DescribeTopSpaceSchemaTimeSeriesRequest) (response *DescribeTopSpaceSchemaTimeSeriesResponse, err error)

DescribeTopSpaceSchemaTimeSeries This API is used to query the daily space data of top databases consuming the most instance space. The data is daily collected by DBbrain during a specified time period. The return results are sorted by size by default.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeTopSpaceSchemaTimeSeriesWithContext

func (c *Client) DescribeTopSpaceSchemaTimeSeriesWithContext(ctx context.Context, request *DescribeTopSpaceSchemaTimeSeriesRequest) (response *DescribeTopSpaceSchemaTimeSeriesResponse, err error)

DescribeTopSpaceSchemaTimeSeries This API is used to query the daily space data of top databases consuming the most instance space. The data is daily collected by DBbrain during a specified time period. The return results are sorted by size by default.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeTopSpaceSchemas

func (c *Client) DescribeTopSpaceSchemas(request *DescribeTopSpaceSchemasRequest) (response *DescribeTopSpaceSchemasResponse, err error)

DescribeTopSpaceSchemas This API is used to query real-time space statistics of top databases. The return results are sorted by size by default.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeTopSpaceSchemasWithContext

func (c *Client) DescribeTopSpaceSchemasWithContext(ctx context.Context, request *DescribeTopSpaceSchemasRequest) (response *DescribeTopSpaceSchemasResponse, err error)

DescribeTopSpaceSchemas This API is used to query real-time space statistics of top databases. The return results are sorted by size by default.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeTopSpaceTableTimeSeries

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

DescribeTopSpaceTableTimeSeries This API is used to query the daily space data of top tables consuming the most instance space. The data is daily collected by DBbrain during a specified time period. The return results are sorted by size by default.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeTopSpaceTableTimeSeriesWithContext

func (c *Client) DescribeTopSpaceTableTimeSeriesWithContext(ctx context.Context, request *DescribeTopSpaceTableTimeSeriesRequest) (response *DescribeTopSpaceTableTimeSeriesResponse, err error)

DescribeTopSpaceTableTimeSeries This API is used to query the daily space data of top tables consuming the most instance space. The data is daily collected by DBbrain during a specified time period. The return results are sorted by size by default.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeTopSpaceTables

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

DescribeTopSpaceTables This API is used to query real-time space statistics of top tables of an instance. The return results are sorted by size by default.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeTopSpaceTablesWithContext

func (c *Client) DescribeTopSpaceTablesWithContext(ctx context.Context, request *DescribeTopSpaceTablesRequest) (response *DescribeTopSpaceTablesResponse, err error)

DescribeTopSpaceTables This API is used to query real-time space statistics of top tables of an instance. The return results are sorted by size by default.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeUserSqlAdvice

func (c *Client) DescribeUserSqlAdvice(request *DescribeUserSqlAdviceRequest) (response *DescribeUserSqlAdviceResponse, err error)

DescribeUserSqlAdvice This API is used to obtain SQL statement optimization suggestions.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) DescribeUserSqlAdviceWithContext

func (c *Client) DescribeUserSqlAdviceWithContext(ctx context.Context, request *DescribeUserSqlAdviceRequest) (response *DescribeUserSqlAdviceResponse, err error)

DescribeUserSqlAdvice This API is used to obtain SQL statement optimization suggestions.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_USERHASNOSTRATEGY = "OperationDenied.UserHasNoStrategy"

func (*Client) ModifyDiagDBInstanceConf

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

ModifyDiagDBInstanceConf This API is used to enable/disable instance inspection.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) ModifyDiagDBInstanceConfWithContext

func (c *Client) ModifyDiagDBInstanceConfWithContext(ctx context.Context, request *ModifyDiagDBInstanceConfRequest) (response *ModifyDiagDBInstanceConfResponse, err error)

ModifyDiagDBInstanceConf This API is used to enable/disable instance inspection.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
UNKNOWNPARAMETER = "UnknownParameter"

type ContactItem

type ContactItem struct {
	// Contact ID.
	Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`

	// Contact name.
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// The email address of the contact.
	Mail *string `json:"Mail,omitnil,omitempty" name:"Mail"`
}

type CreateDBDiagReportTaskRequest

type CreateDBDiagReportTaskRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as `2020-11-08T14:00:00+08:00`.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as `2020-11-09T14:00:00+08:00`.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Whether to send an email. Valid values: 0 - Yes, 1 - No.
	SendMailFlag *int64 `json:"SendMailFlag,omitnil,omitempty" name:"SendMailFlag"`

	// An array of contact IDs to receive the email.
	ContactPerson []*int64 `json:"ContactPerson,omitnil,omitempty" name:"ContactPerson"`

	// An array of contact group IDs to receive the email.
	ContactGroup []*int64 `json:"ContactGroup,omitnil,omitempty" name:"ContactGroup"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewCreateDBDiagReportTaskRequest

func NewCreateDBDiagReportTaskRequest() (request *CreateDBDiagReportTaskRequest)

func (*CreateDBDiagReportTaskRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDBDiagReportTaskRequest) ToJsonString

func (r *CreateDBDiagReportTaskRequest) ToJsonString() string

type CreateDBDiagReportTaskRequestParams

type CreateDBDiagReportTaskRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as `2020-11-08T14:00:00+08:00`.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as `2020-11-09T14:00:00+08:00`.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Whether to send an email. Valid values: 0 - Yes, 1 - No.
	SendMailFlag *int64 `json:"SendMailFlag,omitnil,omitempty" name:"SendMailFlag"`

	// An array of contact IDs to receive the email.
	ContactPerson []*int64 `json:"ContactPerson,omitnil,omitempty" name:"ContactPerson"`

	// An array of contact group IDs to receive the email.
	ContactGroup []*int64 `json:"ContactGroup,omitnil,omitempty" name:"ContactGroup"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type CreateDBDiagReportTaskResponse

type CreateDBDiagReportTaskResponse struct {
	*tchttp.BaseResponse
	Response *CreateDBDiagReportTaskResponseParams `json:"Response"`
}

func NewCreateDBDiagReportTaskResponse

func NewCreateDBDiagReportTaskResponse() (response *CreateDBDiagReportTaskResponse)

func (*CreateDBDiagReportTaskResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDBDiagReportTaskResponse) ToJsonString

func (r *CreateDBDiagReportTaskResponse) ToJsonString() string

type CreateDBDiagReportTaskResponseParams

type CreateDBDiagReportTaskResponseParams struct {
	// ID of an async task request, which can be used to query the execution result of an async task.
	// Note: this field may return `null`, indicating that no valid value is obtained.
	AsyncRequestId *int64 `json:"AsyncRequestId,omitnil,omitempty" name:"AsyncRequestId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateDBDiagReportUrlRequest

type CreateDBDiagReportUrlRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// The health report task ID, which can be queried through `DescribeDBDiagReportTasks`.
	AsyncRequestId *int64 `json:"AsyncRequestId,omitnil,omitempty" name:"AsyncRequestId"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewCreateDBDiagReportUrlRequest

func NewCreateDBDiagReportUrlRequest() (request *CreateDBDiagReportUrlRequest)

func (*CreateDBDiagReportUrlRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDBDiagReportUrlRequest) ToJsonString

func (r *CreateDBDiagReportUrlRequest) ToJsonString() string

type CreateDBDiagReportUrlRequestParams

type CreateDBDiagReportUrlRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// The health report task ID, which can be queried through `DescribeDBDiagReportTasks`.
	AsyncRequestId *int64 `json:"AsyncRequestId,omitnil,omitempty" name:"AsyncRequestId"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type CreateDBDiagReportUrlResponse

type CreateDBDiagReportUrlResponse struct {
	*tchttp.BaseResponse
	Response *CreateDBDiagReportUrlResponseParams `json:"Response"`
}

func NewCreateDBDiagReportUrlResponse

func NewCreateDBDiagReportUrlResponse() (response *CreateDBDiagReportUrlResponse)

func (*CreateDBDiagReportUrlResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDBDiagReportUrlResponse) ToJsonString

func (r *CreateDBDiagReportUrlResponse) ToJsonString() string

type CreateDBDiagReportUrlResponseParams

type CreateDBDiagReportUrlResponseParams struct {
	// The URL of the health report.
	ReportUrl *string `json:"ReportUrl,omitnil,omitempty" name:"ReportUrl"`

	// The expiration timestamp of the health report URL (in seconds).
	ExpireTime *int64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateMailProfileRequest

type CreateMailProfileRequest struct {
	*tchttp.BaseRequest

	// Email configurations
	ProfileInfo *ProfileInfo `json:"ProfileInfo,omitnil,omitempty" name:"ProfileInfo"`

	// Configuration level. Valid values: "User" (user-level), "Instance" (instance-level). For database inspection report, it should be `User`; and for scheduled task reports, it should be `Instance`.
	ProfileLevel *string `json:"ProfileLevel,omitnil,omitempty" name:"ProfileLevel"`

	// Configuration name, which needs to be unique. For database inspection reports, this name can be customize as needed. For scheduled task reports, the name should be in the format of "scheduler_" + {instanceId}, such as "schduler_cdb-test".
	ProfileName *string `json:"ProfileName,omitnil,omitempty" name:"ProfileName"`

	// Configuration type. Valid values: "dbScan_mail_configuration" (email configuration of database inspection report), "scheduler_mail_configuration" (email configuration of scheduled task report).
	ProfileType *string `json:"ProfileType,omitnil,omitempty" name:"ProfileType"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)).
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Instance ID bound with the configuration, which is set when the configuration level is "Instance". Only one instance can be bound at a time. When the configuration level is “User”, leave this parameter empty.
	BindInstanceIds []*string `json:"BindInstanceIds,omitnil,omitempty" name:"BindInstanceIds"`
}

func NewCreateMailProfileRequest

func NewCreateMailProfileRequest() (request *CreateMailProfileRequest)

func (*CreateMailProfileRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateMailProfileRequest) ToJsonString

func (r *CreateMailProfileRequest) ToJsonString() string

type CreateMailProfileRequestParams

type CreateMailProfileRequestParams struct {
	// Email configurations
	ProfileInfo *ProfileInfo `json:"ProfileInfo,omitnil,omitempty" name:"ProfileInfo"`

	// Configuration level. Valid values: "User" (user-level), "Instance" (instance-level). For database inspection report, it should be `User`; and for scheduled task reports, it should be `Instance`.
	ProfileLevel *string `json:"ProfileLevel,omitnil,omitempty" name:"ProfileLevel"`

	// Configuration name, which needs to be unique. For database inspection reports, this name can be customize as needed. For scheduled task reports, the name should be in the format of "scheduler_" + {instanceId}, such as "schduler_cdb-test".
	ProfileName *string `json:"ProfileName,omitnil,omitempty" name:"ProfileName"`

	// Configuration type. Valid values: "dbScan_mail_configuration" (email configuration of database inspection report), "scheduler_mail_configuration" (email configuration of scheduled task report).
	ProfileType *string `json:"ProfileType,omitnil,omitempty" name:"ProfileType"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)).
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Instance ID bound with the configuration, which is set when the configuration level is "Instance". Only one instance can be bound at a time. When the configuration level is “User”, leave this parameter empty.
	BindInstanceIds []*string `json:"BindInstanceIds,omitnil,omitempty" name:"BindInstanceIds"`
}

Predefined struct for user

type CreateMailProfileResponse

type CreateMailProfileResponse struct {
	*tchttp.BaseResponse
	Response *CreateMailProfileResponseParams `json:"Response"`
}

func NewCreateMailProfileResponse

func NewCreateMailProfileResponse() (response *CreateMailProfileResponse)

func (*CreateMailProfileResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateMailProfileResponse) ToJsonString

func (r *CreateMailProfileResponse) ToJsonString() string

type CreateMailProfileResponseParams

type CreateMailProfileResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateSchedulerMailProfileRequest

type CreateSchedulerMailProfileRequest struct {
	*tchttp.BaseRequest

	// Value range: 1-7, representing Monday to Sunday respectively.
	WeekConfiguration []*int64 `json:"WeekConfiguration,omitnil,omitempty" name:"WeekConfiguration"`

	// Email configurations
	ProfileInfo *ProfileInfo `json:"ProfileInfo,omitnil,omitempty" name:"ProfileInfo"`

	// Configuration name, which needs to be unique. For scheduled task reports, the name should be in the format of "scheduler_" + {instanceId}, such as "schduler_cdb-test".
	ProfileName *string `json:"ProfileName,omitnil,omitempty" name:"ProfileName"`

	// Configure the instance ID that you need to generate the health report.
	BindInstanceId *string `json:"BindInstanceId,omitnil,omitempty" name:"BindInstanceId"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewCreateSchedulerMailProfileRequest

func NewCreateSchedulerMailProfileRequest() (request *CreateSchedulerMailProfileRequest)

func (*CreateSchedulerMailProfileRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateSchedulerMailProfileRequest) ToJsonString

func (r *CreateSchedulerMailProfileRequest) ToJsonString() string

type CreateSchedulerMailProfileRequestParams

type CreateSchedulerMailProfileRequestParams struct {
	// Value range: 1-7, representing Monday to Sunday respectively.
	WeekConfiguration []*int64 `json:"WeekConfiguration,omitnil,omitempty" name:"WeekConfiguration"`

	// Email configurations
	ProfileInfo *ProfileInfo `json:"ProfileInfo,omitnil,omitempty" name:"ProfileInfo"`

	// Configuration name, which needs to be unique. For scheduled task reports, the name should be in the format of "scheduler_" + {instanceId}, such as "schduler_cdb-test".
	ProfileName *string `json:"ProfileName,omitnil,omitempty" name:"ProfileName"`

	// Configure the instance ID that you need to generate the health report.
	BindInstanceId *string `json:"BindInstanceId,omitnil,omitempty" name:"BindInstanceId"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type CreateSchedulerMailProfileResponse

type CreateSchedulerMailProfileResponse struct {
	*tchttp.BaseResponse
	Response *CreateSchedulerMailProfileResponseParams `json:"Response"`
}

func NewCreateSchedulerMailProfileResponse

func NewCreateSchedulerMailProfileResponse() (response *CreateSchedulerMailProfileResponse)

func (*CreateSchedulerMailProfileResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateSchedulerMailProfileResponse) ToJsonString

func (r *CreateSchedulerMailProfileResponse) ToJsonString() string

type CreateSchedulerMailProfileResponseParams

type CreateSchedulerMailProfileResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeAllUserContactRequest

type DescribeAllUserContactRequest struct {
	*tchttp.BaseRequest

	// Service type, which is fixed to “mysql”.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// An array of contact name. Fuzzy search is supported.
	Names []*string `json:"Names,omitnil,omitempty" name:"Names"`
}

func NewDescribeAllUserContactRequest

func NewDescribeAllUserContactRequest() (request *DescribeAllUserContactRequest)

func (*DescribeAllUserContactRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAllUserContactRequest) ToJsonString

func (r *DescribeAllUserContactRequest) ToJsonString() string

type DescribeAllUserContactRequestParams

type DescribeAllUserContactRequestParams struct {
	// Service type, which is fixed to “mysql”.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// An array of contact name. Fuzzy search is supported.
	Names []*string `json:"Names,omitnil,omitempty" name:"Names"`
}

Predefined struct for user

type DescribeAllUserContactResponse

type DescribeAllUserContactResponse struct {
	*tchttp.BaseResponse
	Response *DescribeAllUserContactResponseParams `json:"Response"`
}

func NewDescribeAllUserContactResponse

func NewDescribeAllUserContactResponse() (response *DescribeAllUserContactResponse)

func (*DescribeAllUserContactResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAllUserContactResponse) ToJsonString

func (r *DescribeAllUserContactResponse) ToJsonString() string

type DescribeAllUserContactResponseParams

type DescribeAllUserContactResponseParams struct {
	// Total number of contacts.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Contact information.
	// Note: this field may return `null`, indicating that no valid value is obtained.
	Contacts []*ContactItem `json:"Contacts,omitnil,omitempty" name:"Contacts"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeAllUserGroupRequest

type DescribeAllUserGroupRequest struct {
	*tchttp.BaseRequest

	// Service type, which is fixed to “mysql”.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// An array of contact group name. Fuzzy search is supported.
	Names []*string `json:"Names,omitnil,omitempty" name:"Names"`
}

func NewDescribeAllUserGroupRequest

func NewDescribeAllUserGroupRequest() (request *DescribeAllUserGroupRequest)

func (*DescribeAllUserGroupRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAllUserGroupRequest) ToJsonString

func (r *DescribeAllUserGroupRequest) ToJsonString() string

type DescribeAllUserGroupRequestParams

type DescribeAllUserGroupRequestParams struct {
	// Service type, which is fixed to “mysql”.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// An array of contact group name. Fuzzy search is supported.
	Names []*string `json:"Names,omitnil,omitempty" name:"Names"`
}

Predefined struct for user

type DescribeAllUserGroupResponse

type DescribeAllUserGroupResponse struct {
	*tchttp.BaseResponse
	Response *DescribeAllUserGroupResponseParams `json:"Response"`
}

func NewDescribeAllUserGroupResponse

func NewDescribeAllUserGroupResponse() (response *DescribeAllUserGroupResponse)

func (*DescribeAllUserGroupResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAllUserGroupResponse) ToJsonString

func (r *DescribeAllUserGroupResponse) ToJsonString() string

type DescribeAllUserGroupResponseParams

type DescribeAllUserGroupResponseParams struct {
	// Total number of contact groups.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Contact group information.
	// Note: this field may return `null`, indicating that no valid value is obtained.
	Groups []*GroupItem `json:"Groups,omitnil,omitempty" name:"Groups"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDBDiagEventRequest

type DescribeDBDiagEventRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Event ID, which can be obtained through the `DescribeDBDiagHistory` API.
	EventId *int64 `json:"EventId,omitnil,omitempty" name:"EventId"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeDBDiagEventRequest

func NewDescribeDBDiagEventRequest() (request *DescribeDBDiagEventRequest)

func (*DescribeDBDiagEventRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBDiagEventRequest) ToJsonString

func (r *DescribeDBDiagEventRequest) ToJsonString() string

type DescribeDBDiagEventRequestParams

type DescribeDBDiagEventRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Event ID, which can be obtained through the `DescribeDBDiagHistory` API.
	EventId *int64 `json:"EventId,omitnil,omitempty" name:"EventId"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeDBDiagEventResponse

type DescribeDBDiagEventResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBDiagEventResponseParams `json:"Response"`
}

func NewDescribeDBDiagEventResponse

func NewDescribeDBDiagEventResponse() (response *DescribeDBDiagEventResponse)

func (*DescribeDBDiagEventResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBDiagEventResponse) ToJsonString

func (r *DescribeDBDiagEventResponse) ToJsonString() string

type DescribeDBDiagEventResponseParams

type DescribeDBDiagEventResponseParams struct {
	// Diagnosis item.
	DiagItem *string `json:"DiagItem,omitnil,omitempty" name:"DiagItem"`

	// Diagnosis type.
	DiagType *string `json:"DiagType,omitnil,omitempty" name:"DiagType"`

	// Event ID.
	EventId *int64 `json:"EventId,omitnil,omitempty" name:"EventId"`

	// Event details.
	Explanation *string `json:"Explanation,omitnil,omitempty" name:"Explanation"`

	// Summary.
	Outline *string `json:"Outline,omitnil,omitempty" name:"Outline"`

	// Problem found.
	Problem *string `json:"Problem,omitnil,omitempty" name:"Problem"`

	// Severity, which can be divided into 5 levels: 1: fatal, 2: severe, 3: warning, 4: notice, 5: healthy.
	Severity *int64 `json:"Severity,omitnil,omitempty" name:"Severity"`

	// Start time
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Suggestion.
	Suggestions *string `json:"Suggestions,omitnil,omitempty" name:"Suggestions"`

	// Reserved field.
	// Note: this field may return null, indicating that no valid values can be obtained.
	Metric *string `json:"Metric,omitnil,omitempty" name:"Metric"`

	// End time.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDBDiagHistoryRequest

type DescribeDBDiagHistoryRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as "2019-09-10 12:13:14".
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as "2019-09-11 12:13:14". The interval between the end time and the start time can be up to 2 days.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeDBDiagHistoryRequest

func NewDescribeDBDiagHistoryRequest() (request *DescribeDBDiagHistoryRequest)

func (*DescribeDBDiagHistoryRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBDiagHistoryRequest) ToJsonString

func (r *DescribeDBDiagHistoryRequest) ToJsonString() string

type DescribeDBDiagHistoryRequestParams

type DescribeDBDiagHistoryRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as "2019-09-10 12:13:14".
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as "2019-09-11 12:13:14". The interval between the end time and the start time can be up to 2 days.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeDBDiagHistoryResponse

type DescribeDBDiagHistoryResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBDiagHistoryResponseParams `json:"Response"`
}

func NewDescribeDBDiagHistoryResponse

func NewDescribeDBDiagHistoryResponse() (response *DescribeDBDiagHistoryResponse)

func (*DescribeDBDiagHistoryResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBDiagHistoryResponse) ToJsonString

func (r *DescribeDBDiagHistoryResponse) ToJsonString() string

type DescribeDBDiagHistoryResponseParams

type DescribeDBDiagHistoryResponseParams struct {
	// Event description.
	Events []*DiagHistoryEventItem `json:"Events,omitnil,omitempty" name:"Events"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDBDiagReportTasksRequest

type DescribeDBDiagReportTasksRequest struct {
	*tchttp.BaseRequest

	// Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Instance ID array, which is used to filter the task list of a specified instance.
	InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`

	// Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
	Sources []*string `json:"Sources,omitnil,omitempty" name:"Sources"`

	// Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
	HealthLevels *string `json:"HealthLevels,omitnil,omitempty" name:"HealthLevels"`

	// The task status. Valid values: `created` (create), `chosen` (to be executed), `running` (being executed), `failed` (failed), and `finished` (completed).
	TaskStatuses *string `json:"TaskStatuses,omitnil,omitempty" name:"TaskStatuses"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeDBDiagReportTasksRequest

func NewDescribeDBDiagReportTasksRequest() (request *DescribeDBDiagReportTasksRequest)

func (*DescribeDBDiagReportTasksRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBDiagReportTasksRequest) ToJsonString

func (r *DescribeDBDiagReportTasksRequest) ToJsonString() string

type DescribeDBDiagReportTasksRequestParams

type DescribeDBDiagReportTasksRequestParams struct {
	// Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Instance ID array, which is used to filter the task list of a specified instance.
	InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`

	// Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
	Sources []*string `json:"Sources,omitnil,omitempty" name:"Sources"`

	// Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
	HealthLevels *string `json:"HealthLevels,omitnil,omitempty" name:"HealthLevels"`

	// The task status. Valid values: `created` (create), `chosen` (to be executed), `running` (being executed), `failed` (failed), and `finished` (completed).
	TaskStatuses *string `json:"TaskStatuses,omitnil,omitempty" name:"TaskStatuses"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeDBDiagReportTasksResponse

type DescribeDBDiagReportTasksResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBDiagReportTasksResponseParams `json:"Response"`
}

func NewDescribeDBDiagReportTasksResponse

func NewDescribeDBDiagReportTasksResponse() (response *DescribeDBDiagReportTasksResponse)

func (*DescribeDBDiagReportTasksResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBDiagReportTasksResponse) ToJsonString

func (r *DescribeDBDiagReportTasksResponse) ToJsonString() string

type DescribeDBDiagReportTasksResponseParams

type DescribeDBDiagReportTasksResponseParams struct {
	// Total number of tasks.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Task list.
	Tasks []*HealthReportTask `json:"Tasks,omitnil,omitempty" name:"Tasks"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDBSpaceStatusRequest

type DescribeDBSpaceStatusRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Query period in days. The end date is the current date and the query period is 7 days by default.
	RangeDays *int64 `json:"RangeDays,omitnil,omitempty" name:"RangeDays"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeDBSpaceStatusRequest

func NewDescribeDBSpaceStatusRequest() (request *DescribeDBSpaceStatusRequest)

func (*DescribeDBSpaceStatusRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBSpaceStatusRequest) ToJsonString

func (r *DescribeDBSpaceStatusRequest) ToJsonString() string

type DescribeDBSpaceStatusRequestParams

type DescribeDBSpaceStatusRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Query period in days. The end date is the current date and the query period is 7 days by default.
	RangeDays *int64 `json:"RangeDays,omitnil,omitempty" name:"RangeDays"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeDBSpaceStatusResponse

type DescribeDBSpaceStatusResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBSpaceStatusResponseParams `json:"Response"`
}

func NewDescribeDBSpaceStatusResponse

func NewDescribeDBSpaceStatusResponse() (response *DescribeDBSpaceStatusResponse)

func (*DescribeDBSpaceStatusResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBSpaceStatusResponse) ToJsonString

func (r *DescribeDBSpaceStatusResponse) ToJsonString() string

type DescribeDBSpaceStatusResponseParams

type DescribeDBSpaceStatusResponseParams struct {
	// Disk usage growth in MB.
	Growth *int64 `json:"Growth,omitnil,omitempty" name:"Growth"`

	// Available disk space in MB.
	Remain *int64 `json:"Remain,omitnil,omitempty" name:"Remain"`

	// Total disk space in MB.
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`

	// Estimated number of available days.
	AvailableDays *int64 `json:"AvailableDays,omitnil,omitempty" name:"AvailableDays"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDiagDBInstancesRequest

type DescribeDiagDBInstancesRequest struct {
	*tchttp.BaseRequest

	// Whether it is an instance supported by DBbrain. It is fixed to “true”.
	IsSupported *bool `json:"IsSupported,omitnil,omitempty" name:"IsSupported"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Pagination parameter indicating the offset.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Pagination parameter indicating the number of entries for each page.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Query by instance name.
	InstanceNames []*string `json:"InstanceNames,omitnil,omitempty" name:"InstanceNames"`

	// Query by instance ID.
	InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`

	// Query by region.
	Regions []*string `json:"Regions,omitnil,omitempty" name:"Regions"`
}

func NewDescribeDiagDBInstancesRequest

func NewDescribeDiagDBInstancesRequest() (request *DescribeDiagDBInstancesRequest)

func (*DescribeDiagDBInstancesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDiagDBInstancesRequest) ToJsonString

func (r *DescribeDiagDBInstancesRequest) ToJsonString() string

type DescribeDiagDBInstancesRequestParams

type DescribeDiagDBInstancesRequestParams struct {
	// Whether it is an instance supported by DBbrain. It is fixed to “true”.
	IsSupported *bool `json:"IsSupported,omitnil,omitempty" name:"IsSupported"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Pagination parameter indicating the offset.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Pagination parameter indicating the number of entries for each page.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Query by instance name.
	InstanceNames []*string `json:"InstanceNames,omitnil,omitempty" name:"InstanceNames"`

	// Query by instance ID.
	InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`

	// Query by region.
	Regions []*string `json:"Regions,omitnil,omitempty" name:"Regions"`
}

Predefined struct for user

type DescribeDiagDBInstancesResponse

type DescribeDiagDBInstancesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDiagDBInstancesResponseParams `json:"Response"`
}

func NewDescribeDiagDBInstancesResponse

func NewDescribeDiagDBInstancesResponse() (response *DescribeDiagDBInstancesResponse)

func (*DescribeDiagDBInstancesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDiagDBInstancesResponse) ToJsonString

func (r *DescribeDiagDBInstancesResponse) ToJsonString() string

type DescribeDiagDBInstancesResponseParams

type DescribeDiagDBInstancesResponseParams struct {
	// Total Number of Instances
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Status of all instance inspection. 0: all instance inspection enabled, 1: all instance inspection disabled
	DbScanStatus *int64 `json:"DbScanStatus,omitnil,omitempty" name:"DbScanStatus"`

	// Instance related information
	Items []*InstanceInfo `json:"Items,omitnil,omitempty" name:"Items"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeHealthScoreRequest

type DescribeHealthScoreRequest struct {
	*tchttp.BaseRequest

	// The instance ID that needs to obtain the health score
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Time to obtain the health score
	Time *string `json:"Time,omitnil,omitempty" name:"Time"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeHealthScoreRequest

func NewDescribeHealthScoreRequest() (request *DescribeHealthScoreRequest)

func (*DescribeHealthScoreRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthScoreRequest) ToJsonString

func (r *DescribeHealthScoreRequest) ToJsonString() string

type DescribeHealthScoreRequestParams

type DescribeHealthScoreRequestParams struct {
	// The instance ID that needs to obtain the health score
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Time to obtain the health score
	Time *string `json:"Time,omitnil,omitempty" name:"Time"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeHealthScoreResponse

type DescribeHealthScoreResponse struct {
	*tchttp.BaseResponse
	Response *DescribeHealthScoreResponseParams `json:"Response"`
}

func NewDescribeHealthScoreResponse

func NewDescribeHealthScoreResponse() (response *DescribeHealthScoreResponse)

func (*DescribeHealthScoreResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthScoreResponse) ToJsonString

func (r *DescribeHealthScoreResponse) ToJsonString() string

type DescribeHealthScoreResponseParams

type DescribeHealthScoreResponseParams struct {
	// Health score and deduction for exceptions
	Data *HealthScoreInfo `json:"Data,omitnil,omitempty" name:"Data"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeMailProfileRequest

type DescribeMailProfileRequest struct {
	*tchttp.BaseRequest

	// Configuration type. Valid values: "dbScan_mail_configuration" (email configuration of database inspection report), "scheduler_mail_configuration" (email configuration of scheduled task report).
	ProfileType *string `json:"ProfileType,omitnil,omitempty" name:"ProfileType"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Pagination offset
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// The number of results per page in paginated queries. Maximum value: 50
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Query by the name of email configuration. The name of the regularly sent email configuration should be in the format of "scheduler_"+{instanceId}.
	ProfileName *string `json:"ProfileName,omitnil,omitempty" name:"ProfileName"`
}

func NewDescribeMailProfileRequest

func NewDescribeMailProfileRequest() (request *DescribeMailProfileRequest)

func (*DescribeMailProfileRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMailProfileRequest) ToJsonString

func (r *DescribeMailProfileRequest) ToJsonString() string

type DescribeMailProfileRequestParams

type DescribeMailProfileRequestParams struct {
	// Configuration type. Valid values: "dbScan_mail_configuration" (email configuration of database inspection report), "scheduler_mail_configuration" (email configuration of scheduled task report).
	ProfileType *string `json:"ProfileType,omitnil,omitempty" name:"ProfileType"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Pagination offset
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// The number of results per page in paginated queries. Maximum value: 50
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Query by the name of email configuration. The name of the regularly sent email configuration should be in the format of "scheduler_"+{instanceId}.
	ProfileName *string `json:"ProfileName,omitnil,omitempty" name:"ProfileName"`
}

Predefined struct for user

type DescribeMailProfileResponse

type DescribeMailProfileResponse struct {
	*tchttp.BaseResponse
	Response *DescribeMailProfileResponseParams `json:"Response"`
}

func NewDescribeMailProfileResponse

func NewDescribeMailProfileResponse() (response *DescribeMailProfileResponse)

func (*DescribeMailProfileResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMailProfileResponse) ToJsonString

func (r *DescribeMailProfileResponse) ToJsonString() string

type DescribeMailProfileResponseParams

type DescribeMailProfileResponseParams struct {
	// Email configuration details
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ProfileList []*UserProfile `json:"ProfileList,omitnil,omitempty" name:"ProfileList"`

	// Total number of email templates
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeSlowLogTimeSeriesStatsRequest

type DescribeSlowLogTimeSeriesStatsRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as "2019-09-10 12:13:14".
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as "2019-09-10 12:13:14". The interval between the end time and the start time can be up to 7 days.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeSlowLogTimeSeriesStatsRequest

func NewDescribeSlowLogTimeSeriesStatsRequest() (request *DescribeSlowLogTimeSeriesStatsRequest)

func (*DescribeSlowLogTimeSeriesStatsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSlowLogTimeSeriesStatsRequest) ToJsonString

type DescribeSlowLogTimeSeriesStatsRequestParams

type DescribeSlowLogTimeSeriesStatsRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as "2019-09-10 12:13:14".
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as "2019-09-10 12:13:14". The interval between the end time and the start time can be up to 7 days.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeSlowLogTimeSeriesStatsResponse

type DescribeSlowLogTimeSeriesStatsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeSlowLogTimeSeriesStatsResponseParams `json:"Response"`
}

func NewDescribeSlowLogTimeSeriesStatsResponse

func NewDescribeSlowLogTimeSeriesStatsResponse() (response *DescribeSlowLogTimeSeriesStatsResponse)

func (*DescribeSlowLogTimeSeriesStatsResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSlowLogTimeSeriesStatsResponse) ToJsonString

type DescribeSlowLogTimeSeriesStatsResponseParams

type DescribeSlowLogTimeSeriesStatsResponseParams struct {
	// Time range in seconds in histogram.
	Period *int64 `json:"Period,omitnil,omitempty" name:"Period"`

	// Number of slow logs in specified time range.
	TimeSeries []*TimeSlice `json:"TimeSeries,omitnil,omitempty" name:"TimeSeries"`

	// Instance CPU utilization monitoring data in specified time range.
	SeriesData *MonitorMetricSeriesData `json:"SeriesData,omitnil,omitempty" name:"SeriesData"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeSlowLogTopSqlsRequest

type DescribeSlowLogTopSqlsRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as "2019-09-10 12:13:14".
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as "2019-09-10 12:13:14". The interval between the end time and the start time can be up to 7 days.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Sorting key. Valid values: QueryTime, ExecTimes, RowsSent, LockTime, RowsExamined.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Sorting order. Valid values: ASC (ascending), DESC (descending).
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// Number of results to be returned. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Database name array.
	SchemaList []*SchemaItem `json:"SchemaList,omitnil,omitempty" name:"SchemaList"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeSlowLogTopSqlsRequest

func NewDescribeSlowLogTopSqlsRequest() (request *DescribeSlowLogTopSqlsRequest)

func (*DescribeSlowLogTopSqlsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSlowLogTopSqlsRequest) ToJsonString

func (r *DescribeSlowLogTopSqlsRequest) ToJsonString() string

type DescribeSlowLogTopSqlsRequestParams

type DescribeSlowLogTopSqlsRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time, such as "2019-09-10 12:13:14".
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time, such as "2019-09-10 12:13:14". The interval between the end time and the start time can be up to 7 days.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Sorting key. Valid values: QueryTime, ExecTimes, RowsSent, LockTime, RowsExamined.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Sorting order. Valid values: ASC (ascending), DESC (descending).
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// Number of results to be returned. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Database name array.
	SchemaList []*SchemaItem `json:"SchemaList,omitnil,omitempty" name:"SchemaList"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeSlowLogTopSqlsResponse

type DescribeSlowLogTopSqlsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeSlowLogTopSqlsResponseParams `json:"Response"`
}

func NewDescribeSlowLogTopSqlsResponse

func NewDescribeSlowLogTopSqlsResponse() (response *DescribeSlowLogTopSqlsResponse)

func (*DescribeSlowLogTopSqlsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSlowLogTopSqlsResponse) ToJsonString

func (r *DescribeSlowLogTopSqlsResponse) ToJsonString() string

type DescribeSlowLogTopSqlsResponseParams

type DescribeSlowLogTopSqlsResponseParams struct {
	// Number of eligible entries.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// List of top slow SQL statements
	Rows []*SlowLogTopSqlItem `json:"Rows,omitnil,omitempty" name:"Rows"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeSlowLogUserHostStatsRequest

type DescribeSlowLogUserHostStatsRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time of the time range in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the time range in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeSlowLogUserHostStatsRequest

func NewDescribeSlowLogUserHostStatsRequest() (request *DescribeSlowLogUserHostStatsRequest)

func (*DescribeSlowLogUserHostStatsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSlowLogUserHostStatsRequest) ToJsonString

func (r *DescribeSlowLogUserHostStatsRequest) ToJsonString() string

type DescribeSlowLogUserHostStatsRequestParams

type DescribeSlowLogUserHostStatsRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Start time of the time range in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the time range in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeSlowLogUserHostStatsResponse

type DescribeSlowLogUserHostStatsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeSlowLogUserHostStatsResponseParams `json:"Response"`
}

func NewDescribeSlowLogUserHostStatsResponse

func NewDescribeSlowLogUserHostStatsResponse() (response *DescribeSlowLogUserHostStatsResponse)

func (*DescribeSlowLogUserHostStatsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSlowLogUserHostStatsResponse) ToJsonString

func (r *DescribeSlowLogUserHostStatsResponse) ToJsonString() string

type DescribeSlowLogUserHostStatsResponseParams

type DescribeSlowLogUserHostStatsResponseParams struct {
	// Total number of source addresses.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Detailed list of the proportion of slow logs from each source address.
	Items []*SlowLogHost `json:"Items,omitnil,omitempty" name:"Items"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTopSpaceSchemaTimeSeriesRequest

type DescribeTopSpaceSchemaTimeSeriesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top databases. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: `DataLength`, `IndexLength`, `TotalLength`, `DataFree`, `FragRatio`, `TableRows`, and `PhysicalFileSize` (supported only by TencentDB for MySQL instances). For TencentDB for MySQL instances, the default value is `PhysicalFileSize`; for other database instances, the default value is `TotalLength`.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Start date. It can be as early as 29 days before the current date, and defaults to 6 days before the end date.
	StartDate *string `json:"StartDate,omitnil,omitempty" name:"StartDate"`

	// End date. It can be as early as 29 days before the current date, and defaults to the current date.
	EndDate *string `json:"EndDate,omitnil,omitempty" name:"EndDate"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeTopSpaceSchemaTimeSeriesRequest

func NewDescribeTopSpaceSchemaTimeSeriesRequest() (request *DescribeTopSpaceSchemaTimeSeriesRequest)

func (*DescribeTopSpaceSchemaTimeSeriesRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceSchemaTimeSeriesRequest) ToJsonString

type DescribeTopSpaceSchemaTimeSeriesRequestParams

type DescribeTopSpaceSchemaTimeSeriesRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top databases. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: `DataLength`, `IndexLength`, `TotalLength`, `DataFree`, `FragRatio`, `TableRows`, and `PhysicalFileSize` (supported only by TencentDB for MySQL instances). For TencentDB for MySQL instances, the default value is `PhysicalFileSize`; for other database instances, the default value is `TotalLength`.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Start date. It can be as early as 29 days before the current date, and defaults to 6 days before the end date.
	StartDate *string `json:"StartDate,omitnil,omitempty" name:"StartDate"`

	// End date. It can be as early as 29 days before the current date, and defaults to the current date.
	EndDate *string `json:"EndDate,omitnil,omitempty" name:"EndDate"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeTopSpaceSchemaTimeSeriesResponse

type DescribeTopSpaceSchemaTimeSeriesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTopSpaceSchemaTimeSeriesResponseParams `json:"Response"`
}

func NewDescribeTopSpaceSchemaTimeSeriesResponse

func NewDescribeTopSpaceSchemaTimeSeriesResponse() (response *DescribeTopSpaceSchemaTimeSeriesResponse)

func (*DescribeTopSpaceSchemaTimeSeriesResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceSchemaTimeSeriesResponse) ToJsonString

type DescribeTopSpaceSchemaTimeSeriesResponseParams

type DescribeTopSpaceSchemaTimeSeriesResponseParams struct {
	// Time series list of the returned space statistics of top databases.
	TopSpaceSchemaTimeSeries []*SchemaSpaceTimeSeries `json:"TopSpaceSchemaTimeSeries,omitnil,omitempty" name:"TopSpaceSchemaTimeSeries"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTopSpaceSchemasRequest

type DescribeTopSpaceSchemasRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top databases. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: `DataLength`, `IndexLength`, `TotalLength`, `DataFree`, `FragRatio`, `TableRows`, and `PhysicalFileSize` (supported only by TencentDB for MySQL instances). For TencentDB for MySQL instances, the default value is `PhysicalFileSize`; for other database instances, the default value is `TotalLength`.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeTopSpaceSchemasRequest

func NewDescribeTopSpaceSchemasRequest() (request *DescribeTopSpaceSchemasRequest)

func (*DescribeTopSpaceSchemasRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceSchemasRequest) ToJsonString

func (r *DescribeTopSpaceSchemasRequest) ToJsonString() string

type DescribeTopSpaceSchemasRequestParams

type DescribeTopSpaceSchemasRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top databases. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: `DataLength`, `IndexLength`, `TotalLength`, `DataFree`, `FragRatio`, `TableRows`, and `PhysicalFileSize` (supported only by TencentDB for MySQL instances). For TencentDB for MySQL instances, the default value is `PhysicalFileSize`; for other database instances, the default value is `TotalLength`.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeTopSpaceSchemasResponse

type DescribeTopSpaceSchemasResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTopSpaceSchemasResponseParams `json:"Response"`
}

func NewDescribeTopSpaceSchemasResponse

func NewDescribeTopSpaceSchemasResponse() (response *DescribeTopSpaceSchemasResponse)

func (*DescribeTopSpaceSchemasResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceSchemasResponse) ToJsonString

func (r *DescribeTopSpaceSchemasResponse) ToJsonString() string

type DescribeTopSpaceSchemasResponseParams

type DescribeTopSpaceSchemasResponseParams struct {
	// List of the returned space statistics of top databases.
	TopSpaceSchemas []*SchemaSpaceData `json:"TopSpaceSchemas,omitnil,omitempty" name:"TopSpaceSchemas"`

	// Timestamp (in seconds) of database space data collect points
	Timestamp *int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTopSpaceTableTimeSeriesRequest

type DescribeTopSpaceTableTimeSeriesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top tables. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, PhysicalFileSize. Default value: PhysicalFileSize.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Start date. It can be as early as 29 days before the current date, and defaults to 6 days before the end date.
	StartDate *string `json:"StartDate,omitnil,omitempty" name:"StartDate"`

	// End date. It can be as early as 29 days before the current date, and defaults to the current date.
	EndDate *string `json:"EndDate,omitnil,omitempty" name:"EndDate"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeTopSpaceTableTimeSeriesRequest

func NewDescribeTopSpaceTableTimeSeriesRequest() (request *DescribeTopSpaceTableTimeSeriesRequest)

func (*DescribeTopSpaceTableTimeSeriesRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceTableTimeSeriesRequest) ToJsonString

type DescribeTopSpaceTableTimeSeriesRequestParams

type DescribeTopSpaceTableTimeSeriesRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top tables. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, PhysicalFileSize. Default value: PhysicalFileSize.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Start date. It can be as early as 29 days before the current date, and defaults to 6 days before the end date.
	StartDate *string `json:"StartDate,omitnil,omitempty" name:"StartDate"`

	// End date. It can be as early as 29 days before the current date, and defaults to the current date.
	EndDate *string `json:"EndDate,omitnil,omitempty" name:"EndDate"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeTopSpaceTableTimeSeriesResponse

type DescribeTopSpaceTableTimeSeriesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTopSpaceTableTimeSeriesResponseParams `json:"Response"`
}

func NewDescribeTopSpaceTableTimeSeriesResponse

func NewDescribeTopSpaceTableTimeSeriesResponse() (response *DescribeTopSpaceTableTimeSeriesResponse)

func (*DescribeTopSpaceTableTimeSeriesResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceTableTimeSeriesResponse) ToJsonString

type DescribeTopSpaceTableTimeSeriesResponseParams

type DescribeTopSpaceTableTimeSeriesResponseParams struct {
	// Time series list of the returned space statistics of top tables.
	TopSpaceTableTimeSeries []*TableSpaceTimeSeries `json:"TopSpaceTableTimeSeries,omitnil,omitempty" name:"TopSpaceTableTimeSeries"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTopSpaceTablesRequest

type DescribeTopSpaceTablesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top tables. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: `DataLength`, `IndexLength`, `TotalLength`, `DataFree`, `FragRatio`, `TableRows`, and `PhysicalFileSize` (only supported by TencentDB for MySQL instances). For TencentDB for MySQL instances, the default value is PhysicalFileSize; for other database instances, the default value is `TotalLength`.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

func NewDescribeTopSpaceTablesRequest

func NewDescribeTopSpaceTablesRequest() (request *DescribeTopSpaceTablesRequest)

func (*DescribeTopSpaceTablesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceTablesRequest) ToJsonString

func (r *DescribeTopSpaceTablesRequest) ToJsonString() string

type DescribeTopSpaceTablesRequestParams

type DescribeTopSpaceTablesRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Number of returned top tables. Maximum value: 100. Default value: 20.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Field used to sort top tables. Valid values: `DataLength`, `IndexLength`, `TotalLength`, `DataFree`, `FragRatio`, `TableRows`, and `PhysicalFileSize` (only supported by TencentDB for MySQL instances). For TencentDB for MySQL instances, the default value is PhysicalFileSize; for other database instances, the default value is `TotalLength`.
	SortBy *string `json:"SortBy,omitnil,omitempty" name:"SortBy"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)). Default value: `mysql`.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}

Predefined struct for user

type DescribeTopSpaceTablesResponse

type DescribeTopSpaceTablesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTopSpaceTablesResponseParams `json:"Response"`
}

func NewDescribeTopSpaceTablesResponse

func NewDescribeTopSpaceTablesResponse() (response *DescribeTopSpaceTablesResponse)

func (*DescribeTopSpaceTablesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTopSpaceTablesResponse) ToJsonString

func (r *DescribeTopSpaceTablesResponse) ToJsonString() string

type DescribeTopSpaceTablesResponseParams

type DescribeTopSpaceTablesResponseParams struct {
	// List of the returned space statistics of top tables.
	TopSpaceTables []*TableSpaceData `json:"TopSpaceTables,omitnil,omitempty" name:"TopSpaceTables"`

	// Timestamp (in seconds) of tablespace data collect points
	Timestamp *int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeUserSqlAdviceRequest

type DescribeUserSqlAdviceRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// SQL statement.
	SqlText *string `json:"SqlText,omitnil,omitempty" name:"SqlText"`

	// Database name.
	Schema *string `json:"Schema,omitnil,omitempty" name:"Schema"`
}

func NewDescribeUserSqlAdviceRequest

func NewDescribeUserSqlAdviceRequest() (request *DescribeUserSqlAdviceRequest)

func (*DescribeUserSqlAdviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeUserSqlAdviceRequest) ToJsonString

func (r *DescribeUserSqlAdviceRequest) ToJsonString() string

type DescribeUserSqlAdviceRequestParams

type DescribeUserSqlAdviceRequestParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// SQL statement.
	SqlText *string `json:"SqlText,omitnil,omitempty" name:"SqlText"`

	// Database name.
	Schema *string `json:"Schema,omitnil,omitempty" name:"Schema"`
}

Predefined struct for user

type DescribeUserSqlAdviceResponse

type DescribeUserSqlAdviceResponse struct {
	*tchttp.BaseResponse
	Response *DescribeUserSqlAdviceResponseParams `json:"Response"`
}

func NewDescribeUserSqlAdviceResponse

func NewDescribeUserSqlAdviceResponse() (response *DescribeUserSqlAdviceResponse)

func (*DescribeUserSqlAdviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeUserSqlAdviceResponse) ToJsonString

func (r *DescribeUserSqlAdviceResponse) ToJsonString() string

type DescribeUserSqlAdviceResponseParams

type DescribeUserSqlAdviceResponseParams struct {
	// SQL statement optimization suggestions, which can be parsed into JSON arrays.
	Advices *string `json:"Advices,omitnil,omitempty" name:"Advices"`

	// Notes of SQL statement optimization suggestions, which can be parsed into String arrays.
	Comments *string `json:"Comments,omitnil,omitempty" name:"Comments"`

	// SQL statement.
	SqlText *string `json:"SqlText,omitnil,omitempty" name:"SqlText"`

	// Database name.
	Schema *string `json:"Schema,omitnil,omitempty" name:"Schema"`

	// DDL information of related tables, which can be parsed into JSON arrays.
	Tables *string `json:"Tables,omitnil,omitempty" name:"Tables"`

	// SQL execution plan, which can be parsed into JSON.
	SqlPlan *string `json:"SqlPlan,omitnil,omitempty" name:"SqlPlan"`

	// Cost saving details after SQL statement optimization, which can be parsed into JSON.
	Cost *string `json:"Cost,omitnil,omitempty" name:"Cost"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DiagHistoryEventItem

type DiagHistoryEventItem struct {
	// Diagnosis type.
	DiagType *string `json:"DiagType,omitnil,omitempty" name:"DiagType"`

	// End time.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Start time.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Event ID.
	EventId *int64 `json:"EventId,omitnil,omitempty" name:"EventId"`

	// Severity, which can be divided into 5 levels: 1: fatal, 2: severe, 3: warning, 4: notice, 5: healthy.
	Severity *int64 `json:"Severity,omitnil,omitempty" name:"Severity"`

	// Summary.
	Outline *string `json:"Outline,omitnil,omitempty" name:"Outline"`

	// Diagnosis item.
	DiagItem *string `json:"DiagItem,omitnil,omitempty" name:"DiagItem"`

	// Instance ID.
	// Note: this field may return null, indicating that no valid values can be obtained.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Reserved field
	// Note: this field may return null, indicating that no valid values can be obtained.
	Metric *string `json:"Metric,omitnil,omitempty" name:"Metric"`

	// Region
	// Note: this field may return null, indicating that no valid values can be obtained.
	Region *string `json:"Region,omitnil,omitempty" name:"Region"`
}

type EventInfo

type EventInfo struct {
	// Event ID
	EventId *int64 `json:"EventId,omitnil,omitempty" name:"EventId"`

	// Diagnosis type
	DiagType *string `json:"DiagType,omitnil,omitempty" name:"DiagType"`

	// Start time
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Summary
	Outline *string `json:"Outline,omitnil,omitempty" name:"Outline"`

	// Severity, which can be divided into 5 levels: 1: fatal, 2: severe, 3: warning, 4: notice, 5: healthy.
	Severity *int64 `json:"Severity,omitnil,omitempty" name:"Severity"`

	// Deduction
	ScoreLost *int64 `json:"ScoreLost,omitnil,omitempty" name:"ScoreLost"`

	// Reserved field
	Metric *string `json:"Metric,omitnil,omitempty" name:"Metric"`

	// The number of alarms
	Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
}

type GroupItem

type GroupItem struct {
	// Group ID.
	Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`

	// Group name.
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Number of group members.
	MemberCount *int64 `json:"MemberCount,omitnil,omitempty" name:"MemberCount"`
}

type HealthReportTask

type HealthReportTask struct {
	// Async task request ID.
	AsyncRequestId *int64 `json:"AsyncRequestId,omitnil,omitempty" name:"AsyncRequestId"`

	// Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
	Source *string `json:"Source,omitnil,omitempty" name:"Source"`

	// Task progress in %.
	Progress *int64 `json:"Progress,omitnil,omitempty" name:"Progress"`

	// Task creation time.
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// Task start time.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Task end time.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Basic information about the instance to which the task belongs.
	InstanceInfo *InstanceBasicInfo `json:"InstanceInfo,omitnil,omitempty" name:"InstanceInfo"`

	// Health information in a health report.
	HealthStatus *HealthStatus `json:"HealthStatus,omitnil,omitempty" name:"HealthStatus"`
}

type HealthScoreInfo

type HealthScoreInfo struct {
	// Exception details
	IssueTypes []*IssueTypeInfo `json:"IssueTypes,omitnil,omitempty" name:"IssueTypes"`

	// Total number of the exceptions
	EventsTotalCount *int64 `json:"EventsTotalCount,omitnil,omitempty" name:"EventsTotalCount"`

	// Health score
	HealthScore *int64 `json:"HealthScore,omitnil,omitempty" name:"HealthScore"`

	// Health level, such as "HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK".
	HealthLevel *string `json:"HealthLevel,omitnil,omitempty" name:"HealthLevel"`
}

type HealthStatus

type HealthStatus struct {
	// Health score out of 100 points.
	HealthScore *int64 `json:"HealthScore,omitnil,omitempty" name:"HealthScore"`

	// Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
	HealthLevel *string `json:"HealthLevel,omitnil,omitempty" name:"HealthLevel"`

	// Total scores deducted.
	ScoreLost *int64 `json:"ScoreLost,omitnil,omitempty" name:"ScoreLost"`

	// Deduction details.
	// Note: `null` may be returned for this field, indicating that no valid values can be obtained.
	ScoreDetails []*ScoreDetail `json:"ScoreDetails,omitnil,omitempty" name:"ScoreDetails"`
}

type InstanceBasicInfo

type InstanceBasicInfo struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Instance name.
	InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`

	// Private IP of the instance.
	Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`

	// Private network port of the instance.
	Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`

	// Instance product.
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Instance engine version.
	EngineVersion *string `json:"EngineVersion,omitnil,omitempty" name:"EngineVersion"`
}

type InstanceConfs

type InstanceConfs struct {
	// Whether to enable database inspection. Valid values: Yes/No.
	DailyInspection *string `json:"DailyInspection,omitnil,omitempty" name:"DailyInspection"`

	// Whether to enable instance overview. Valid values: Yes/No.
	OverviewDisplay *string `json:"OverviewDisplay,omitnil,omitempty" name:"OverviewDisplay"`
}

type InstanceInfo

type InstanceInfo struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`

	// The region where the instance belongs
	Region *string `json:"Region,omitnil,omitempty" name:"Region"`

	// Health score
	HealthScore *int64 `json:"HealthScore,omitnil,omitempty" name:"HealthScore"`

	// Service
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// Number of exceptions
	EventCount *int64 `json:"EventCount,omitnil,omitempty" name:"EventCount"`

	// Instance type. Valid values: 1: MASTER, 2: DR, 3: RO, 4: SDR
	InstanceType *int64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`

	// Number of cores
	Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`

	// Memory in MB
	Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// Disk storage in GB
	Volume *int64 `json:"Volume,omitnil,omitempty" name:"Volume"`

	// Database version
	EngineVersion *string `json:"EngineVersion,omitnil,omitempty" name:"EngineVersion"`

	// Private network address
	Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`

	// Private network port
	Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`

	// Access source
	Source *string `json:"Source,omitnil,omitempty" name:"Source"`

	// Group ID
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// Group name
	GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`

	// Instance status. Valid values: 0: Delivering, 1: Running, 4: Terminating, 5: Isolated
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// Subnet unified ID
	UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`

	// cdb (TencentDB instance) type
	DeployMode *string `json:"DeployMode,omitnil,omitempty" name:"DeployMode"`

	// cdb (TencentDB instance) initialization flag. Valid values: 0: not initialized, 1: initialized
	InitFlag *int64 `json:"InitFlag,omitnil,omitempty" name:"InitFlag"`

	// Task status
	TaskStatus *int64 `json:"TaskStatus,omitnil,omitempty" name:"TaskStatus"`

	// Unified VPC ID
	UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`

	// Instance inspection/overview status
	InstanceConf *InstanceConfs `json:"InstanceConf,omitnil,omitempty" name:"InstanceConf"`

	// Resource expiration time
	DeadlineTime *string `json:"DeadlineTime,omitnil,omitempty" name:"DeadlineTime"`

	// Whether it is an instance supported by DBbrain.
	IsSupported *bool `json:"IsSupported,omitnil,omitempty" name:"IsSupported"`

	// The status of instance security audit log. ON: enabled, OFF: disabled.
	SecAuditStatus *string `json:"SecAuditStatus,omitnil,omitempty" name:"SecAuditStatus"`

	// The status of instance audit log. ALL_AUDIT: full audit is enabled, RULE_AUDIT: rule audit is enabled, UNBOUND: audit is disabled.
	AuditPolicyStatus *string `json:"AuditPolicyStatus,omitnil,omitempty" name:"AuditPolicyStatus"`

	// The running status of instance audit log. normal: running, paused: suspension due to arrears
	AuditRunningStatus *string `json:"AuditRunningStatus,omitnil,omitempty" name:"AuditRunningStatus"`
}

type IssueTypeInfo

type IssueTypeInfo struct {
	// Metric categories: AVAILABILITY, MAINTAINABILITY, PERFORMANCE, and RELIABILITY
	IssueType *string `json:"IssueType,omitnil,omitempty" name:"IssueType"`

	// Exception
	Events []*EventInfo `json:"Events,omitnil,omitempty" name:"Events"`

	// Total number of the exceptions
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
}

type MailConfiguration

type MailConfiguration struct {
	// Whether to enable email sending. Valid values: 0 (No), 1 (Yes).
	SendMail *int64 `json:"SendMail,omitnil,omitempty" name:"SendMail"`

	// Region configuration, such as "ap-guangzhou", "ap-shanghai". For the inspection email sending template, configure the region where you need to send the inspection email. For the subscription email sending template, configure the region to which the current subscribed instance belongs.
	Region []*string `json:"Region,omitnil,omitempty" name:"Region"`

	// Sending a report with the specified health level, such as "HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK".
	HealthStatus []*string `json:"HealthStatus,omitnil,omitempty" name:"HealthStatus"`

	// Contact ID. Either `ContactGroup` or `ContactID` should be passed in.
	ContactPerson []*int64 `json:"ContactPerson,omitnil,omitempty" name:"ContactPerson"`

	// Contact group ID. Either `ContactGroup` or `ContactID` should be passed in.
	ContactGroup []*int64 `json:"ContactGroup,omitnil,omitempty" name:"ContactGroup"`
}

type ModifyDiagDBInstanceConfRequest

type ModifyDiagDBInstanceConfRequest struct {
	*tchttp.BaseRequest

	// Whether to enable inspection
	InstanceConfs *InstanceConfs `json:"InstanceConfs,omitnil,omitempty" name:"InstanceConfs"`

	// Target regions of the request. If the value is `All`, it is applied to all regions.
	Regions *string `json:"Regions,omitnil,omitempty" name:"Regions"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)).
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// ID of the instance to modify.
	InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}

func NewModifyDiagDBInstanceConfRequest

func NewModifyDiagDBInstanceConfRequest() (request *ModifyDiagDBInstanceConfRequest)

func (*ModifyDiagDBInstanceConfRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDiagDBInstanceConfRequest) ToJsonString

func (r *ModifyDiagDBInstanceConfRequest) ToJsonString() string

type ModifyDiagDBInstanceConfRequestParams

type ModifyDiagDBInstanceConfRequestParams struct {
	// Whether to enable inspection
	InstanceConfs *InstanceConfs `json:"InstanceConfs,omitnil,omitempty" name:"InstanceConfs"`

	// Target regions of the request. If the value is `All`, it is applied to all regions.
	Regions *string `json:"Regions,omitnil,omitempty" name:"Regions"`

	// Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TencentDB for CynosDB (compatible with MySQL)).
	Product *string `json:"Product,omitnil,omitempty" name:"Product"`

	// ID of the instance to modify.
	InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}

Predefined struct for user

type ModifyDiagDBInstanceConfResponse

type ModifyDiagDBInstanceConfResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDiagDBInstanceConfResponseParams `json:"Response"`
}

func NewModifyDiagDBInstanceConfResponse

func NewModifyDiagDBInstanceConfResponse() (response *ModifyDiagDBInstanceConfResponse)

func (*ModifyDiagDBInstanceConfResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDiagDBInstanceConfResponse) ToJsonString

func (r *ModifyDiagDBInstanceConfResponse) ToJsonString() string

type ModifyDiagDBInstanceConfResponseParams

type ModifyDiagDBInstanceConfResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type MonitorFloatMetric

type MonitorFloatMetric struct {
	// Metric name.
	Metric *string `json:"Metric,omitnil,omitempty" name:"Metric"`

	// Metric unit.
	Unit *string `json:"Unit,omitnil,omitempty" name:"Unit"`

	// Metric value.
	// Note: this field may return null, indicating that no valid values can be obtained.
	Values []*float64 `json:"Values,omitnil,omitempty" name:"Values"`
}

type MonitorFloatMetricSeriesData

type MonitorFloatMetricSeriesData struct {
	// Monitoring metric.
	Series []*MonitorFloatMetric `json:"Series,omitnil,omitempty" name:"Series"`

	// Timestamp corresponding to monitoring metric.
	Timestamp []*int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
}

type MonitorMetric

type MonitorMetric struct {
	// Metric name.
	Metric *string `json:"Metric,omitnil,omitempty" name:"Metric"`

	// Metric unit.
	Unit *string `json:"Unit,omitnil,omitempty" name:"Unit"`

	// Metric value.
	// Note: this field may return null, indicating that no valid values can be obtained.
	Values []*int64 `json:"Values,omitnil,omitempty" name:"Values"`
}

type MonitorMetricSeriesData

type MonitorMetricSeriesData struct {
	// Monitoring metric.
	Series []*MonitorMetric `json:"Series,omitnil,omitempty" name:"Series"`

	// Timestamp corresponding to monitoring metric.
	Timestamp []*int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
}

type ProfileInfo

type ProfileInfo struct {
	// Language of the email, such as `en`.
	Language *string `json:"Language,omitnil,omitempty" name:"Language"`

	// The content of email template.
	MailConfiguration *MailConfiguration `json:"MailConfiguration,omitnil,omitempty" name:"MailConfiguration"`
}

type SchemaItem

type SchemaItem struct {
	// Database name
	Schema *string `json:"Schema,omitnil,omitempty" name:"Schema"`
}

type SchemaSpaceData

type SchemaSpaceData struct {
	// Database name.
	TableSchema *string `json:"TableSchema,omitnil,omitempty" name:"TableSchema"`

	// Data space in MB.
	DataLength *float64 `json:"DataLength,omitnil,omitempty" name:"DataLength"`

	// Index space in MB.
	IndexLength *float64 `json:"IndexLength,omitnil,omitempty" name:"IndexLength"`

	// Fragmented space in MB.
	DataFree *float64 `json:"DataFree,omitnil,omitempty" name:"DataFree"`

	// Total space usage in MB.
	TotalLength *float64 `json:"TotalLength,omitnil,omitempty" name:"TotalLength"`

	// Fragmented rate (%).
	FragRatio *float64 `json:"FragRatio,omitnil,omitempty" name:"FragRatio"`

	// Number of rows.
	TableRows *int64 `json:"TableRows,omitnil,omitempty" name:"TableRows"`

	// The total size of the independent physical files corresponding to all the database tables (MB).
	// Note: `null` may be returned for this field, indicating that no valid values can be obtained.
	PhysicalFileSize *float64 `json:"PhysicalFileSize,omitnil,omitempty" name:"PhysicalFileSize"`
}

type SchemaSpaceTimeSeries

type SchemaSpaceTimeSeries struct {
	// Database name
	TableSchema *string `json:"TableSchema,omitnil,omitempty" name:"TableSchema"`

	// Monitoring metric data in a unit of time interval.
	SeriesData *MonitorMetricSeriesData `json:"SeriesData,omitnil,omitempty" name:"SeriesData"`
}

type ScoreDetail

type ScoreDetail struct {
	// Deduction item types. Valid values: availability, maintainability, performance, and reliability.
	IssueType *string `json:"IssueType,omitnil,omitempty" name:"IssueType"`

	// Total scores deducted.
	ScoreLost *int64 `json:"ScoreLost,omitnil,omitempty" name:"ScoreLost"`

	// Upper limit of the deducted scores.
	ScoreLostMax *int64 `json:"ScoreLostMax,omitnil,omitempty" name:"ScoreLostMax"`

	// Deduction item list.
	// Note: `null` may be returned for this field, indicating that no valid values can be obtained.
	Items []*ScoreItem `json:"Items,omitnil,omitempty" name:"Items"`
}

type ScoreItem

type ScoreItem struct {
	// Exception diagnosis item name.
	DiagItem *string `json:"DiagItem,omitnil,omitempty" name:"DiagItem"`

	// Diagnosis item types. Valid values: availability, maintainability, performance, and reliability.
	IssueType *string `json:"IssueType,omitnil,omitempty" name:"IssueType"`

	// Health level. Valid values: information, reminder, alarm, serious, fatal.
	TopSeverity *string `json:"TopSeverity,omitnil,omitempty" name:"TopSeverity"`

	// Number of occurrences of this exception diagnosis item.
	Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`

	// Scores deducted.
	ScoreLost *int64 `json:"ScoreLost,omitnil,omitempty" name:"ScoreLost"`
}

type SlowLogHost

type SlowLogHost struct {
	// Source addresses.
	UserHost *string `json:"UserHost,omitnil,omitempty" name:"UserHost"`

	// The proportion (in %) of slow logs from this source address to the total number of slow logs
	Ratio *float64 `json:"Ratio,omitnil,omitempty" name:"Ratio"`

	// Number of slow logs from this source address.
	Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
}

type SlowLogTopSqlItem

type SlowLogTopSqlItem struct {
	// Total SQL lock wait time
	LockTime *float64 `json:"LockTime,omitnil,omitempty" name:"LockTime"`

	// Maximum lock wait time
	LockTimeMax *float64 `json:"LockTimeMax,omitnil,omitempty" name:"LockTimeMax"`

	// Minimum lock wait time
	LockTimeMin *float64 `json:"LockTimeMin,omitnil,omitempty" name:"LockTimeMin"`

	// Total number of scanned rows
	RowsExamined *int64 `json:"RowsExamined,omitnil,omitempty" name:"RowsExamined"`

	// Maximum number of scanned rows
	RowsExaminedMax *int64 `json:"RowsExaminedMax,omitnil,omitempty" name:"RowsExaminedMax"`

	// Minimum number of scanned rows
	RowsExaminedMin *int64 `json:"RowsExaminedMin,omitnil,omitempty" name:"RowsExaminedMin"`

	// Total duration
	QueryTime *float64 `json:"QueryTime,omitnil,omitempty" name:"QueryTime"`

	// Maximum execution time
	QueryTimeMax *float64 `json:"QueryTimeMax,omitnil,omitempty" name:"QueryTimeMax"`

	// Minimum execution time
	QueryTimeMin *float64 `json:"QueryTimeMin,omitnil,omitempty" name:"QueryTimeMin"`

	// Total number of returned rows
	RowsSent *int64 `json:"RowsSent,omitnil,omitempty" name:"RowsSent"`

	// Maximum number of returned rows
	RowsSentMax *int64 `json:"RowsSentMax,omitnil,omitempty" name:"RowsSentMax"`

	// Minimum number of returned rows
	RowsSentMin *int64 `json:"RowsSentMin,omitnil,omitempty" name:"RowsSentMin"`

	// Number of executions
	ExecTimes *int64 `json:"ExecTimes,omitnil,omitempty" name:"ExecTimes"`

	// SQL template
	SqlTemplate *string `json:"SqlTemplate,omitnil,omitempty" name:"SqlTemplate"`

	// SQL with parameter (random)
	SqlText *string `json:"SqlText,omitnil,omitempty" name:"SqlText"`

	// Database name
	Schema *string `json:"Schema,omitnil,omitempty" name:"Schema"`

	// Ratio of total duration
	QueryTimeRatio *float64 `json:"QueryTimeRatio,omitnil,omitempty" name:"QueryTimeRatio"`

	// Ratio of total SQL lock wait time
	LockTimeRatio *float64 `json:"LockTimeRatio,omitnil,omitempty" name:"LockTimeRatio"`

	// Ratio of total number of scanned rows
	RowsExaminedRatio *float64 `json:"RowsExaminedRatio,omitnil,omitempty" name:"RowsExaminedRatio"`

	// Ratio of total number of returned rows
	RowsSentRatio *float64 `json:"RowsSentRatio,omitnil,omitempty" name:"RowsSentRatio"`

	// Average execution time
	QueryTimeAvg *float64 `json:"QueryTimeAvg,omitnil,omitempty" name:"QueryTimeAvg"`

	// Average number of rows returned
	RowsSentAvg *float64 `json:"RowsSentAvg,omitnil,omitempty" name:"RowsSentAvg"`

	// Average lock wait time
	LockTimeAvg *float64 `json:"LockTimeAvg,omitnil,omitempty" name:"LockTimeAvg"`

	// Average number of rows scanned
	RowsExaminedAvg *float64 `json:"RowsExaminedAvg,omitnil,omitempty" name:"RowsExaminedAvg"`
}

type TableSpaceData

type TableSpaceData struct {
	// Table name.
	TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"`

	// Database name.
	TableSchema *string `json:"TableSchema,omitnil,omitempty" name:"TableSchema"`

	// Database table storage engine.
	Engine *string `json:"Engine,omitnil,omitempty" name:"Engine"`

	// Data space in MB.
	DataLength *float64 `json:"DataLength,omitnil,omitempty" name:"DataLength"`

	// Index space in MB.
	IndexLength *float64 `json:"IndexLength,omitnil,omitempty" name:"IndexLength"`

	// Fragmented space in MB.
	DataFree *float64 `json:"DataFree,omitnil,omitempty" name:"DataFree"`

	// Total space usage in MB.
	TotalLength *float64 `json:"TotalLength,omitnil,omitempty" name:"TotalLength"`

	// Fragmented rate (%).
	FragRatio *float64 `json:"FragRatio,omitnil,omitempty" name:"FragRatio"`

	// Number of rows.
	TableRows *int64 `json:"TableRows,omitnil,omitempty" name:"TableRows"`

	// Size in MB of the physical file exclusive to a table.
	PhysicalFileSize *float64 `json:"PhysicalFileSize,omitnil,omitempty" name:"PhysicalFileSize"`
}

type TableSpaceTimeSeries

type TableSpaceTimeSeries struct {
	// Table name.
	TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"`

	// Database name.
	TableSchema *string `json:"TableSchema,omitnil,omitempty" name:"TableSchema"`

	// Database table storage engine.
	Engine *string `json:"Engine,omitnil,omitempty" name:"Engine"`

	// Monitoring metric data in a unit of time interval.
	SeriesData *MonitorFloatMetricSeriesData `json:"SeriesData,omitnil,omitempty" name:"SeriesData"`
}

type TimeSlice

type TimeSlice struct {
	// Total number
	Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`

	// Statistics start time
	Timestamp *int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
}

type UserProfile

type UserProfile struct {
	// Configured ID
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ProfileId *string `json:"ProfileId,omitnil,omitempty" name:"ProfileId"`

	// Configuration type
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ProfileType *string `json:"ProfileType,omitnil,omitempty" name:"ProfileType"`

	// Configuration level. Valid values: “User” or “Instance”
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ProfileLevel *string `json:"ProfileLevel,omitnil,omitempty" name:"ProfileLevel"`

	// Configuration name
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ProfileName *string `json:"ProfileName,omitnil,omitempty" name:"ProfileName"`

	// Configuration details
	ProfileInfo *ProfileInfo `json:"ProfileInfo,omitnil,omitempty" name:"ProfileInfo"`
}

Jump to

Keyboard shortcuts

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