model

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 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

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"`
}

指标信息

func (Metric) String

func (o Metric) String() string

type MetricDimension added in v0.0.79

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

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

指标维度

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"`
}

func (Policy) String added in v0.0.79

func (o Policy) String() string

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

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"`
}

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