v20180412

package
v3.0.416+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// No exact description for this error code for the time being.
	FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

	// Internal system error, which is irrelevant to the business.
	FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"

	// Internal system error with the database operation, which may be update, insert, select, etc.
	INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"

	// Internal error.
	INTERNALERROR_INTERNALERROR = "InternalError.InternalError"

	// Incorrect parameter.
	INVALIDPARAMETER = "InvalidParameter"

	// The parameter is empty.
	INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam"

	// Invalid service parameter.
	INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter"

	// The API has no CAM permissions.
	INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"

	// Password verification error due to incorrect password.
	INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError"

	// When the password is set, the old password passed in by MC does not match the previously set password.
	INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError"

	// The request capacity is too small. Capacity reduction is not supported.
	INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed"

	// The global replication group doesn’t exist.
	INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists"

	// The instance type is not supported.
	INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType"

	// The requested capacity is out of the purchasable capacity range.
	LIMITEXCEEDED_MEMSIZENOTINRANGE = "LimitExceeded.MemSizeNotInRange"

	// No Redis instance is found by the serialId.
	RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"

	// Redis has been locked by another process.
	RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError"

	// Instance status error.
	RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError"

	// The Redis status is exceptional, and the corresponding process cannot be executed.
	RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

	// Operation unsupported: the instance is exceptional.
	RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"

	// No CAM permissions.
	UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"

	// The user is not in the allowlist.
	UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"

	// The Redis cluster edition is not allowed to connect to a security group.
	UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
)
View Source
const APIVersion = "2018-04-12"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {

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

	// Account name (`root` for a root account)
	// Note: This field may return null, indicating that no valid values can be obtained.
	AccountName *string `json:"AccountName,omitempty" name:"AccountName"`

	// Account description information
	// Note: This field may return null, indicating that no valid values can be obtained.
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// Read/write policy. r: read-only; w: write-only; rw: read/write
	// Note: This field may return null, indicating that no valid values can be obtained.
	Privilege *string `json:"Privilege,omitempty" name:"Privilege"`

	// Routing policy. master: master node; replication: secondary node
	// Note: This field may return null, indicating that no valid values can be obtained.
	ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"`

	// Sub-account status. 1: account is being changed; 2: account is valid; -4: account has been deleted
	// Note: This field may return null, indicating that no valid values can be obtained.
	Status *int64 `json:"Status,omitempty" name:"Status"`
}

type BigKeyInfo

type BigKeyInfo struct {

	// Database
	DB *int64 `json:"DB,omitempty" name:"DB"`

	// Big key
	Key *string `json:"Key,omitempty" name:"Key"`

	// Type
	Type *string `json:"Type,omitempty" name:"Type"`

	// Size
	Size *int64 `json:"Size,omitempty" name:"Size"`

	// Data timestamp
	Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"`
}

type BigKeyTypeInfo

type BigKeyTypeInfo struct {

	// Type
	Type *string `json:"Type,omitempty" name:"Type"`

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

	// Size
	Size *int64 `json:"Size,omitempty" name:"Size"`

	// Timestamp
	Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"`
}

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) DescribeInstanceAccount

func (c *Client) DescribeInstanceAccount(request *DescribeInstanceAccountRequest) (response *DescribeInstanceAccountResponse, err error)

DescribeInstanceAccount This API is used to view instance sub-account information.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_INTERNALERROR = "InternalError.InternalError"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"

func (*Client) DescribeInstanceAccountWithContext

func (c *Client) DescribeInstanceAccountWithContext(ctx context.Context, request *DescribeInstanceAccountRequest) (response *DescribeInstanceAccountResponse, err error)

DescribeInstanceAccount This API is used to view instance sub-account information.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_INTERNALERROR = "InternalError.InternalError"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"

func (*Client) DescribeInstanceMonitorBigKey

func (c *Client) DescribeInstanceMonitorBigKey(request *DescribeInstanceMonitorBigKeyRequest) (response *DescribeInstanceMonitorBigKeyResponse, err error)

DescribeInstanceMonitorBigKey This API is used to query the big key of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorBigKeySizeDist

func (c *Client) DescribeInstanceMonitorBigKeySizeDist(request *DescribeInstanceMonitorBigKeySizeDistRequest) (response *DescribeInstanceMonitorBigKeySizeDistResponse, err error)

DescribeInstanceMonitorBigKeySizeDist This API is used to query the big key size distribution of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorBigKeySizeDistWithContext

func (c *Client) DescribeInstanceMonitorBigKeySizeDistWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeySizeDistRequest) (response *DescribeInstanceMonitorBigKeySizeDistResponse, err error)

DescribeInstanceMonitorBigKeySizeDist This API is used to query the big key size distribution of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorBigKeyTypeDist

func (c *Client) DescribeInstanceMonitorBigKeyTypeDist(request *DescribeInstanceMonitorBigKeyTypeDistRequest) (response *DescribeInstanceMonitorBigKeyTypeDistResponse, err error)

DescribeInstanceMonitorBigKeyTypeDist This API is used to query the big key type distribution of an instance

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorBigKeyTypeDistWithContext

func (c *Client) DescribeInstanceMonitorBigKeyTypeDistWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeyTypeDistRequest) (response *DescribeInstanceMonitorBigKeyTypeDistResponse, err error)

DescribeInstanceMonitorBigKeyTypeDist This API is used to query the big key type distribution of an instance

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorBigKeyWithContext

func (c *Client) DescribeInstanceMonitorBigKeyWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeyRequest) (response *DescribeInstanceMonitorBigKeyResponse, err error)

