Documentation
¶
Index ¶
- type AddAlarmResourcesRequest
- type AddAlarmResourcesResponse
- type AddResourceGroupsResourcesBatchRequest
- type AddResourceGroupsResourcesBatchResponse
- type AdditionalInfo
- type AlarmCondition
- type AlarmHistoryItemV2
- type AlarmId
- type CreateAlarmRequest
- type CreateAlarmResponse
- type DeleteAlarmRequest
- type DeleteAlarmResourcesRequest
- type DeleteAlarmResourcesResponse
- type DeleteAlarmResponse
- type DeleteResourceGroupsResourcesBatchRequest
- type DeleteResourceGroupsResourcesBatchResponse
- type Dimension
- type ListAlarmHistoriesRequest
- type ListAlarmHistoriesResponse
- type ListAlarmResourcesRequest
- type ListAlarmResourcesResponse
- type ListAlarmResponseBodyAlarms
- type ListAlarmsRequest
- type ListAlarmsResponse
- type Metric
- type MetricDimension
- type Namespace
- type Policy
- type PolicyPeriod
- type PolicyPeriodEnum
- type PolicySuppressDuration
- type PolicySuppressDurationEnum
- type PostAlarmsReqV2
- type PutAlarmActionsReq
- type ResourcesInListResp
- type ResourcesReq
- type ResourcesReqV2
- type ResourcesRg
- type SmnAction
- type SmnActionType
- type SmnActionTypeEnum
- type SmnUrn
- type UpdateAlarmActionRequest
- type UpdateAlarmActionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAlarmResourcesRequest ¶ added in v0.0.79
type AddAlarmResourcesRequest struct { AlarmId string `json:"alarm_id"` Body *ResourcesReqV2 `json:"body,omitempty"` }
Request Object
func (AddAlarmResourcesRequest) String ¶ added in v0.0.79
func (o AddAlarmResourcesRequest) String() string
type AddAlarmResourcesResponse ¶ added in v0.0.79
type AddAlarmResourcesResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (AddAlarmResourcesResponse) String ¶ added in v0.0.79
func (o AddAlarmResourcesResponse) String() string
type AddResourceGroupsResourcesBatchRequest ¶ added in v0.0.79
type AddResourceGroupsResourcesBatchRequest struct { GroupId string `json:"group_id"` Body *ResourcesReq `json:"body,omitempty"` }
Request Object
func (AddResourceGroupsResourcesBatchRequest) String ¶ added in v0.0.79
func (o AddResourceGroupsResourcesBatchRequest) String() string
type AddResourceGroupsResourcesBatchResponse ¶ added in v0.0.79
type AddResourceGroupsResourcesBatchResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (AddResourceGroupsResourcesBatchResponse) String ¶ added in v0.0.79
func (o AddResourceGroupsResourcesBatchResponse) String() string
type AdditionalInfo ¶
type AdditionalInfo struct { ResourceId *string `json:"resource_id,omitempty"` ResourceName *string `json:"resource_name,omitempty"` EventId *string `json:"event_id,omitempty"` }
告警历史额外字段,仅针对事件监控告警场景所产生的告警历史信息。
func (AdditionalInfo) String ¶
func (o AdditionalInfo) String() string
type AlarmCondition ¶
type AlarmCondition struct { Period int32 `json:"period"` Filter string `json:"filter"` ComparisonOperator string `json:"comparison_operator"` Value float32 `json:"value"` Unit *string `json:"unit,omitempty"` Count int32 `json:"count"` SuppressDuration *int32 `json:"suppress_duration,omitempty"` }
告警触发条件
func (AlarmCondition) String ¶
func (o AlarmCondition) String() string
type AlarmHistoryItemV2 ¶
type AlarmHistoryItemV2 struct { RecordId *string `json:"record_id,omitempty"` AlarmId *string `json:"alarm_id,omitempty"` Name *string `json:"name,omitempty"` Status *string `json:"status,omitempty"` Level *int32 `json:"level,omitempty"` Type *string `json:"type,omitempty"` ActionEnabled *bool `json:"action_enabled,omitempty"` BeginTime *sdktime.SdkTime `json:"begin_time,omitempty"` EndTime *sdktime.SdkTime `json:"end_time,omitempty"` Metric *Metric `json:"metric,omitempty"` Condition *AlarmCondition `json:"condition,omitempty"` AdditionalInfo *AdditionalInfo `json:"additional_info,omitempty"` AlarmActions *[]SmnAction `json:"alarm_actions,omitempty"` OkActions *[]SmnAction `json:"ok_actions,omitempty"` DataPoints *[]interface{} `json:"data_points,omitempty"` }
告警历史详细信息
func (AlarmHistoryItemV2) String ¶
func (o AlarmHistoryItemV2) String() string
type CreateAlarmRequest ¶ added in v0.0.79
type CreateAlarmRequest struct {
Body *PostAlarmsReqV2 `json:"body,omitempty"`
}
Request Object
func (CreateAlarmRequest) String ¶ added in v0.0.79
func (o CreateAlarmRequest) String() string
type CreateAlarmResponse ¶ added in v0.0.79
type CreateAlarmResponse struct { AlarmId *string `json:"alarm_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateAlarmResponse) String ¶ added in v0.0.79
func (o CreateAlarmResponse) String() string
type DeleteAlarmRequest ¶ added in v0.0.79
type DeleteAlarmRequest struct {
AlarmId string `json:"alarm_id"`
}
Request Object
func (DeleteAlarmRequest) String ¶ added in v0.0.79
func (o DeleteAlarmRequest) String() string
type DeleteAlarmResourcesRequest ¶ added in v0.0.79
type DeleteAlarmResourcesRequest struct { AlarmId string `json:"alarm_id"` Body *ResourcesReqV2 `json:"body,omitempty"` }
Request Object
func (DeleteAlarmResourcesRequest) String ¶ added in v0.0.79
func (o DeleteAlarmResourcesRequest) String() string
type DeleteAlarmResourcesResponse ¶ added in v0.0.79
type DeleteAlarmResourcesResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteAlarmResourcesResponse) String ¶ added in v0.0.79
func (o DeleteAlarmResourcesResponse) String() string
type DeleteAlarmResponse ¶ added in v0.0.79
type DeleteAlarmResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteAlarmResponse) String ¶ added in v0.0.79
func (o DeleteAlarmResponse) String() string
type DeleteResourceGroupsResourcesBatchRequest ¶ added in v0.0.79
type DeleteResourceGroupsResourcesBatchRequest struct { GroupId string `json:"group_id"` Body *ResourcesReq `json:"body,omitempty"` }
Request Object
func (DeleteResourceGroupsResourcesBatchRequest) String ¶ added in v0.0.79
func (o DeleteResourceGroupsResourcesBatchRequest) String() string
type DeleteResourceGroupsResourcesBatchResponse ¶ added in v0.0.79
type DeleteResourceGroupsResourcesBatchResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteResourceGroupsResourcesBatchResponse) String ¶ added in v0.0.79
func (o DeleteResourceGroupsResourcesBatchResponse) String() string
type ListAlarmHistoriesRequest ¶
type ListAlarmHistoriesRequest struct { ContentType string `json:"Content-Type"` AlarmId *string `json:"alarm_id,omitempty"` Name *string `json:"name,omitempty"` Status *string `json:"status,omitempty"` Level *int32 `json:"level,omitempty"` Namespace *string `json:"namespace,omitempty"` ResourceId *string `json:"resource_id,omitempty"` From *string `json:"from,omitempty"` To *string `json:"to,omitempty"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListAlarmHistoriesRequest) String ¶
func (o ListAlarmHistoriesRequest) String() string
type ListAlarmHistoriesResponse ¶
type ListAlarmHistoriesResponse struct { AlarmHistories *[]AlarmHistoryItemV2 `json:"alarm_histories,omitempty"` Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAlarmHistoriesResponse) String ¶
func (o ListAlarmHistoriesResponse) String() string
type ListAlarmResourcesRequest ¶ added in v0.0.79
type ListAlarmResourcesRequest struct { AlarmId string `json:"alarm_id"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListAlarmResourcesRequest) String ¶ added in v0.0.79
func (o ListAlarmResourcesRequest) String() string
type ListAlarmResourcesResponse ¶ added in v0.0.79
type ListAlarmResourcesResponse struct { Resources *[][]Dimension `json:"resources,omitempty"` Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAlarmResourcesResponse) String ¶ added in v0.0.79
func (o ListAlarmResourcesResponse) String() string
type ListAlarmResponseBodyAlarms ¶ added in v0.0.79
type ListAlarmResponseBodyAlarms struct { AlarmId *string `json:"alarm_id,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Namespace *string `json:"namespace,omitempty"` Policies *[]Policy `json:"policies,omitempty"` Resources *[]ResourcesInListResp `json:"resources,omitempty"` Type *string `json:"type,omitempty"` Enabled *bool `json:"enabled,omitempty"` ActionEnabled *bool `json:"action_enabled,omitempty"` AlarmActions *[]SmnAction `json:"alarm_actions,omitempty"` OkActions *[]SmnAction `json:"ok_actions,omitempty"` InsufficientdataActions *[]SmnAction `json:"insufficientdata_actions,omitempty"` ActionBeginTime *string `json:"action_begin_time,omitempty"` ActionEndTime *string `json:"action_end_time,omitempty"` UpdateTime *string `json:"update_time,omitempty"` OneClickAlarmFlag *int32 `json:"one_click_alarm_flag,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
func (ListAlarmResponseBodyAlarms) String ¶ added in v0.0.79
func (o ListAlarmResponseBodyAlarms) String() string
type ListAlarmsRequest ¶ added in v0.0.79
type ListAlarmsRequest struct { AlarmId *string `json:"alarm_id,omitempty"` Name *string `json:"name,omitempty"` Namespace *string `json:"namespace,omitempty"` ResourceId *string `json:"resource_id,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListAlarmsRequest) String ¶ added in v0.0.79
func (o ListAlarmsRequest) String() string
type ListAlarmsResponse ¶ added in v0.0.79
type ListAlarmsResponse struct { Alarms *[]ListAlarmResponseBodyAlarms `json:"alarms,omitempty"` Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAlarmsResponse) String ¶ added in v0.0.79
func (o ListAlarmsResponse) String() string
type Metric ¶
type Metric struct { Namespace *string `json:"namespace,omitempty"` MetricName *string `json:"metric_name,omitempty"` Dimensions *[]Dimension `json:"dimensions,omitempty"` }
指标信息
type MetricDimension ¶ added in v0.0.79
指标维度
func (MetricDimension) String ¶ added in v0.0.79
func (o MetricDimension) String() string
type Namespace ¶ added in v0.0.79
type Namespace struct {
Namespace *string `json:"namespace,omitempty"`
}
type Policy ¶ added in v0.0.79
type Policy struct { MetricName *string `json:"metric_name,omitempty"` Period *PolicyPeriod `json:"period,omitempty"` Filter *string `json:"filter,omitempty"` ComparisonOperator *string `json:"comparison_operator,omitempty"` Value *float32 `json:"value,omitempty"` Unit *string `json:"unit,omitempty"` Count *int32 `json:"count,omitempty"` Type *string `json:"type,omitempty"` SuppressDuration *PolicySuppressDuration `json:"suppress_duration,omitempty"` Level *int32 `json:"level,omitempty"` }
type PolicyPeriod ¶ added in v0.0.79
type PolicyPeriod struct {
// contains filtered or unexported fields
}
func (PolicyPeriod) MarshalJSON ¶ added in v0.0.79
func (c PolicyPeriod) MarshalJSON() ([]byte, error)
func (*PolicyPeriod) UnmarshalJSON ¶ added in v0.0.79
func (c *PolicyPeriod) UnmarshalJSON(b []byte) error
type PolicyPeriodEnum ¶ added in v0.0.79
type PolicyPeriodEnum struct { E_0 PolicyPeriod E_1 PolicyPeriod E_300 PolicyPeriod E_1200 PolicyPeriod E_3600 PolicyPeriod E_14400 PolicyPeriod E_86400 PolicyPeriod }
func GetPolicyPeriodEnum ¶ added in v0.0.79
func GetPolicyPeriodEnum() PolicyPeriodEnum
type PolicySuppressDuration ¶ added in v0.0.79
type PolicySuppressDuration struct {
// contains filtered or unexported fields
}
func (PolicySuppressDuration) MarshalJSON ¶ added in v0.0.79
func (c PolicySuppressDuration) MarshalJSON() ([]byte, error)
func (*PolicySuppressDuration) UnmarshalJSON ¶ added in v0.0.79
func (c *PolicySuppressDuration) UnmarshalJSON(b []byte) error
type PolicySuppressDurationEnum ¶ added in v0.0.79
type PolicySuppressDurationEnum struct { E_0 PolicySuppressDuration E_300 PolicySuppressDuration E_600 PolicySuppressDuration E_900 PolicySuppressDuration E_1800 PolicySuppressDuration E_3600 PolicySuppressDuration E_10800 PolicySuppressDuration E_21600 PolicySuppressDuration E_43200 PolicySuppressDuration E_86400 PolicySuppressDuration }
func GetPolicySuppressDurationEnum ¶ added in v0.0.79
func GetPolicySuppressDurationEnum() PolicySuppressDurationEnum
type PostAlarmsReqV2 ¶ added in v0.0.79
type PostAlarmsReqV2 struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Namespace string `json:"namespace"` ResourceGroupId *string `json:"resource_group_id,omitempty"` Resources [][]Dimension `json:"resources"` Policies []Policy `json:"policies"` Type *string `json:"type,omitempty"` AlarmActions *[]SmnAction `json:"alarm_actions,omitempty"` OkActions *[]SmnAction `json:"ok_actions,omitempty"` ActionBeginTime *string `json:"action_begin_time,omitempty"` ActionEndTime *string `json:"action_end_time,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` Enabled bool `json:"enabled"` ActionEnabled bool `json:"action_enabled"` }
func (PostAlarmsReqV2) String ¶ added in v0.0.79
func (o PostAlarmsReqV2) String() string
type PutAlarmActionsReq ¶ added in v0.0.79
type PutAlarmActionsReq struct { Name string `json:"name"` Description *string `json:"description,omitempty"` ActionEnabled *string `json:"action_enabled,omitempty"` AlarmActions *[]SmnAction `json:"alarm_actions,omitempty"` OkActions *[]SmnAction `json:"ok_actions,omitempty"` ActionBeginTime *string `json:"action_begin_time,omitempty"` ActionEndTime *string `json:"action_end_time,omitempty"` }
func (PutAlarmActionsReq) String ¶ added in v0.0.79
func (o PutAlarmActionsReq) String() string
type ResourcesInListResp ¶ added in v0.0.79
type ResourcesInListResp struct { ResourceGroupId *string `json:"resource_group_id,omitempty"` ResourceGroupName *string `json:"resource_group_name,omitempty"` Dimensions *[]MetricDimension `json:"dimensions,omitempty"` }
func (ResourcesInListResp) String ¶ added in v0.0.79
func (o ResourcesInListResp) String() string
type ResourcesReq ¶ added in v0.0.79
type ResourcesReq struct {
Resources []ResourcesRg `json:"resources"`
}
func (ResourcesReq) String ¶ added in v0.0.79
func (o ResourcesReq) String() string
type ResourcesReqV2 ¶ added in v0.0.79
type ResourcesReqV2 struct {
Resources [][]Dimension `json:"resources"`
}
func (ResourcesReqV2) String ¶ added in v0.0.79
func (o ResourcesReqV2) String() string
type ResourcesRg ¶ added in v0.0.79
type ResourcesRg struct { Namespace *Namespace `json:"namespace,omitempty"` Dimensions *[]Dimension `json:"dimensions,omitempty"` }
func (ResourcesRg) String ¶ added in v0.0.79
func (o ResourcesRg) String() string
type SmnAction ¶
type SmnAction struct { Type SmnActionType `json:"type"` NotificationList []string `json:"notification_list"` }
type SmnActionType ¶
type SmnActionType struct {
// contains filtered or unexported fields
}
func (SmnActionType) MarshalJSON ¶
func (c SmnActionType) MarshalJSON() ([]byte, error)
func (*SmnActionType) UnmarshalJSON ¶
func (c *SmnActionType) UnmarshalJSON(b []byte) error
type SmnActionTypeEnum ¶
type SmnActionTypeEnum struct { NOTIFICATION SmnActionType AUTOSCALING SmnActionType GROUPWATCH SmnActionType ECS_RECOVERY SmnActionType CONTACT SmnActionType CONTACT_GROUP SmnActionType }
func GetSmnActionTypeEnum ¶
func GetSmnActionTypeEnum() SmnActionTypeEnum
type UpdateAlarmActionRequest ¶ added in v0.0.79
type UpdateAlarmActionRequest struct { AlarmId string `json:"alarm_id"` Body *PutAlarmActionsReq `json:"body,omitempty"` }
Request Object
func (UpdateAlarmActionRequest) String ¶ added in v0.0.79
func (o UpdateAlarmActionRequest) String() string
type UpdateAlarmActionResponse ¶ added in v0.0.79
type UpdateAlarmActionResponse struct { Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` ActionEnabled *string `json:"action_enabled,omitempty"` AlarmActions *[]SmnAction `json:"alarm_actions,omitempty"` OkActions *[]SmnAction `json:"ok_actions,omitempty"` ActionBeginTime *string `json:"action_begin_time,omitempty"` ActionEndTime *string `json:"action_end_time,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateAlarmActionResponse) String ¶ added in v0.0.79
func (o UpdateAlarmActionResponse) String() string
Source Files
¶
- model_add_alarm_resources_request.go
- model_add_alarm_resources_response.go
- model_add_resource_groups_resources_batch_request.go
- model_add_resource_groups_resources_batch_response.go
- model_additional_info.go
- model_alarm_condition.go
- model_alarm_history_item_v2.go
- model_alarm_id.go
- model_create_alarm_request.go
- model_create_alarm_response.go
- model_delete_alarm_request.go
- model_delete_alarm_resources_request.go
- model_delete_alarm_resources_response.go
- model_delete_alarm_response.go
- model_delete_resource_groups_resources_batch_request.go
- model_delete_resource_groups_resources_batch_response.go
- model_dimension.go
- model_list_alarm_histories_request.go
- model_list_alarm_histories_response.go
- model_list_alarm_resources_request.go
- model_list_alarm_resources_response.go
- model_list_alarm_response_body_alarms.go
- model_list_alarms_request.go
- model_list_alarms_response.go
- model_metric.go
- model_metric_dimension.go
- model_namespace.go
- model_policy.go
- model_post_alarms_req_v2.go
- model_put_alarm_actions_req.go
- model_resources_in_list_resp.go
- model_resources_req.go
- model_resources_req_v2.go
- model_resources_rg.go
- model_smn_action.go
- model_smn_urn.go
- model_update_alarm_action_request.go
- model_update_alarm_action_response.go
Click to show internal directories.
Click to hide internal directories.