model

package
v0.0.79 Latest Latest
Warning

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

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

type AddResourceGroupsResourcesBatchResponse added in v0.0.79

type AddResourceGroupsResourcesBatchResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (AddResourceGroupsResourcesBatchResponse) String added in v0.0.79

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 AlarmId added in v0.0.79

type AlarmId struct {
}

告警的id以al开头,包含22个数字或字母

func (AlarmId) String added in v0.0.79

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

type DeleteAlarmResourcesResponse added in v0.0.79

type DeleteAlarmResourcesResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteAlarmResourcesResponse) String added in v0.0.79

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

type DeleteResourceGroupsResourcesBatchResponse added in v0.0.79

type DeleteResourceGroupsResourcesBatchResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteResourceGroupsResourcesBatchResponse) String added in v0.0.79

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 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

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 Namespace added in v0.0.79

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

func (Namespace) String added in v0.0.79

func (o Namespace) 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 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"`
}

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

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

Jump to

Keyboard shortcuts

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