Documentation ¶
Index ¶
- type AdditionalInfo
- type AlarmCondition
- type AlarmHistoryItemV2
- type Dimension
- type ListAlarmHistoriesRequest
- type ListAlarmHistoriesResponse
- type ListAlarmResponseBodyAlarms
- type ListAlarmsRequest
- type ListAlarmsResponse
- type Metric
- type MetricDimension
- type Policy
- type PolicyPeriod
- type PolicyPeriodEnum
- type PolicySuppressDuration
- type PolicySuppressDurationEnum
- type ResourcesInListResp
- type SmnAction
- type SmnActionType
- type SmnActionTypeEnum
- type SmnUrn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 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 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 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 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
Source Files ¶
- model_additional_info.go
- model_alarm_condition.go
- model_alarm_history_item_v2.go
- model_dimension.go
- model_list_alarm_histories_request.go
- model_list_alarm_histories_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_policy.go
- model_resources_in_list_resp.go
- model_smn_action.go
- model_smn_urn.go
Click to show internal directories.
Click to hide internal directories.