DescribeInstanceMonitorBigKey This API is used to query the big key of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorHotKey

func (c *Client) DescribeInstanceMonitorHotKey(request *DescribeInstanceMonitorHotKeyRequest) (response *DescribeInstanceMonitorHotKeyResponse, err error)

DescribeInstanceMonitorHotKey This API is used to query the hot key of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorHotKeyWithContext

func (c *Client) DescribeInstanceMonitorHotKeyWithContext(ctx context.Context, request *DescribeInstanceMonitorHotKeyRequest) (response *DescribeInstanceMonitorHotKeyResponse, err error)

DescribeInstanceMonitorHotKey This API is used to query the hot key of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorSIP

func (c *Client) DescribeInstanceMonitorSIP(request *DescribeInstanceMonitorSIPRequest) (response *DescribeInstanceMonitorSIPResponse, err error)

DescribeInstanceMonitorSIP This API is used to query the access source information of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorSIPWithContext

func (c *Client) DescribeInstanceMonitorSIPWithContext(ctx context.Context, request *DescribeInstanceMonitorSIPRequest) (response *DescribeInstanceMonitorSIPResponse, err error)

DescribeInstanceMonitorSIP This API is used to query the access source information of an instance.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorTookDist

func (c *Client) DescribeInstanceMonitorTookDist(request *DescribeInstanceMonitorTookDistRequest) (response *DescribeInstanceMonitorTookDistResponse, err error)

DescribeInstanceMonitorTookDist This API is used to query the distribution of instance access duration.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorTookDistWithContext

func (c *Client) DescribeInstanceMonitorTookDistWithContext(ctx context.Context, request *DescribeInstanceMonitorTookDistRequest) (response *DescribeInstanceMonitorTookDistResponse, err error)

DescribeInstanceMonitorTookDist This API is used to query the distribution of instance access duration.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorTopNCmd

func (c *Client) DescribeInstanceMonitorTopNCmd(request *DescribeInstanceMonitorTopNCmdRequest) (response *DescribeInstanceMonitorTopNCmdResponse, err error)

DescribeInstanceMonitorTopNCmd This API is used to query an instance access command.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorTopNCmdTook

func (c *Client) DescribeInstanceMonitorTopNCmdTook(request *DescribeInstanceMonitorTopNCmdTookRequest) (response *DescribeInstanceMonitorTopNCmdTookResponse, err error)

DescribeInstanceMonitorTopNCmdTook This API is used to query the instance CPU time.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorTopNCmdTookWithContext

func (c *Client) DescribeInstanceMonitorTopNCmdTookWithContext(ctx context.Context, request *DescribeInstanceMonitorTopNCmdTookRequest) (response *DescribeInstanceMonitorTopNCmdTookResponse, err error)

DescribeInstanceMonitorTopNCmdTook This API is used to query the instance CPU time.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeInstanceMonitorTopNCmdWithContext

func (c *Client) DescribeInstanceMonitorTopNCmdWithContext(ctx context.Context, request *DescribeInstanceMonitorTopNCmdRequest) (response *DescribeInstanceMonitorTopNCmdResponse, err error)

DescribeInstanceMonitorTopNCmd This API is used to query an instance access command.

error code that may be returned:

FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"

func (*Client) DescribeMaintenanceWindow

func (c *Client) DescribeMaintenanceWindow(request *DescribeMaintenanceWindowRequest) (response *DescribeMaintenanceWindowResponse, err error)

DescribeMaintenanceWindow This API is used to query instance maintenance window. The maintenance window specifies a time period during which compatible version upgrade, architecture upgrade, backend maintenance, and other operations can be performed to avoid affecting business.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"

func (*Client) DescribeMaintenanceWindowWithContext

func (c *Client) DescribeMaintenanceWindowWithContext(ctx context.Context, request *DescribeMaintenanceWindowRequest) (response *DescribeMaintenanceWindowResponse, err error)

DescribeMaintenanceWindow This API is used to query instance maintenance window. The maintenance window specifies a time period during which compatible version upgrade, architecture upgrade, backend maintenance, and other operations can be performed to avoid affecting business.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"

func (*Client) DescribeProductInfo

func (c *Client) DescribeProductInfo(request *DescribeProductInfoRequest) (response *DescribeProductInfoResponse, err error)

DescribeProductInfo This API is used to query the purchasable capacity specifications of Redis instances in the specified AZ and instance type. If you are not in the allowlist for the AZ or instance type, you cannot view the details of the capacity specifications. To apply for the eligibility, please submit a ticket.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_INTERNALERROR = "InternalError.InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"

func (*Client) DescribeProductInfoWithContext

func (c *Client) DescribeProductInfoWithContext(ctx context.Context, request *DescribeProductInfoRequest) (response *DescribeProductInfoResponse, err error)

DescribeProductInfo This API is used to query the purchasable capacity specifications of Redis instances in the specified AZ and instance type. If you are not in the allowlist for the AZ or instance type, you cannot view the details of the capacity specifications. To apply for the eligibility, please submit a ticket.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_INTERNALERROR = "InternalError.InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"

func (*Client) DescribeReplicationGroup

func (c *Client) DescribeReplicationGroup(request *DescribeReplicationGroupRequest) (response *DescribeReplicationGroupResponse, err error)

DescribeReplicationGroup This API is used to query the global replication group.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists"

func (*Client) DescribeReplicationGroupWithContext

func (c *Client) DescribeReplicationGroupWithContext(ctx context.Context, request *DescribeReplicationGroupRequest) (response *DescribeReplicationGroupResponse, err error)

