model

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

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 Dimension

type Dimension struct {
	Name string `json:"name"`

	Value *string `json:"value,omitempty"`
}

指标维度

func (Dimension) String

func (o Dimension) 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

type Metric

type Metric struct {
	Namespace *string `json:"namespace,omitempty"`

	MetricName *string `json:"metric_name,omitempty"`

	Dimensions *[]Dimension `json:"dimensions,omitempty"`
}

指标信息

func (Metric) String

func (o Metric) String() string

type SmnAction

type SmnAction struct {
	Type SmnActionType `json:"type"`

	NotificationList []string `json:"notification_list"`
}

func (SmnAction) String

func (o SmnAction) String() string

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 SmnUrn

type SmnUrn struct {
}

func (SmnUrn) String

func (o SmnUrn) String() string

Jump to

Keyboard shortcuts

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