Documentation
¶
Index ¶
- Constants
- type Alarm
- type Client
- func (c *Client) CreateAlarm(request *CreateAlarmRequest) (response *CreateAlarmResponse, err error)
- func (c *Client) CreateAlarmWithContext(ctx context.Context, request *CreateAlarmRequest) (response *CreateAlarmResponse, err error)
- func (c *Client) DeleteAlarm(request *DeleteAlarmRequest) (response *DeleteAlarmResponse, err error)
- func (c *Client) DeleteAlarmWithContext(ctx context.Context, request *DeleteAlarmRequest) (response *DeleteAlarmResponse, err error)
- func (c *Client) DescribeAlarms(request *DescribeAlarmsRequest) (response *DescribeAlarmsResponse, err error)
- func (c *Client) DescribeAlarmsWithContext(ctx context.Context, request *DescribeAlarmsRequest) (response *DescribeAlarmsResponse, err error)
- func (c *Client) EnableAlarm(request *EnableAlarmRequest) (response *EnableAlarmResponse, err error)
- func (c *Client) EnableAlarmWithContext(ctx context.Context, request *EnableAlarmRequest) (response *EnableAlarmResponse, err error)
- func (c *Client) UpdateAlarm(request *UpdateAlarmRequest) (response *UpdateAlarmResponse, err error)
- func (c *Client) UpdateAlarmWithContext(ctx context.Context, request *UpdateAlarmRequest) (response *UpdateAlarmResponse, err error)
- type CreateAlarmRequest
- type CreateAlarmRequestParams
- type CreateAlarmResponse
- type CreateAlarmResponseParams
- type DeleteAlarmRequest
- type DeleteAlarmRequestParams
- type DeleteAlarmResponse
- type DeleteAlarmResponseParams
- type DescribeAlarmsRequest
- type DescribeAlarmsRequestParams
- type DescribeAlarmsResponse
- type DescribeAlarmsResponseParams
- type EnableAlarmRequest
- type EnableAlarmRequestParams
- type EnableAlarmResponse
- type EnableAlarmResponseParams
- type UpdateAlarmRequest
- type UpdateAlarmRequestParams
- type UpdateAlarmResponse
- type UpdateAlarmResponseParams
Constants ¶
const ( // Internal error. INTERNALERROR = "InternalError" // Parameter value error. INVALIDPARAMETERVALUE = "InvalidParameterValue" // Alarm rule does not exist. RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" // Member not in organization. RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" // Product is not exist. RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" // UserQuota is not exist. RESOURCENOTFOUND_USERQUOTANOTEXIST = "ResourceNotFound.UserQuotaNotExist" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // Alarm name is exist. UNSUPPORTEDOPERATION_ALARMISEXIST = "UnsupportedOperation.AlarmIsExist" )
const APIVersion = "2024-12-04"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alarm ¶
type Alarm struct {
// Alarm rule ID.
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// Alarm rule name.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Product ID
ProductId *uint64 `json:"ProductId,omitnil,omitempty" name:"ProductId"`
// Quota ID.
QuotaId *uint64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// Alarm condition.
Metrics *int64 `json:"Metrics,omitnil,omitempty" name:"Metrics"`
// Alarm frequency.
Frequency *int64 `json:"Frequency,omitnil,omitempty" name:"Frequency"`
// Specifies the Alarm threshold. valid values: 0-100.
Threshold *int64 `json:"Threshold,omitnil,omitempty" name:"Threshold"`
// Creator UIN
OwnerUin *int64 `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"`
// Specifies the uin of the rule owner.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
// Specifies the quota name.
QuotaName *string `json:"QuotaName,omitnil,omitempty" name:"QuotaName"`
// Product name
ProductName *string `json:"ProductName,omitnil,omitempty" name:"ProductName"`
// Whether to delete. 1: not deleted.
// 2: delete.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateAlarm ¶
func (c *Client) CreateAlarm(request *CreateAlarmRequest) (response *CreateAlarmResponse, err error)
CreateAlarm Add alarm rules
error code that may be returned:
RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" RESOURCENOTFOUND_USERQUOTANOTEXIST = "ResourceNotFound.UserQuotaNotExist" UNSUPPORTEDOPERATION_ALARMISEXIST = "UnsupportedOperation.AlarmIsExist"
func (*Client) CreateAlarmWithContext ¶
func (c *Client) CreateAlarmWithContext(ctx context.Context, request *CreateAlarmRequest) (response *CreateAlarmResponse, err error)
CreateAlarm Add alarm rules
error code that may be returned:
RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" RESOURCENOTFOUND_USERQUOTANOTEXIST = "ResourceNotFound.UserQuotaNotExist" UNSUPPORTEDOPERATION_ALARMISEXIST = "UnsupportedOperation.AlarmIsExist"
func (*Client) DeleteAlarm ¶
func (c *Client) DeleteAlarm(request *DeleteAlarmRequest) (response *DeleteAlarmResponse, err error)
DeleteAlarm Deletes alarm rules
error code that may be returned:
RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteAlarmWithContext ¶
func (c *Client) DeleteAlarmWithContext(ctx context.Context, request *DeleteAlarmRequest) (response *DeleteAlarmResponse, err error)
DeleteAlarm Deletes alarm rules
error code that may be returned:
RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeAlarms ¶
func (c *Client) DescribeAlarms(request *DescribeAlarmsRequest) (response *DescribeAlarmsResponse, err error)
DescribeAlarms This API is used to query the alarm rule list.
error code that may be returned:
INTERNALERROR = "InternalError" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist"
func (*Client) DescribeAlarmsWithContext ¶
func (c *Client) DescribeAlarmsWithContext(ctx context.Context, request *DescribeAlarmsRequest) (response *DescribeAlarmsResponse, err error)
DescribeAlarms This API is used to query the alarm rule list.
error code that may be returned:
INTERNALERROR = "InternalError" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist"
func (*Client) EnableAlarm ¶
func (c *Client) EnableAlarm(request *EnableAlarmRequest) (response *EnableAlarmResponse, err error)
EnableAlarm This API is used to enable alarm rules.
error code that may be returned:
RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) EnableAlarmWithContext ¶
func (c *Client) EnableAlarmWithContext(ctx context.Context, request *EnableAlarmRequest) (response *EnableAlarmResponse, err error)
EnableAlarm This API is used to enable alarm rules.
error code that may be returned:
RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) UpdateAlarm ¶
func (c *Client) UpdateAlarm(request *UpdateAlarmRequest) (response *UpdateAlarmResponse, err error)
UpdateAlarm Modifies alarm rules
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" RESOURCENOTFOUND_USERQUOTANOTEXIST = "ResourceNotFound.UserQuotaNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_ALARMISEXIST = "UnsupportedOperation.AlarmIsExist"
func (*Client) UpdateAlarmWithContext ¶
func (c *Client) UpdateAlarmWithContext(ctx context.Context, request *UpdateAlarmRequest) (response *UpdateAlarmResponse, err error)
UpdateAlarm Modifies alarm rules
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_ALARMNOTEXIST = "ResourceNotFound.AlarmNotExist" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" RESOURCENOTFOUND_USERQUOTANOTEXIST = "ResourceNotFound.UserQuotaNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_ALARMISEXIST = "UnsupportedOperation.AlarmIsExist"
type CreateAlarmRequest ¶
type CreateAlarmRequest struct {
*tchttp.BaseRequest
// Alarm rule name. specifies the name of the Alarm rule.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Product ID.
ProductId *int64 `json:"ProductId,omitnil,omitempty" name:"ProductId"`
// Quota ID.
QuotaId *int64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// Alert metrics 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.
Metrics *int64 `json:"Metrics,omitnil,omitempty" name:"Metrics"`
// Specifies the Alarm threshold. value range: 0-100.
Threshold *int64 `json:"Threshold,omitnil,omitempty" name:"Threshold"`
// Alarm frequency.
Frequency *int64 `json:"Frequency,omitnil,omitempty" name:"Frequency"`
// Member UIN.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
func NewCreateAlarmRequest ¶
func NewCreateAlarmRequest() (request *CreateAlarmRequest)
func (*CreateAlarmRequest) FromJsonString ¶
func (r *CreateAlarmRequest) 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 (*CreateAlarmRequest) ToJsonString ¶
func (r *CreateAlarmRequest) ToJsonString() string
type CreateAlarmRequestParams ¶
type CreateAlarmRequestParams struct {
// Alarm rule name. specifies the name of the Alarm rule.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Product ID.
ProductId *int64 `json:"ProductId,omitnil,omitempty" name:"ProductId"`
// Quota ID.
QuotaId *int64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// Alert metrics 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.
Metrics *int64 `json:"Metrics,omitnil,omitempty" name:"Metrics"`
// Specifies the Alarm threshold. value range: 0-100.
Threshold *int64 `json:"Threshold,omitnil,omitempty" name:"Threshold"`
// Alarm frequency.
Frequency *int64 `json:"Frequency,omitnil,omitempty" name:"Frequency"`
// Member UIN.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
Predefined struct for user
type CreateAlarmResponse ¶
type CreateAlarmResponse struct {
*tchttp.BaseResponse
Response *CreateAlarmResponseParams `json:"Response"`
}
func NewCreateAlarmResponse ¶
func NewCreateAlarmResponse() (response *CreateAlarmResponse)
func (*CreateAlarmResponse) FromJsonString ¶
func (r *CreateAlarmResponse) 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 (*CreateAlarmResponse) ToJsonString ¶
func (r *CreateAlarmResponse) ToJsonString() string
type CreateAlarmResponseParams ¶
type CreateAlarmResponseParams struct {
// 1001
AlarmId *int64 `json:"AlarmId,omitnil,omitempty" name:"AlarmId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteAlarmRequest ¶
type DeleteAlarmRequest struct {
*tchttp.BaseRequest
// Rule ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// Specifies the member uin of the rule owner.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
func NewDeleteAlarmRequest ¶
func NewDeleteAlarmRequest() (request *DeleteAlarmRequest)
func (*DeleteAlarmRequest) FromJsonString ¶
func (r *DeleteAlarmRequest) 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 (*DeleteAlarmRequest) ToJsonString ¶
func (r *DeleteAlarmRequest) ToJsonString() string
type DeleteAlarmRequestParams ¶
type DeleteAlarmRequestParams struct {
// Rule ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// Specifies the member uin of the rule owner.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
Predefined struct for user
type DeleteAlarmResponse ¶
type DeleteAlarmResponse struct {
*tchttp.BaseResponse
Response *DeleteAlarmResponseParams `json:"Response"`
}
func NewDeleteAlarmResponse ¶
func NewDeleteAlarmResponse() (response *DeleteAlarmResponse)
func (*DeleteAlarmResponse) FromJsonString ¶
func (r *DeleteAlarmResponse) 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 (*DeleteAlarmResponse) ToJsonString ¶
func (r *DeleteAlarmResponse) ToJsonString() string
type DeleteAlarmResponseParams ¶
type DeleteAlarmResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeAlarmsRequest ¶
type DescribeAlarmsRequest struct {
*tchttp.BaseRequest
// Number of items per page. maximum 100.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Offset.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Product ID.
ProductId *int64 `json:"ProductId,omitnil,omitempty" name:"ProductId"`
// Quota ID.
QuotaId *int64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// Alarm, quota name.
Content *string `json:"Content,omitnil,omitempty" name:"Content"`
// Member uins.
MemberUins []*int64 `json:"MemberUins,omitnil,omitempty" name:"MemberUins"`
// AlAlarm metric.
Metrics *int64 `json:"Metrics,omitnil,omitempty" name:"Metrics"`
// Rule ID
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}
func NewDescribeAlarmsRequest ¶
func NewDescribeAlarmsRequest() (request *DescribeAlarmsRequest)
func (*DescribeAlarmsRequest) FromJsonString ¶
func (r *DescribeAlarmsRequest) 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 (*DescribeAlarmsRequest) ToJsonString ¶
func (r *DescribeAlarmsRequest) ToJsonString() string
type DescribeAlarmsRequestParams ¶
type DescribeAlarmsRequestParams struct {
// Number of items per page. maximum 100.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Offset.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Product ID.
ProductId *int64 `json:"ProductId,omitnil,omitempty" name:"ProductId"`
// Quota ID.
QuotaId *int64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// Alarm, quota name.
Content *string `json:"Content,omitnil,omitempty" name:"Content"`
// Member uins.
MemberUins []*int64 `json:"MemberUins,omitnil,omitempty" name:"MemberUins"`
// AlAlarm metric.
Metrics *int64 `json:"Metrics,omitnil,omitempty" name:"Metrics"`
// Rule ID
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}
Predefined struct for user
type DescribeAlarmsResponse ¶
type DescribeAlarmsResponse struct {
*tchttp.BaseResponse
Response *DescribeAlarmsResponseParams `json:"Response"`
}
func NewDescribeAlarmsResponse ¶
func NewDescribeAlarmsResponse() (response *DescribeAlarmsResponse)
func (*DescribeAlarmsResponse) FromJsonString ¶
func (r *DescribeAlarmsResponse) 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 (*DescribeAlarmsResponse) ToJsonString ¶
func (r *DescribeAlarmsResponse) ToJsonString() string
type DescribeAlarmsResponseParams ¶
type DescribeAlarmsResponseParams struct {
// Total number.
Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// List of rules
Data []*Alarm `json:"Data,omitnil,omitempty" name:"Data"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type EnableAlarmRequest ¶
type EnableAlarmRequest struct {
*tchttp.BaseRequest
// Rule ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// Specifies the member uin of the rule owner.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
func NewEnableAlarmRequest ¶
func NewEnableAlarmRequest() (request *EnableAlarmRequest)
func (*EnableAlarmRequest) FromJsonString ¶
func (r *EnableAlarmRequest) 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 (*EnableAlarmRequest) ToJsonString ¶
func (r *EnableAlarmRequest) ToJsonString() string
type EnableAlarmRequestParams ¶
type EnableAlarmRequestParams struct {
// Rule ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// Specifies the member uin of the rule owner.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
Predefined struct for user
type EnableAlarmResponse ¶
type EnableAlarmResponse struct {
*tchttp.BaseResponse
Response *EnableAlarmResponseParams `json:"Response"`
}
func NewEnableAlarmResponse ¶
func NewEnableAlarmResponse() (response *EnableAlarmResponse)
func (*EnableAlarmResponse) FromJsonString ¶
func (r *EnableAlarmResponse) 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 (*EnableAlarmResponse) ToJsonString ¶
func (r *EnableAlarmResponse) ToJsonString() string
type EnableAlarmResponseParams ¶
type EnableAlarmResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type UpdateAlarmRequest ¶
type UpdateAlarmRequest struct {
*tchttp.BaseRequest
// ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// Alarm rule name.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Product ID.
ProductId *int64 `json:"ProductId,omitnil,omitempty" name:"ProductId"`
// Quota ID.
QuotaId *int64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.
Metrics *int64 `json:"Metrics,omitnil,omitempty" name:"Metrics"`
// Specifies the Alarm threshold. valid values: 0-100.
Threshold *int64 `json:"Threshold,omitnil,omitempty" name:"Threshold"`
// Alarm frequency.
Frequency *int64 `json:"Frequency,omitnil,omitempty" name:"Frequency"`
// Specifies the uin of the rule owner.
// Operates non-group account rules. this parameter can be omitted.
// Operates the organization account rule. specifies the uin of all users under the current rule.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
func NewUpdateAlarmRequest ¶
func NewUpdateAlarmRequest() (request *UpdateAlarmRequest)
func (*UpdateAlarmRequest) FromJsonString ¶
func (r *UpdateAlarmRequest) 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 (*UpdateAlarmRequest) ToJsonString ¶
func (r *UpdateAlarmRequest) ToJsonString() string
type UpdateAlarmRequestParams ¶
type UpdateAlarmRequestParams struct {
// ID
Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// Alarm rule name.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// Product ID.
ProductId *int64 `json:"ProductId,omitnil,omitempty" name:"ProductId"`
// Quota ID.
QuotaId *int64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.
Metrics *int64 `json:"Metrics,omitnil,omitempty" name:"Metrics"`
// Specifies the Alarm threshold. valid values: 0-100.
Threshold *int64 `json:"Threshold,omitnil,omitempty" name:"Threshold"`
// Alarm frequency.
Frequency *int64 `json:"Frequency,omitnil,omitempty" name:"Frequency"`
// Specifies the uin of the rule owner.
// Operates non-group account rules. this parameter can be omitted.
// Operates the organization account rule. specifies the uin of all users under the current rule.
MemberUin *int64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}
Predefined struct for user
type UpdateAlarmResponse ¶
type UpdateAlarmResponse struct {
*tchttp.BaseResponse
Response *UpdateAlarmResponseParams `json:"Response"`
}
func NewUpdateAlarmResponse ¶
func NewUpdateAlarmResponse() (response *UpdateAlarmResponse)
func (*UpdateAlarmResponse) FromJsonString ¶
func (r *UpdateAlarmResponse) 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 (*UpdateAlarmResponse) ToJsonString ¶
func (r *UpdateAlarmResponse) ToJsonString() string
type UpdateAlarmResponseParams ¶
type UpdateAlarmResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user