DescribeReplicationGroup This API is used to query the global replication group.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists"

func (*Client) DescribeSlowLog

func (c *Client) DescribeSlowLog(request *DescribeSlowLogRequest) (response *DescribeSlowLogResponse, err error)

DescribeSlowLog This API is used to query the slow log.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType"
RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"

func (*Client) DescribeSlowLogWithContext

func (c *Client) DescribeSlowLogWithContext(ctx context.Context, request *DescribeSlowLogRequest) (response *DescribeSlowLogResponse, err error)

DescribeSlowLog This API is used to query the slow log.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType"
RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"

func (*Client) InquiryPriceCreateInstance

func (c *Client) InquiryPriceCreateInstance(request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)

InquiryPriceCreateInstance This API is used to query the price for purchasing an instance.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_INTERNALERROR = "InternalError.InternalError"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"

func (*Client) InquiryPriceCreateInstanceWithContext

func (c *Client) InquiryPriceCreateInstanceWithContext(ctx context.Context, request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)

InquiryPriceCreateInstance This API is used to query the price for purchasing an instance.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INTERNALERROR_INTERNALERROR = "InternalError.InternalError"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"

func (*Client) InquiryPriceUpgradeInstance

func (c *Client) InquiryPriceUpgradeInstance(request *InquiryPriceUpgradeInstanceRequest) (response *InquiryPriceUpgradeInstanceResponse, err error)

InquiryPriceUpgradeInstance This API is used to query the price for scaling an instance.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed"
LIMITEXCEEDED_MEMSIZENOTINRANGE = "LimitExceeded.MemSizeNotInRange"
RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError"
RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"

func (*Client) InquiryPriceUpgradeInstanceWithContext

func (c *Client) InquiryPriceUpgradeInstanceWithContext(ctx context.Context, request *InquiryPriceUpgradeInstanceRequest) (response *InquiryPriceUpgradeInstanceResponse, err error)

InquiryPriceUpgradeInstance This API is used to query the price for scaling an instance.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed"
LIMITEXCEEDED_MEMSIZENOTINRANGE = "LimitExceeded.MemSizeNotInRange"
RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError"
RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"

func (*Client) ModfiyInstancePassword

func (c *Client) ModfiyInstancePassword(request *ModfiyInstancePasswordRequest) (response *ModfiyInstancePasswordResponse, err error)

ModfiyInstancePassword This API is used to change the Redis password.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam"
INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError"
INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError"
RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"

func (*Client) ModfiyInstancePasswordWithContext

func (c *Client) ModfiyInstancePasswordWithContext(ctx context.Context, request *ModfiyInstancePasswordRequest) (response *ModfiyInstancePasswordResponse, err error)

ModfiyInstancePassword This API is used to change the Redis password.

error code that may be returned:

FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam"
INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError"
INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError"
RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"

type CommandTake

type CommandTake struct {

	// Command
	Cmd *string `json:"Cmd,omitempty" name:"Cmd"`

	// Duration
	Took *int64 `json:"Took,omitempty" name:"Took"`
}

type DelayDistribution

type DelayDistribution struct {

	// Delay distribution. The mapping between delay range and `Ladder` value is as follows:
	// [0ms,1ms]: 1;
	// [1ms,5ms]: 5;
	// [5ms,10ms]: 10;
	// [10ms,50ms]: 50;
	// [50ms,200ms]: 200;
	// [200ms,∞]: -1.
	Ladder *int64 `json:"Ladder,omitempty" name:"Ladder"`

	// The number of commands whose delay falls within the current delay range
	Size *int64 `json:"Size,omitempty" name:"Size"`

	// Modification time
	Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"`
}

type DescribeInstanceAccountRequest

type DescribeInstanceAccountRequest struct {
	*tchttp.BaseRequest

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

	// Number of entries per page
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// Page offset
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeInstanceAccountRequest

func NewDescribeInstanceAccountRequest() (request *DescribeInstanceAccountRequest)

func (*DescribeInstanceAccountRequest) FromJsonString

func (r *DescribeInstanceAccountRequest) 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 (*DescribeInstanceAccountRequest) ToJsonString

func (r *DescribeInstanceAccountRequest) ToJsonString() string

type DescribeInstanceAccountResponse

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

		// Account details
		// Note: This field may return null, indicating that no valid values can be obtained.
		Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"`

		// Number of accounts
		// Note: This field may return null, indicating that no valid values can be obtained.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

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

func NewDescribeInstanceAccountResponse

func NewDescribeInstanceAccountResponse() (response *DescribeInstanceAccountResponse)

func (*DescribeInstanceAccountResponse) FromJsonString

func (r *DescribeInstanceAccountResponse) 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 (*DescribeInstanceAccountResponse) ToJsonString

func (r *DescribeInstanceAccountResponse) ToJsonString() string

type DescribeInstanceMonitorBigKeyRequest

type DescribeInstanceMonitorBigKeyRequest struct {
	*tchttp.BaseRequest

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

	// Request type. 1: string type; 2: all types
	ReqType *int64 `json:"ReqType,omitempty" name:"ReqType"`

	// Time, such as "20190219"
	Date *string `json:"Date,omitempty" name:"Date"`
}

func NewDescribeInstanceMonitorBigKeyRequest

func NewDescribeInstanceMonitorBigKeyRequest() (request *DescribeInstanceMonitorBigKeyRequest)

func (*DescribeInstanceMonitorBigKeyRequest) FromJsonString

func (r *DescribeInstanceMonitorBigKeyRequest) 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 (*DescribeInstanceMonitorBigKeyRequest) ToJsonString

func (r *DescribeInstanceMonitorBigKeyRequest) ToJsonString() string

type DescribeInstanceMonitorBigKeyResponse

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

		// Big key details
		Data []*BigKeyInfo `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorBigKeyResponse

func NewDescribeInstanceMonitorBigKeyResponse() (response *DescribeInstanceMonitorBigKeyResponse)

func (*DescribeInstanceMonitorBigKeyResponse) FromJsonString

func (r *DescribeInstanceMonitorBigKeyResponse) 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 (*DescribeInstanceMonitorBigKeyResponse) ToJsonString

type DescribeInstanceMonitorBigKeySizeDistRequest

type DescribeInstanceMonitorBigKeySizeDistRequest struct {
	*tchttp.BaseRequest

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

	// Time, such as "20190219"
	Date *string `json:"Date,omitempty" name:"Date"`
}

func NewDescribeInstanceMonitorBigKeySizeDistRequest

func NewDescribeInstanceMonitorBigKeySizeDistRequest() (request *DescribeInstanceMonitorBigKeySizeDistRequest)

func (*DescribeInstanceMonitorBigKeySizeDistRequest) FromJsonString

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

func (*DescribeInstanceMonitorBigKeySizeDistRequest) ToJsonString

type DescribeInstanceMonitorBigKeySizeDistResponse

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

		// Big key size distribution details
		Data []*DelayDistribution `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorBigKeySizeDistResponse

func NewDescribeInstanceMonitorBigKeySizeDistResponse() (response *DescribeInstanceMonitorBigKeySizeDistResponse)

func (*DescribeInstanceMonitorBigKeySizeDistResponse) FromJsonString

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

func (*DescribeInstanceMonitorBigKeySizeDistResponse) ToJsonString

type DescribeInstanceMonitorBigKeyTypeDistRequest

type DescribeInstanceMonitorBigKeyTypeDistRequest struct {
	*tchttp.BaseRequest

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

	// Time, such as "20190219"
	Date *string `json:"Date,omitempty" name:"Date"`
}

func NewDescribeInstanceMonitorBigKeyTypeDistRequest

func NewDescribeInstanceMonitorBigKeyTypeDistRequest() (request *DescribeInstanceMonitorBigKeyTypeDistRequest)

func (*DescribeInstanceMonitorBigKeyTypeDistRequest) FromJsonString

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

func (*DescribeInstanceMonitorBigKeyTypeDistRequest) ToJsonString

type DescribeInstanceMonitorBigKeyTypeDistResponse

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

		// Big key type distribution details
		Data []*BigKeyTypeInfo `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorBigKeyTypeDistResponse

func NewDescribeInstanceMonitorBigKeyTypeDistResponse() (response *DescribeInstanceMonitorBigKeyTypeDistResponse)

func (*DescribeInstanceMonitorBigKeyTypeDistResponse) FromJsonString

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

func (*DescribeInstanceMonitorBigKeyTypeDistResponse) ToJsonString

type DescribeInstanceMonitorHotKeyRequest

type DescribeInstanceMonitorHotKeyRequest struct {
	*tchttp.BaseRequest

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

	// Time span. 1: real time; 2: past 30 minutes; 3: past 6 hours; 4: past 24 hours
	SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"`
}

func NewDescribeInstanceMonitorHotKeyRequest

func NewDescribeInstanceMonitorHotKeyRequest() (request *DescribeInstanceMonitorHotKeyRequest)

func (*DescribeInstanceMonitorHotKeyRequest) FromJsonString

func (r *DescribeInstanceMonitorHotKeyRequest) 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 (*DescribeInstanceMonitorHotKeyRequest) ToJsonString

func (r *DescribeInstanceMonitorHotKeyRequest) ToJsonString() string

type DescribeInstanceMonitorHotKeyResponse

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

		// Hot key details
		Data []*HotKeyInfo `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorHotKeyResponse

func NewDescribeInstanceMonitorHotKeyResponse() (response *DescribeInstanceMonitorHotKeyResponse)

func (*DescribeInstanceMonitorHotKeyResponse) FromJsonString

func (r *DescribeInstanceMonitorHotKeyResponse) 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 (*DescribeInstanceMonitorHotKeyResponse) ToJsonString

type DescribeInstanceMonitorSIPRequest

type DescribeInstanceMonitorSIPRequest struct {
	*tchttp.BaseRequest

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

func NewDescribeInstanceMonitorSIPRequest

func NewDescribeInstanceMonitorSIPRequest() (request *DescribeInstanceMonitorSIPRequest)

func (*DescribeInstanceMonitorSIPRequest) FromJsonString

func (r *DescribeInstanceMonitorSIPRequest) 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 (*DescribeInstanceMonitorSIPRequest) ToJsonString

func (r *DescribeInstanceMonitorSIPRequest) ToJsonString() string

type DescribeInstanceMonitorSIPResponse

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

		// Access source information
		Data []*SourceInfo `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorSIPResponse

func NewDescribeInstanceMonitorSIPResponse() (response *DescribeInstanceMonitorSIPResponse)

func (*DescribeInstanceMonitorSIPResponse) FromJsonString

func (r *DescribeInstanceMonitorSIPResponse) 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 (*DescribeInstanceMonitorSIPResponse) ToJsonString

func (r *DescribeInstanceMonitorSIPResponse) ToJsonString() string

type DescribeInstanceMonitorTookDistRequest

type DescribeInstanceMonitorTookDistRequest struct {
	*tchttp.BaseRequest

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

	// Time, such as "20190219"
	Date *string `json:"Date,omitempty" name:"Date"`

	// Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours
	SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"`
}

func NewDescribeInstanceMonitorTookDistRequest

func NewDescribeInstanceMonitorTookDistRequest() (request *DescribeInstanceMonitorTookDistRequest)

func (*DescribeInstanceMonitorTookDistRequest) FromJsonString

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

func (*DescribeInstanceMonitorTookDistRequest) ToJsonString

type DescribeInstanceMonitorTookDistResponse

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

		// Latency distribution information
		Data []*DelayDistribution `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorTookDistResponse

func NewDescribeInstanceMonitorTookDistResponse() (response *DescribeInstanceMonitorTookDistResponse)

func (*DescribeInstanceMonitorTookDistResponse) FromJsonString

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

func (*DescribeInstanceMonitorTookDistResponse) ToJsonString

type DescribeInstanceMonitorTopNCmdRequest

type DescribeInstanceMonitorTopNCmdRequest struct {
	*tchttp.BaseRequest

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

	// Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours
	SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"`
}

func NewDescribeInstanceMonitorTopNCmdRequest

func NewDescribeInstanceMonitorTopNCmdRequest() (request *DescribeInstanceMonitorTopNCmdRequest)

func (*DescribeInstanceMonitorTopNCmdRequest) FromJsonString

func (r *DescribeInstanceMonitorTopNCmdRequest) 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 (*DescribeInstanceMonitorTopNCmdRequest) ToJsonString

type DescribeInstanceMonitorTopNCmdResponse

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

		// Access command information
		Data []*SourceCommand `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorTopNCmdResponse

func NewDescribeInstanceMonitorTopNCmdResponse() (response *DescribeInstanceMonitorTopNCmdResponse)

func (*DescribeInstanceMonitorTopNCmdResponse) FromJsonString

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

func (*DescribeInstanceMonitorTopNCmdResponse) ToJsonString

type DescribeInstanceMonitorTopNCmdTookRequest

type DescribeInstanceMonitorTopNCmdTookRequest struct {
	*tchttp.BaseRequest

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

	// Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours
	SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"`
}

func NewDescribeInstanceMonitorTopNCmdTookRequest

func NewDescribeInstanceMonitorTopNCmdTookRequest() (request *DescribeInstanceMonitorTopNCmdTookRequest)

func (*DescribeInstanceMonitorTopNCmdTookRequest) FromJsonString

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

func (*DescribeInstanceMonitorTopNCmdTookRequest) ToJsonString

type DescribeInstanceMonitorTopNCmdTookResponse

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

		// Duration details
		Data []*CommandTake `json:"Data,omitempty" name:"Data"`

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

func NewDescribeInstanceMonitorTopNCmdTookResponse

func NewDescribeInstanceMonitorTopNCmdTookResponse() (response *DescribeInstanceMonitorTopNCmdTookResponse)

func (*DescribeInstanceMonitorTopNCmdTookResponse) FromJsonString

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

func (*DescribeInstanceMonitorTopNCmdTookResponse) ToJsonString

type DescribeMaintenanceWindowRequest

type DescribeMaintenanceWindowRequest struct {
	*tchttp.BaseRequest

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

func NewDescribeMaintenanceWindowRequest

func NewDescribeMaintenanceWindowRequest() (request *DescribeMaintenanceWindowRequest)

func (*DescribeMaintenanceWindowRequest) FromJsonString

func (r *DescribeMaintenanceWindowRequest) 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 (*DescribeMaintenanceWindowRequest) ToJsonString

func (r *DescribeMaintenanceWindowRequest) ToJsonString() string

type DescribeMaintenanceWindowResponse

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

		// Start time of the maintenance window, such as 17:00.
		StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

		// End time of the maintenance window, such as 19:00.
		EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

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

func NewDescribeMaintenanceWindowResponse

func NewDescribeMaintenanceWindowResponse() (response *DescribeMaintenanceWindowResponse)

func (*DescribeMaintenanceWindowResponse) FromJsonString

func (r *DescribeMaintenanceWindowResponse) 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 (*DescribeMaintenanceWindowResponse) ToJsonString

func (r *DescribeMaintenanceWindowResponse) ToJsonString() string

type DescribeProductInfoRequest

type DescribeProductInfoRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeProductInfoRequest

func NewDescribeProductInfoRequest() (request *DescribeProductInfoRequest)

func (*DescribeProductInfoRequest) FromJsonString

func (r *DescribeProductInfoRequest) 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 (*DescribeProductInfoRequest) ToJsonString

func (r *DescribeProductInfoRequest) ToJsonString() string

type DescribeProductInfoResponse

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

		// Sale information of a region
		RegionSet []*RegionConf `json:"RegionSet,omitempty" name:"RegionSet"`

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

func NewDescribeProductInfoResponse

func NewDescribeProductInfoResponse() (response *DescribeProductInfoResponse)

func (*DescribeProductInfoResponse) FromJsonString

func (r *DescribeProductInfoResponse) 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 (*DescribeProductInfoResponse) ToJsonString

func (r *DescribeProductInfoResponse) ToJsonString() string

type DescribeReplicationGroupRequest

type DescribeReplicationGroupRequest struct {
	*tchttp.BaseRequest

	// Instance list size. Default value: 20
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// Offset, which is an integral multiple of `Limit`
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Replication group ID
	GroupId *string `json:"GroupId,omitempty" name:"GroupId"`

	// Instance ID/name. Fuzzy query is supported.
	SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
}

func NewDescribeReplicationGroupRequest

func NewDescribeReplicationGroupRequest() (request *DescribeReplicationGroupRequest)

func (*DescribeReplicationGroupRequest) FromJsonString

func (r *DescribeReplicationGroupRequest) 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 (*DescribeReplicationGroupRequest) ToJsonString

func (r *DescribeReplicationGroupRequest) ToJsonString() string

type DescribeReplicationGroupResponse

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

		// Number of replication group
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Replication group info
		Groups []*Groups `json:"Groups,omitempty" name:"Groups"`

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

func NewDescribeReplicationGroupResponse

func NewDescribeReplicationGroupResponse() (response *DescribeReplicationGroupResponse)

func (*DescribeReplicationGroupResponse) FromJsonString

func (r *DescribeReplicationGroupResponse) 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 (*DescribeReplicationGroupResponse) ToJsonString

func (r *DescribeReplicationGroupResponse) ToJsonString() string

type DescribeSlowLogRequest

type DescribeSlowLogRequest struct {
	*tchttp.BaseRequest

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

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

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

	// Slow log threshold in microseconds
	MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"`

	// Number of entries per page
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// Offset, which is an integral multiple of `Limit`
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeSlowLogRequest

func NewDescribeSlowLogRequest() (request *DescribeSlowLogRequest)

func (*DescribeSlowLogRequest) FromJsonString

func (r *DescribeSlowLogRequest) 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 (*DescribeSlowLogRequest) ToJsonString

func (r *DescribeSlowLogRequest) ToJsonString() string

type DescribeSlowLogResponse

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

		// Total number of slow logs
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Slow log details
		InstanceSlowlogDetail []*InstanceSlowlogDetail `json:"InstanceSlowlogDetail,omitempty" name:"InstanceSlowlogDetail"`

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

func NewDescribeSlowLogResponse

func NewDescribeSlowLogResponse() (response *DescribeSlowLogResponse)

func (*DescribeSlowLogResponse) FromJsonString

func (r *DescribeSlowLogResponse) 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 (*DescribeSlowLogResponse) ToJsonString

func (r *DescribeSlowLogResponse) ToJsonString() string

type Groups

type Groups struct {

	// User App ID
	AppId *int64 `json:"AppId,omitempty" name:"AppId"`

	// Region ID. 1: Guangzhou; 4: Shanghai; 5: Hong Kong (China); 6: Toronto; 7: Shanghai Finance; 8: Beijing; 9: Singapore; 11: Shenzhen Finance; 15: West US (Silicon Valley); 16: Chengdu; 17: Germany; 18: South Korea; 19: Chongqing; 21: India; 22: East US (Virginia); 23: Thailand; 24: Russia; 25: Japan
	RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"`

	// Replication group info
	GroupId *string `json:"GroupId,omitempty" name:"GroupId"`

	// Replication group name
	// Note: This field may return `null`, indicating that no valid values can be obtained.
	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`

	// Replication group status. Valid values: 37 (Associating replication group), 38 (Reconnecting to replication group), 51 (Disassociating the replication group), 52 (Switching primary instance in the replication group), 53 (Modifying roles)
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// Number of replication groups
	InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// Instances in replication group
	// Note: This field may return `null`, indicating that no valid values can be obtained.
	Instances []*Instances `json:"Instances,omitempty" name:"Instances"`

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

type HotKeyInfo

type HotKeyInfo struct {

	// Hot key
	Key *string `json:"Key,omitempty" name:"Key"`

	// Type
	Type *string `json:"Type,omitempty" name:"Type"`

	// Count
	Count *int64 `json:"Count,omitempty" name:"Count"`
}

type InquiryPriceCreateInstanceRequest

type InquiryPriceCreateInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance type. Valid values: `2` (Redis 2.8 memory edition in standard architecture), `3` (CKV 3.2 memory edition in standard architecture), `4` (CKV 3.2 memory edition in cluster architecture), `6` (Redis 4.0 memory edition in standard architecture), `7` (Redis 4.0 memory edition in cluster architecture), `8` (Redis 5.0 memory edition in standard architecture), `9` (Redis 5.0 memory edition in cluster architecture).
	TypeId *uint64 `json:"TypeId,omitempty" name:"TypeId"`

	// Memory capacity in MB, which must be a multiple of 1,024. It is subject to the purchasable specifications returned by the [DescribeProductInfo API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1).
	// If `TypeId` indicates the standard architecture, `MemSize` indicates the total memory capacity of an instance; if `TypeId` indicates the cluster architecture, `MemSize` indicates the memory capacity per shard.
	MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"`

	// Number of instances. The actual quantity purchasable at a time is subject to the specifications returned by the [DescribeProductInfo API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1).
	GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"`

	// Length of purchase in months, which is required when creating a monthly-subscribed instance. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. For pay-as-you-go instances, set the parameter to `1`.
	Period *uint64 `json:"Period,omitempty" name:"Period"`

	// Billing mode. Valid values: `0` (pay-as-you-go), `1` (monthly subscription).
	BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"`

	// ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1).
	ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"`

	// Instance shard quantity. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, Redis 2.8 standalone edition, and Redis 4.0 standard architecture.
	RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"`

	// Instance replica quantity. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, and Redis 2.8 standalone edition.
	RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"`

	// Whether to support read-only replicas. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, and Redis 2.8 standalone edition.
	ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"`

	// Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1).
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`
}

func NewInquiryPriceCreateInstanceRequest

func NewInquiryPriceCreateInstanceRequest() (request *InquiryPriceCreateInstanceRequest)

func (*InquiryPriceCreateInstanceRequest) FromJsonString

func (r *InquiryPriceCreateInstanceRequest) 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 (*InquiryPriceCreateInstanceRequest) ToJsonString

func (r *InquiryPriceCreateInstanceRequest) ToJsonString() string

type InquiryPriceCreateInstanceResponse

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

		// Price. Unit: USD (accurate down to the cent)
		// Note: This field may return `null`, indicating that no valid values can be obtained.
		Price *float64 `json:"Price,omitempty" name:"Price"`

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

func NewInquiryPriceCreateInstanceResponse

func NewInquiryPriceCreateInstanceResponse() (response *InquiryPriceCreateInstanceResponse)

func (*InquiryPriceCreateInstanceResponse) FromJsonString

func (r *InquiryPriceCreateInstanceResponse) 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 (*InquiryPriceCreateInstanceResponse) ToJsonString

func (r *InquiryPriceCreateInstanceResponse) ToJsonString() string

type InquiryPriceUpgradeInstanceRequest

type InquiryPriceUpgradeInstanceRequest struct {
	*tchttp.BaseRequest

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

	// Shard size in MB.
	MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"`

	// Number of shards. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture.
	RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"`

	// Number of replicas. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture.
	RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"`
}

func NewInquiryPriceUpgradeInstanceRequest

func NewInquiryPriceUpgradeInstanceRequest() (request *InquiryPriceUpgradeInstanceRequest)

func (*InquiryPriceUpgradeInstanceRequest) FromJsonString

func (r *InquiryPriceUpgradeInstanceRequest) 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 (*InquiryPriceUpgradeInstanceRequest) ToJsonString

func (r *InquiryPriceUpgradeInstanceRequest) ToJsonString() string

type InquiryPriceUpgradeInstanceResponse

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

		// Price. Unit: USD
		// Note: this field may return `null`, indicating that no valid values can be obtained.
		Price *float64 `json:"Price,omitempty" name:"Price"`

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

func NewInquiryPriceUpgradeInstanceResponse

func NewInquiryPriceUpgradeInstanceResponse() (response *InquiryPriceUpgradeInstanceResponse)

func (*InquiryPriceUpgradeInstanceResponse) FromJsonString

func (r *InquiryPriceUpgradeInstanceResponse) 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 (*InquiryPriceUpgradeInstanceResponse) ToJsonString

func (r *InquiryPriceUpgradeInstanceResponse) ToJsonString() string

type InstanceSlowlogDetail

type InstanceSlowlogDetail struct {

	// Slow log duration
	Duration *int64 `json:"Duration,omitempty" name:"Duration"`

	// Client address
	Client *string `json:"Client,omitempty" name:"Client"`

	// Command
	Command *string `json:"Command,omitempty" name:"Command"`

	// Command line details
	CommandLine *string `json:"CommandLine,omitempty" name:"CommandLine"`

	// Execution duration
	ExecuteTime *string `json:"ExecuteTime,omitempty" name:"ExecuteTime"`

	// Node ID
	Node *string `json:"Node,omitempty" name:"Node"`
}

type Instances

type Instances struct {

	// User App ID
	AppId *int64 `json:"AppId,omitempty" name:"AppId"`

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

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

	// Region ID. 1: Guangzhou; 4: Shanghai; 5: Hong Kong (China); 6: Toronto; 7: Shanghai Finance; 8: Beijing; 9: Singapore; 11: Shenzhen Finance; 15: West US (Silicon Valley)
	RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"`

	// Region ID
	ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"`

	// Number of replicas
	RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"`

	// Number of shards
	RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"`

	// Shard size
	RedisShardSize *int64 `json:"RedisShardSize,omitempty" name:"RedisShardSize"`

	// Instance disk size
	// Note: This field may return `null`, indicating that no valid values can be obtained.
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`

	// Engine: Redis community edition, Tencent Cloud CKV
	Engine *string `json:"Engine,omitempty" name:"Engine"`

	// Instance role. Valid values: `rw` (read-write), `r`( read-only)
	Role *string `json:"Role,omitempty" name:"Role"`

	// Instance VIP
	Vip *string `json:"Vip,omitempty" name:"Vip"`

	// Internal parameter, which can be ignored.
	// Note: This field may return `null`, indicating that no valid values can be obtained.
	Vip6 *string `json:"Vip6,omitempty" name:"Vip6"`

	// VPC ID, such as 75101
	VpcID *int64 `json:"VpcID,omitempty" name:"VpcID"`

	// Instance Port
	VPort *int64 `json:"VPort,omitempty" name:"VPort"`

	// Instance status. 0: to be initialized; 1: in process; 2: running; -2: isolated; -3: to be deleted
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// Repository ID
	GrocerySysId *int64 `json:"GrocerySysId,omitempty" name:"GrocerySysId"`

	// Instance type. Valid values: `1` (Redis 2.8 memory edition in cluster architecture), `2` (Redis 2.8 memory edition in standard architecture), `3` (CKV 3.2 memory edition in standard architecture), `4` (CKV 3.2 memory edition in cluster architecture), `5` (Redis 2.8 memory edition in standalone architecture), `6` (Redis 4.0 memory edition in standard architecture), `7` (Redis 4.0 memory edition in cluster architecture), `8` (Redis 5.0 memory edition in standard architecture), `9` (Redis 5.0 memory edition in cluster architecture)
	ProductType *int64 `json:"ProductType,omitempty" name:"ProductType"`

	// Creation time
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// Update time
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}

type ModfiyInstancePasswordRequest

type ModfiyInstancePasswordRequest struct {
	*tchttp.BaseRequest

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

	// Old password of an instance
	OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"`

	// New password of an instance
	Password *string `json:"Password,omitempty" name:"Password"`
}

func NewModfiyInstancePasswordRequest

func NewModfiyInstancePasswordRequest() (request *ModfiyInstancePasswordRequest)

func (*ModfiyInstancePasswordRequest) FromJsonString

func (r *ModfiyInstancePasswordRequest) 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 (*ModfiyInstancePasswordRequest) ToJsonString

func (r *ModfiyInstancePasswordRequest) ToJsonString() string

type ModfiyInstancePasswordResponse

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

		// Task ID
		TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`

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

func NewModfiyInstancePasswordResponse

func NewModfiyInstancePasswordResponse() (response *ModfiyInstancePasswordResponse)

func (*ModfiyInstancePasswordResponse) FromJsonString

func (r *ModfiyInstancePasswordResponse) 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 (*ModfiyInstancePasswordResponse) ToJsonString

func (r *ModfiyInstancePasswordResponse) ToJsonString() string

type ProductConf

type ProductConf struct {

	// Product type. Valid values: `2` (Redis 2.8 Memory Edition in standard architecture), `3` (CKV 3.2 Memory Edition in standard architecture), `4` (CKV 3.2 Memory Edition in cluster architecture), `5` (Redis 2.8 Memory Edition in standalone architecture), `6` (Redis 4.0 Memory Edition in standard architecture), `7` (Redis 4.0 Memory Edition in cluster architecture), `8` (Redis 5.0 Memory Edition in standard architecture), `9` (Redis 5.0 Memory Edition in cluster architecture), `10` (Redis 4.0 Hybrid Storage Edition (Tendis)).
	Type *int64 `json:"Type,omitempty" name:"Type"`

	// Product name: Redis Master-Replica Edition, CKV Master-Replica Edition, CKV Cluster Edition, Redis Standalone Edition, Redis Cluster Edition, Tendis Hybrid Storage Edition
	TypeName *string `json:"TypeName,omitempty" name:"TypeName"`

	// Minimum purchasable quantity
	MinBuyNum *int64 `json:"MinBuyNum,omitempty" name:"MinBuyNum"`

	// Maximum purchasable quantity
	MaxBuyNum *int64 `json:"MaxBuyNum,omitempty" name:"MaxBuyNum"`

	// Whether a product is sold out
	Saleout *bool `json:"Saleout,omitempty" name:"Saleout"`

	// Product engine: Tencent Cloud CKV or Redis community edition
	Engine *string `json:"Engine,omitempty" name:"Engine"`

	// Compatible version: Redis 2.8, Redis 3.2, or Redis 4.0
	Version *string `json:"Version,omitempty" name:"Version"`

	// Total capacity in GB
	TotalSize []*string `json:"TotalSize,omitempty" name:"TotalSize"`

	// Shard size in GB
	ShardSize []*string `json:"ShardSize,omitempty" name:"ShardSize"`

	// Number of replicas
	ReplicaNum []*string `json:"ReplicaNum,omitempty" name:"ReplicaNum"`

	// Number of shards
	ShardNum []*string `json:"ShardNum,omitempty" name:"ShardNum"`

	// Supported billing method. 1: monthly subscription; 0: pay-as-you-go
	PayMode *string `json:"PayMode,omitempty" name:"PayMode"`

	// Whether to support read-only replicas
	EnableRepicaReadOnly *bool `json:"EnableRepicaReadOnly,omitempty" name:"EnableRepicaReadOnly"`
}

type RegionConf

type RegionConf struct {

	// Region ID
	RegionId *string `json:"RegionId,omitempty" name:"RegionId"`

	// Region name
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// Region abbreviation
	RegionShortName *string `json:"RegionShortName,omitempty" name:"RegionShortName"`

	// Name of the area where a region is located
	Area *string `json:"Area,omitempty" name:"Area"`

	// AZ information
	ZoneSet []*ZoneCapacityConf `json:"ZoneSet,omitempty" name:"ZoneSet"`
}

type SourceCommand

type SourceCommand struct {

	// Command
	Cmd *string `json:"Cmd,omitempty" name:"Cmd"`

	// Number of executions
	Count *int64 `json:"Count,omitempty" name:"Count"`
}

type SourceInfo

type SourceInfo struct {

	// Source IP
	Ip *string `json:"Ip,omitempty" name:"Ip"`

	// Number of connections
	Conn *int64 `json:"Conn,omitempty" name:"Conn"`

	// Command
	Cmd *int64 `json:"Cmd,omitempty" name:"Cmd"`
}

type ZoneCapacityConf

type ZoneCapacityConf struct {

	// AZ ID, such as ap-guangzhou-3
	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`

	// AZ name
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`

	// Whether a product is sold out in an AZ
	IsSaleout *bool `json:"IsSaleout,omitempty" name:"IsSaleout"`

	// Whether it is a default AZ
	IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"`

	// Network type. basenet: basic network; vpcnet: VPC
	NetWorkType []*string `json:"NetWorkType,omitempty" name:"NetWorkType"`

	// Information of an AZ, such as product specifications in it
	ProductSet []*ProductConf `json:"ProductSet,omitempty" name:"ProductSet"`

	// AZ ID, such as 100003
	OldZoneId *int64 `json:"OldZoneId,omitempty" name:"OldZoneId"`
}

Jump to

Keyboard shortcuts

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