Documentation ¶
Index ¶
- type AddAlarmRuleResourcesRequest
- type AddAlarmRuleResourcesResponse
- type AdditionalInfo
- type AgentDimension
- type AgentDimensionName
- type AgentDimensionNameEnum
- type AlarmCondition
- type AlarmConditionPeriod
- type AlarmConditionPeriodEnum
- type AlarmConditionSuppressDuration
- type AlarmConditionSuppressDurationEnum
- type AlarmDescription
- type AlarmEnabled
- type AlarmHistoryItemV2
- type AlarmHistoryItemV2Level
- type AlarmHistoryItemV2LevelEnum
- type AlarmHistoryItemV2Status
- type AlarmHistoryItemV2StatusEnum
- type AlarmId
- type AlarmLevel
- type AlarmName
- type AlarmTemplateId
- type AlarmTemplatePolicies
- type AlarmTemplatePoliciesPeriod
- type AlarmTemplatePoliciesPeriodEnum
- type AlarmTemplatePoliciesSuppressDuration
- type AlarmTemplatePoliciesSuppressDurationEnum
- type AlarmTemplates
- type AlarmType
- type AlarmTypeEnum
- type AssociationAlarmTotal
- type AssociationResourceGroup
- type BatchCreateResourcesRequest
- type BatchCreateResourcesResponse
- type BatchDeleteAlarmRulesRequest
- type BatchDeleteAlarmRulesResponse
- type BatchDeleteAlarmTemplatesRequest
- type BatchDeleteAlarmTemplatesRequestBody
- type BatchDeleteAlarmTemplatesResponse
- type BatchDeleteAlarmsRequestBody
- type BatchDeleteResourceGroupsRequest
- type BatchDeleteResourceGroupsRequestBody
- type BatchDeleteResourceGroupsResponse
- type BatchDeleteResourcesRequest
- type BatchDeleteResourcesResponse
- type BatchEnableAlarmRulesRequest
- type BatchEnableAlarmRulesResponse
- type BatchEnableAlarmsRequestBody
- type ComparisonOperator
- type Count
- type CreateAlarmRulesRequest
- type CreateAlarmRulesResponse
- type CreateAlarmTemplateRequest
- type CreateAlarmTemplateRequestBody
- type CreateAlarmTemplateResponse
- type CreateResourceGroupRequest
- type CreateResourceGroupRequestBody
- type CreateResourceGroupResponse
- type CreateTime
- type DataPointInfo
- type DeleteAlarmRuleResourcesRequest
- type DeleteAlarmRuleResourcesResponse
- type Dimension
- type Dimension2
- type DimensionName
- type EnterpriseProjectId
- type Filter
- type GetResourceGroupResources
- type GetResourceGroupResourcesStatus
- type GetResourceGroupResourcesStatusEnum
- type GroupId
- type GroupName
- type Level
- type ListAgentDimensionInfoRequest
- type ListAgentDimensionInfoRequestDimName
- type ListAgentDimensionInfoRequestDimNameEnum
- type ListAgentDimensionInfoResponse
- type ListAlarmHistoriesRequest
- type ListAlarmHistoriesResponse
- type ListAlarmResponseAlarms
- type ListAlarmRulePoliciesRequest
- type ListAlarmRulePoliciesResponse
- type ListAlarmRuleResourcesRequest
- type ListAlarmRuleResourcesResponse
- type ListAlarmRulesRequest
- type ListAlarmRulesResponse
- type ListAlarmTemplateAssociationAlarmsRequest
- type ListAlarmTemplateAssociationAlarmsResponse
- type ListAlarmTemplatesRequest
- type ListAlarmTemplatesRequestTemplateType
- type ListAlarmTemplatesRequestTemplateTypeEnum
- type ListAlarmTemplatesResponse
- type ListAssociationAlarmsResponseAlarms
- type ListResourceGroupsRequest
- type ListResourceGroupsRequestType
- type ListResourceGroupsRequestTypeEnum
- type ListResourceGroupsResponse
- type ListResourceGroupsServicesResourcesRequest
- type ListResourceGroupsServicesResourcesRequestStatus
- type ListResourceGroupsServicesResourcesRequestStatusEnum
- type ListResourceGroupsServicesResourcesResponse
- type Metric
- type MetricDimension
- type MetricName
- type Namespace
- type NamespaceAllowedEmpty
- type Notification
- type NotificationBeginTime
- type NotificationEnabled
- type NotificationEndTime
- type OneResourceGroupResp
- type OneResourceGroupRespType
- type OneResourceGroupRespTypeEnum
- type Policies
- type PoliciesPeriod
- type PoliciesPeriodEnum
- type PoliciesReqV2
- type PoliciesSuppressDuration
- type PoliciesSuppressDurationEnum
- type Policy
- type PolicyStatistics
- type PolicyTotal
- type PostAlarmsReqV2
- type PutResourceGroupReq
- type Resource
- type ResourceGroupId
- type ResourceGroupTagRelation
- type ResourcesInListResp
- type ResourcesReq
- type ResourcesReqV2
- type ShowAlarmTemplateRequest
- type ShowAlarmTemplateResponse
- type ShowResourceGroupRequest
- type ShowResourceGroupResponse
- type ShowResourceGroupResponseType
- type ShowResourceGroupResponseTypeEnum
- type SmnUrn
- type TemplateApplicationType
- type TemplateApplicationTypeEnum
- type TemplateDescription
- type TemplateId
- type TemplateName
- type TemplateType
- type TemplateTypeEnum
- type Unit
- type UpdateAlarmRulePoliciesRequest
- type UpdateAlarmRulePoliciesResponse
- type UpdateAlarmTemplateRequest
- type UpdateAlarmTemplateRequestBody
- type UpdateAlarmTemplateResponse
- type UpdateResourceGroupRequest
- type UpdateResourceGroupResponse
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAlarmRuleResourcesRequest ¶ added in v0.0.99
type AddAlarmRuleResourcesRequest struct { // Alarm实例ID AlarmId string `json:"alarm_id"` Body *ResourcesReqV2 `json:"body,omitempty"` }
AddAlarmRuleResourcesRequest Request Object
func (AddAlarmRuleResourcesRequest) String ¶ added in v0.0.99
func (o AddAlarmRuleResourcesRequest) String() string
type AddAlarmRuleResourcesResponse ¶ added in v0.0.99
type AddAlarmRuleResourcesResponse struct {
HttpStatusCode int `json:"-"`
}
AddAlarmRuleResourcesResponse Response Object
func (AddAlarmRuleResourcesResponse) String ¶ added in v0.0.99
func (o AddAlarmRuleResourcesResponse) String() string
type AdditionalInfo ¶
type AdditionalInfo struct { // 该条告警记录对应的资源ID;如:22d98f6c-16d2-4c2d-b424-50e79d82838f。 ResourceId *string `json:"resource_id,omitempty"` // 该条告警记录对应的资源名称;如:ECS-Test01。 ResourceName *string `json:"resource_name,omitempty"` // 该条告警记录对应的事件监控ID,资源所产生的事件;如:ev16031292300990kKN8p17J。 EventId *string `json:"event_id,omitempty"` }
AdditionalInfo 告警记录额外字段,仅针对事件监控告警场景所产生的告警记录信息。
func (AdditionalInfo) String ¶
func (o AdditionalInfo) String() string
type AgentDimension ¶ added in v0.0.99
type AgentDimension struct { // 维度名称,枚举类型,类型有: mount_point:挂载点, disk:磁盘, proc:进程, gpu:显卡, raid: RAID控制器 Name *AgentDimensionName `json:"name,omitempty"` // 维度值,32位字符串,如:2e84018fc8b4484b94e89aae212fe615 Value *string `json:"value,omitempty"` // 实际维度信息,字符串,如:vda。 OriginValue *string `json:"origin_value,omitempty"` }
func (AgentDimension) String ¶ added in v0.0.99
func (o AgentDimension) String() string
type AgentDimensionName ¶ added in v0.0.99
type AgentDimensionName struct {
// contains filtered or unexported fields
}
func (AgentDimensionName) MarshalJSON ¶ added in v0.0.99
func (c AgentDimensionName) MarshalJSON() ([]byte, error)
func (*AgentDimensionName) UnmarshalJSON ¶ added in v0.0.99
func (c *AgentDimensionName) UnmarshalJSON(b []byte) error
func (AgentDimensionName) Value ¶ added in v0.0.99
func (c AgentDimensionName) Value() string
type AgentDimensionNameEnum ¶ added in v0.0.99
type AgentDimensionNameEnum struct { MOUNT_POINT AgentDimensionName DISK AgentDimensionName PROC AgentDimensionName GPU AgentDimensionName RAID AgentDimensionName }
func GetAgentDimensionNameEnum ¶ added in v0.0.99
func GetAgentDimensionNameEnum() AgentDimensionNameEnum
type AlarmCondition ¶
type AlarmCondition struct { // 指标周期,单位是秒; 0是默认值,例如事件类告警该字段就用0即可; 1代表指标的原始周期,比如RDS监控指标原始周期是60s,表示该RDS指标按60s周期为一个数据点参与告警计算;如想了解各个云服务的指标原始周期可以参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html), 300代表指标按5分钟聚合周期为一个数据点参与告警计算。 Period AlarmConditionPeriod `json:"period"` // 聚合方式, 支持的值为(average|min|max|sum) Filter string `json:"filter"` // 阈值符号 ComparisonOperator string `json:"comparison_operator"` // 告警阈值,取值范围[0, Number.MAX_VALUE],Number.MAX_VALUE值为1.7976931348623157e+108。具体阈值取值请参见附录中各服务监控指标中取值范围,如支持监控的服务列表中ECS的CPU使用率cpu_util取值范围可配置80。 Value float64 `json:"value"` // 数据的单位,最大长度为32位。 Unit *string `json:"unit,omitempty"` // 次数 Count int32 `json:"count"` // 告警抑制时间,单位为秒,对应页面上创建告警规则时告警策略最后一个字段,该字段主要为解决告警频繁的问题,0代表不抑制,满足条件即告警;300代表满足告警触发条件后每5分钟告警一次; SuppressDuration *AlarmConditionSuppressDuration `json:"suppress_duration,omitempty"` }
AlarmCondition 告警触发条件
func (AlarmCondition) String ¶
func (o AlarmCondition) String() string
type AlarmConditionPeriod ¶ added in v0.0.99
type AlarmConditionPeriod struct {
// contains filtered or unexported fields
}
func (AlarmConditionPeriod) MarshalJSON ¶ added in v0.0.99
func (c AlarmConditionPeriod) MarshalJSON() ([]byte, error)
func (*AlarmConditionPeriod) UnmarshalJSON ¶ added in v0.0.99
func (c *AlarmConditionPeriod) UnmarshalJSON(b []byte) error
func (AlarmConditionPeriod) Value ¶ added in v0.0.99
func (c AlarmConditionPeriod) Value() int32
type AlarmConditionPeriodEnum ¶ added in v0.0.99
type AlarmConditionPeriodEnum struct { E_0 AlarmConditionPeriod E_1 AlarmConditionPeriod E_300 AlarmConditionPeriod E_1200 AlarmConditionPeriod E_3600 AlarmConditionPeriod E_14400 AlarmConditionPeriod E_86400 AlarmConditionPeriod }
func GetAlarmConditionPeriodEnum ¶ added in v0.0.99
func GetAlarmConditionPeriodEnum() AlarmConditionPeriodEnum
type AlarmConditionSuppressDuration ¶ added in v0.0.99
type AlarmConditionSuppressDuration struct {
// contains filtered or unexported fields
}
func (AlarmConditionSuppressDuration) MarshalJSON ¶ added in v0.0.99
func (c AlarmConditionSuppressDuration) MarshalJSON() ([]byte, error)
func (*AlarmConditionSuppressDuration) UnmarshalJSON ¶ added in v0.0.99
func (c *AlarmConditionSuppressDuration) UnmarshalJSON(b []byte) error
func (AlarmConditionSuppressDuration) Value ¶ added in v0.0.99
func (c AlarmConditionSuppressDuration) Value() int32
type AlarmConditionSuppressDurationEnum ¶ added in v0.0.99
type AlarmConditionSuppressDurationEnum struct { E_0 AlarmConditionSuppressDuration E_300 AlarmConditionSuppressDuration E_600 AlarmConditionSuppressDuration E_900 AlarmConditionSuppressDuration E_1800 AlarmConditionSuppressDuration E_3600 AlarmConditionSuppressDuration E_10800 AlarmConditionSuppressDuration E_21600 AlarmConditionSuppressDuration E_43200 AlarmConditionSuppressDuration }
func GetAlarmConditionSuppressDurationEnum ¶ added in v0.0.99
func GetAlarmConditionSuppressDurationEnum() AlarmConditionSuppressDurationEnum
type AlarmDescription ¶ added in v0.0.99
type AlarmDescription struct { }
AlarmDescription 告警描述,长度0-256
func (AlarmDescription) String ¶ added in v0.0.99
func (o AlarmDescription) String() string
type AlarmEnabled ¶ added in v0.0.99
type AlarmEnabled struct { }
AlarmEnabled 告警开关
func (AlarmEnabled) String ¶ added in v0.0.99
func (o AlarmEnabled) String() string
type AlarmHistoryItemV2 ¶
type AlarmHistoryItemV2 struct { // 告警记录ID RecordId *string `json:"record_id,omitempty"` // 告警规则的ID,如:al1603131199286dzxpqK3Ez。 AlarmId *string `json:"alarm_id,omitempty"` // 告警规则的名称,如:alarm-test01。 Name *string `json:"name,omitempty"` // 告警记录的状态,取值为ok,alarm,invalid; ok为正常,alarm为告警,invalid为已失效。 Status *AlarmHistoryItemV2Status `json:"status,omitempty"` // 告警记录的告警级别,值为1,2,3,4;1为紧急,2为重要,3为次要,4为提示。 Level *AlarmHistoryItemV2Level `json:"level,omitempty"` Type *AlarmType `json:"type,omitempty"` // 是否发送通知,值为true或者false。 ActionEnabled *bool `json:"action_enabled,omitempty"` // 产生时间,UTC时间 BeginTime *sdktime.SdkTime `json:"begin_time,omitempty"` // 结束时间,UTC时间 EndTime *sdktime.SdkTime `json:"end_time,omitempty"` Metric *Metric `json:"metric,omitempty"` Condition *AlarmCondition `json:"condition,omitempty"` AdditionalInfo *AdditionalInfo `json:"additional_info,omitempty"` // 告警触发的动作。 结构如下: { \"type\": \"notification\", \"notification_list\": [\"urn:smn:southchina:68438a86d98e427e907e0097b7e35d47:sd\"] } type取值: notification:通知。 autoscaling:弹性伸缩。 notification_list:告警状态发生变化时,被通知对象的列表。 AlarmActions *[]Notification `json:"alarm_actions,omitempty"` // 告警恢复触发的动作。 结构如下: { \"type\": \"notification\", \"notification_list\": [\"urn:smn:southchina:68438a86d98e427e907e0097b7e35d47:sd\"] } type取值: notification:通知。 notification_list:告警状态发生变化时,被通知对象的列表。 OkActions *[]Notification `json:"ok_actions,omitempty"` // 计算出该条告警记录的资源监控数据上报时间和监控数值。 DataPoints *[]DataPointInfo `json:"data_points,omitempty"` }
AlarmHistoryItemV2 告警记录详细信息
func (AlarmHistoryItemV2) String ¶
func (o AlarmHistoryItemV2) String() string
type AlarmHistoryItemV2Level ¶ added in v0.0.99
type AlarmHistoryItemV2Level struct {
// contains filtered or unexported fields
}
func (AlarmHistoryItemV2Level) MarshalJSON ¶ added in v0.0.99
func (c AlarmHistoryItemV2Level) MarshalJSON() ([]byte, error)
func (*AlarmHistoryItemV2Level) UnmarshalJSON ¶ added in v0.0.99
func (c *AlarmHistoryItemV2Level) UnmarshalJSON(b []byte) error
func (AlarmHistoryItemV2Level) Value ¶ added in v0.0.99
func (c AlarmHistoryItemV2Level) Value() int32
type AlarmHistoryItemV2LevelEnum ¶ added in v0.0.99
type AlarmHistoryItemV2LevelEnum struct { E_1 AlarmHistoryItemV2Level E_2 AlarmHistoryItemV2Level E_3 AlarmHistoryItemV2Level E_4 AlarmHistoryItemV2Level }
func GetAlarmHistoryItemV2LevelEnum ¶ added in v0.0.99
func GetAlarmHistoryItemV2LevelEnum() AlarmHistoryItemV2LevelEnum
type AlarmHistoryItemV2Status ¶ added in v0.0.99
type AlarmHistoryItemV2Status struct {
// contains filtered or unexported fields
}
func (AlarmHistoryItemV2Status) MarshalJSON ¶ added in v0.0.99
func (c AlarmHistoryItemV2Status) MarshalJSON() ([]byte, error)
func (*AlarmHistoryItemV2Status) UnmarshalJSON ¶ added in v0.0.99
func (c *AlarmHistoryItemV2Status) UnmarshalJSON(b []byte) error
func (AlarmHistoryItemV2Status) Value ¶ added in v0.0.99
func (c AlarmHistoryItemV2Status) Value() string
type AlarmHistoryItemV2StatusEnum ¶ added in v0.0.99
type AlarmHistoryItemV2StatusEnum struct { OK AlarmHistoryItemV2Status ALARM AlarmHistoryItemV2Status INVALID AlarmHistoryItemV2Status }
func GetAlarmHistoryItemV2StatusEnum ¶ added in v0.0.99
func GetAlarmHistoryItemV2StatusEnum() AlarmHistoryItemV2StatusEnum
type AlarmLevel ¶ added in v0.1.12
type AlarmLevel struct { }
AlarmLevel 告警级别,1为紧急,2为重要,3为次要,4为提示
func (AlarmLevel) String ¶ added in v0.1.12
func (o AlarmLevel) String() string
type AlarmName ¶ added in v0.0.99
type AlarmName struct { }
AlarmName 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128
type AlarmTemplateId ¶ added in v0.0.99
type AlarmTemplateId struct { }
AlarmTemplateId 告警规则关联告警模板ID,如果传了,告警规则关联的策略会和告警模板策略联动变化
func (AlarmTemplateId) String ¶ added in v0.0.99
func (o AlarmTemplateId) String() string
type AlarmTemplatePolicies ¶ added in v0.1.12
type AlarmTemplatePolicies struct { // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)” Namespace string `json:"namespace"` // 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32 DimensionName string `json:"dimension_name"` // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。 MetricName string `json:"metric_name"` // 告警条件判断周期,单位为秒 Period AlarmTemplatePoliciesPeriod `json:"period"` // 数据聚合方式 Filter string `json:"filter"` // 告警阈值的比较条件 ComparisonOperator string `json:"comparison_operator"` // 告警阈值 Value float32 `json:"value"` // 数据的单位字符串,长度不超过32 Unit string `json:"unit"` // 告警连续触发次数,正整数[1, 5] Count int32 `json:"count"` // 告警级别,1为紧急,2为重要,3为次要,4为提示 AlarmLevel int32 `json:"alarm_level"` // 告警抑制周期,单位为秒,当告警抑制周期为0时,仅发送一次告警 SuppressDuration AlarmTemplatePoliciesSuppressDuration `json:"suppress_duration"` }
func (AlarmTemplatePolicies) String ¶ added in v0.1.12
func (o AlarmTemplatePolicies) String() string
type AlarmTemplatePoliciesPeriod ¶ added in v0.1.12
type AlarmTemplatePoliciesPeriod struct {
// contains filtered or unexported fields
}
func (AlarmTemplatePoliciesPeriod) MarshalJSON ¶ added in v0.1.12
func (c AlarmTemplatePoliciesPeriod) MarshalJSON() ([]byte, error)
func (*AlarmTemplatePoliciesPeriod) UnmarshalJSON ¶ added in v0.1.12
func (c *AlarmTemplatePoliciesPeriod) UnmarshalJSON(b []byte) error
func (AlarmTemplatePoliciesPeriod) Value ¶ added in v0.1.12
func (c AlarmTemplatePoliciesPeriod) Value() int32
type AlarmTemplatePoliciesPeriodEnum ¶ added in v0.1.12
type AlarmTemplatePoliciesPeriodEnum struct { E_1 AlarmTemplatePoliciesPeriod E_300 AlarmTemplatePoliciesPeriod E_1200 AlarmTemplatePoliciesPeriod E_3600 AlarmTemplatePoliciesPeriod E_14400 AlarmTemplatePoliciesPeriod E_86400 AlarmTemplatePoliciesPeriod }
func GetAlarmTemplatePoliciesPeriodEnum ¶ added in v0.1.12
func GetAlarmTemplatePoliciesPeriodEnum() AlarmTemplatePoliciesPeriodEnum
type AlarmTemplatePoliciesSuppressDuration ¶ added in v0.1.12
type AlarmTemplatePoliciesSuppressDuration struct {
// contains filtered or unexported fields
}
func (AlarmTemplatePoliciesSuppressDuration) MarshalJSON ¶ added in v0.1.12
func (c AlarmTemplatePoliciesSuppressDuration) MarshalJSON() ([]byte, error)
func (*AlarmTemplatePoliciesSuppressDuration) UnmarshalJSON ¶ added in v0.1.12
func (c *AlarmTemplatePoliciesSuppressDuration) UnmarshalJSON(b []byte) error
func (AlarmTemplatePoliciesSuppressDuration) Value ¶ added in v0.1.12
func (c AlarmTemplatePoliciesSuppressDuration) Value() int32
type AlarmTemplatePoliciesSuppressDurationEnum ¶ added in v0.1.12
type AlarmTemplatePoliciesSuppressDurationEnum struct { E_0 AlarmTemplatePoliciesSuppressDuration E_300 AlarmTemplatePoliciesSuppressDuration E_600 AlarmTemplatePoliciesSuppressDuration E_900 AlarmTemplatePoliciesSuppressDuration E_1800 AlarmTemplatePoliciesSuppressDuration E_3600 AlarmTemplatePoliciesSuppressDuration E_10800 AlarmTemplatePoliciesSuppressDuration E_21600 AlarmTemplatePoliciesSuppressDuration E_43200 AlarmTemplatePoliciesSuppressDuration E_86400 AlarmTemplatePoliciesSuppressDuration }
func GetAlarmTemplatePoliciesSuppressDurationEnum ¶ added in v0.1.12
func GetAlarmTemplatePoliciesSuppressDurationEnum() AlarmTemplatePoliciesSuppressDurationEnum
type AlarmTemplates ¶ added in v0.1.12
type AlarmTemplates struct { // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64 TemplateId string `json:"template_id"` // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128] TemplateName string `json:"template_name"` TemplateType *TemplateType `json:"template_type"` // 告警模板的创建时间 CreateTime *sdktime.SdkTime `json:"create_time"` // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串 TemplateDescription string `json:"template_description"` // 告警模板关联的告警规则数目 AssociationAlarmTotal *int32 `json:"association_alarm_total,omitempty"` // 告警模板的告警策略总数 PolicyTotal int32 `json:"policy_total"` // 服务列表告警策略数目统计 PolicyStatistics []PolicyStatistics `json:"policy_statistics"` // 关联的资源分组 AssociationResourceGroups *[]AssociationResourceGroup `json:"association_resource_groups,omitempty"` }
func (AlarmTemplates) String ¶ added in v0.1.12
func (o AlarmTemplates) String() string
type AlarmType ¶ added in v0.0.99
type AlarmType struct {
// contains filtered or unexported fields
}
AlarmType 告警规则类型,ALL_INSTANCE为全部资源指标告警,RESOURCE_GROUP为资源分组指标告警,MULTI_INSTANCE为指定资源指标告警,EVENT.SYS为系统事件告警,EVENT.CUSTOM自定义事件告警,DNSHealthCheck为健康检查告警;
func (AlarmType) MarshalJSON ¶ added in v0.1.35
func (*AlarmType) UnmarshalJSON ¶ added in v0.1.35
type AlarmTypeEnum ¶ added in v0.1.35
type AlarmTypeEnum struct { EVENT_SYS AlarmType EVENT_CUSTOM AlarmType DNS_HEALTH_CHECK AlarmType RESOURCE_GROUP AlarmType MULTI_INSTANCE AlarmType ALL_INSTANCE AlarmType }
func GetAlarmTypeEnum ¶ added in v0.1.35
func GetAlarmTypeEnum() AlarmTypeEnum
type AssociationAlarmTotal ¶ added in v0.1.12
type AssociationAlarmTotal struct { }
AssociationAlarmTotal 告警模板关联的告警规则数目
func (AssociationAlarmTotal) String ¶ added in v0.1.12
func (o AssociationAlarmTotal) String() string
type AssociationResourceGroup ¶ added in v0.1.12
type AssociationResourceGroup struct { // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId string `json:"group_id"` // 资源分组名称 GroupName string `json:"group_name"` TemplateApplicationType *TemplateApplicationType `json:"template_application_type"` }
AssociationResourceGroup 关联的资源分组
func (AssociationResourceGroup) String ¶ added in v0.1.12
func (o AssociationResourceGroup) String() string
type BatchCreateResourcesRequest ¶ added in v0.1.12
type BatchCreateResourcesRequest struct { // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId string `json:"group_id"` Body *ResourcesReq `json:"body,omitempty"` }
BatchCreateResourcesRequest Request Object
func (BatchCreateResourcesRequest) String ¶ added in v0.1.12
func (o BatchCreateResourcesRequest) String() string
type BatchCreateResourcesResponse ¶ added in v0.1.12
type BatchCreateResourcesResponse struct { // 成功添加的资源数目 SucceedCount *int32 `json:"succeed_count,omitempty"` HttpStatusCode int `json:"-"` }
BatchCreateResourcesResponse Response Object
func (BatchCreateResourcesResponse) String ¶ added in v0.1.12
func (o BatchCreateResourcesResponse) String() string
type BatchDeleteAlarmRulesRequest ¶ added in v0.0.99
type BatchDeleteAlarmRulesRequest struct {
Body *BatchDeleteAlarmsRequestBody `json:"body,omitempty"`
}
BatchDeleteAlarmRulesRequest Request Object
func (BatchDeleteAlarmRulesRequest) String ¶ added in v0.0.99
func (o BatchDeleteAlarmRulesRequest) String() string
type BatchDeleteAlarmRulesResponse ¶ added in v0.0.99
type BatchDeleteAlarmRulesResponse struct { // 成功删除的告警规则ID列表 AlarmIds *[]string `json:"alarm_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteAlarmRulesResponse Response Object
func (BatchDeleteAlarmRulesResponse) String ¶ added in v0.0.99
func (o BatchDeleteAlarmRulesResponse) String() string
type BatchDeleteAlarmTemplatesRequest ¶ added in v0.1.12
type BatchDeleteAlarmTemplatesRequest struct {
Body *BatchDeleteAlarmTemplatesRequestBody `json:"body,omitempty"`
}
BatchDeleteAlarmTemplatesRequest Request Object
func (BatchDeleteAlarmTemplatesRequest) String ¶ added in v0.1.12
func (o BatchDeleteAlarmTemplatesRequest) String() string
type BatchDeleteAlarmTemplatesRequestBody ¶ added in v0.1.12
type BatchDeleteAlarmTemplatesRequestBody struct { // 需要批量删除的告警模板的ID列表。未关联告警规则的模板可以批量删除多个;已关联告警规则的告警模板模板单次只允许删除一个,若同时删除多个已关联告警规则的告警模板,将返回异常 TemplateIds []string `json:"template_ids"` // 如果告警模板关联了告警规则,是否级联删除告警规则,true代表级联删除,false代表只删除告警模板 DeleteAssociateAlarm bool `json:"delete_associate_alarm"` }
func (BatchDeleteAlarmTemplatesRequestBody) String ¶ added in v0.1.12
func (o BatchDeleteAlarmTemplatesRequestBody) String() string
type BatchDeleteAlarmTemplatesResponse ¶ added in v0.1.12
type BatchDeleteAlarmTemplatesResponse struct { // 成功删除的告警模板ID列表 TemplateIds *[]string `json:"template_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteAlarmTemplatesResponse Response Object
func (BatchDeleteAlarmTemplatesResponse) String ¶ added in v0.1.12
func (o BatchDeleteAlarmTemplatesResponse) String() string
type BatchDeleteAlarmsRequestBody ¶ added in v0.0.99
type BatchDeleteAlarmsRequestBody struct { // 需要批量删除的告警规则的ID列表 AlarmIds []string `json:"alarm_ids"` }
func (BatchDeleteAlarmsRequestBody) String ¶ added in v0.0.99
func (o BatchDeleteAlarmsRequestBody) String() string
type BatchDeleteResourceGroupsRequest ¶ added in v0.1.12
type BatchDeleteResourceGroupsRequest struct {
Body *BatchDeleteResourceGroupsRequestBody `json:"body,omitempty"`
}
BatchDeleteResourceGroupsRequest Request Object
func (BatchDeleteResourceGroupsRequest) String ¶ added in v0.1.12
func (o BatchDeleteResourceGroupsRequest) String() string
type BatchDeleteResourceGroupsRequestBody ¶ added in v0.1.12
type BatchDeleteResourceGroupsRequestBody struct { // 需要批量删除的资源分组ID列表 GroupIds []string `json:"group_ids"` }
func (BatchDeleteResourceGroupsRequestBody) String ¶ added in v0.1.12
func (o BatchDeleteResourceGroupsRequestBody) String() string
type BatchDeleteResourceGroupsResponse ¶ added in v0.1.12
type BatchDeleteResourceGroupsResponse struct { // 成功删除的资源分组ID列表 GroupIds *[]string `json:"group_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteResourceGroupsResponse Response Object
func (BatchDeleteResourceGroupsResponse) String ¶ added in v0.1.12
func (o BatchDeleteResourceGroupsResponse) String() string
type BatchDeleteResourcesRequest ¶ added in v0.1.12
type BatchDeleteResourcesRequest struct { // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId string `json:"group_id"` Body *ResourcesReq `json:"body,omitempty"` }
BatchDeleteResourcesRequest Request Object
func (BatchDeleteResourcesRequest) String ¶ added in v0.1.12
func (o BatchDeleteResourcesRequest) String() string
type BatchDeleteResourcesResponse ¶ added in v0.1.12
type BatchDeleteResourcesResponse struct { // 成功删除的资源数目 SucceedCount *int32 `json:"succeed_count,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteResourcesResponse Response Object
func (BatchDeleteResourcesResponse) String ¶ added in v0.1.12
func (o BatchDeleteResourcesResponse) String() string
type BatchEnableAlarmRulesRequest ¶ added in v0.0.99
type BatchEnableAlarmRulesRequest struct {
Body *BatchEnableAlarmsRequestBody `json:"body,omitempty"`
}
BatchEnableAlarmRulesRequest Request Object
func (BatchEnableAlarmRulesRequest) String ¶ added in v0.0.99
func (o BatchEnableAlarmRulesRequest) String() string
type BatchEnableAlarmRulesResponse ¶ added in v0.0.99
type BatchEnableAlarmRulesResponse struct { // 成功启停的告警规则ID列表 AlarmIds *[]string `json:"alarm_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchEnableAlarmRulesResponse Response Object
func (BatchEnableAlarmRulesResponse) String ¶ added in v0.0.99
func (o BatchEnableAlarmRulesResponse) String() string
type BatchEnableAlarmsRequestBody ¶ added in v0.0.99
type BatchEnableAlarmsRequestBody struct { // 需要批量启停的告警规则的ID列表 AlarmIds []string `json:"alarm_ids"` // 告警开关 AlarmEnabled bool `json:"alarm_enabled"` }
func (BatchEnableAlarmsRequestBody) String ¶ added in v0.0.99
func (o BatchEnableAlarmsRequestBody) String() string
type ComparisonOperator ¶ added in v0.0.99
type ComparisonOperator struct { }
ComparisonOperator 阈值符号, 支持的值为(>|<|>=|<=|=|><)
func (ComparisonOperator) String ¶ added in v0.0.99
func (o ComparisonOperator) String() string
type CreateAlarmRulesRequest ¶ added in v0.0.99
type CreateAlarmRulesRequest struct {
Body *PostAlarmsReqV2 `json:"body,omitempty"`
}
CreateAlarmRulesRequest Request Object
func (CreateAlarmRulesRequest) String ¶ added in v0.0.99
func (o CreateAlarmRulesRequest) String() string
type CreateAlarmRulesResponse ¶ added in v0.0.99
type CreateAlarmRulesResponse struct { // 告警规则id,以al开头,包含22个数字或字母 AlarmId *string `json:"alarm_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateAlarmRulesResponse Response Object
func (CreateAlarmRulesResponse) String ¶ added in v0.0.99
func (o CreateAlarmRulesResponse) String() string
type CreateAlarmTemplateRequest ¶ added in v0.1.12
type CreateAlarmTemplateRequest struct {
Body *CreateAlarmTemplateRequestBody `json:"body,omitempty"`
}
CreateAlarmTemplateRequest Request Object
func (CreateAlarmTemplateRequest) String ¶ added in v0.1.12
func (o CreateAlarmTemplateRequest) String() string
type CreateAlarmTemplateRequestBody ¶ added in v0.1.12
type CreateAlarmTemplateRequestBody struct { // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128] TemplateName string `json:"template_name"` // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串 TemplateDescription *string `json:"template_description,omitempty"` // 告警模板策略列表 Policies []Policies `json:"policies"` }
func (CreateAlarmTemplateRequestBody) String ¶ added in v0.1.12
func (o CreateAlarmTemplateRequestBody) String() string
type CreateAlarmTemplateResponse ¶ added in v0.1.12
type CreateAlarmTemplateResponse struct { // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64 TemplateId *string `json:"template_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateAlarmTemplateResponse Response Object
func (CreateAlarmTemplateResponse) String ¶ added in v0.1.12
func (o CreateAlarmTemplateResponse) String() string
type CreateResourceGroupRequest ¶ added in v0.1.12
type CreateResourceGroupRequest struct {
Body *CreateResourceGroupRequestBody `json:"body,omitempty"`
}
CreateResourceGroupRequest Request Object
func (CreateResourceGroupRequest) String ¶ added in v0.1.12
func (o CreateResourceGroupRequest) String() string
type CreateResourceGroupRequestBody ¶ added in v0.1.12
type CreateResourceGroupRequestBody struct { // 资源分组的名称,只能为字母、数字、汉字、-、_,最大长度为128 GroupName string `json:"group_name"` // 资源分组归属企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 资源分组添加资源方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),不传为手动添加 Type *string `json:"type,omitempty"` // 标签动态匹配时的关联标签,type为TAG时必传 Tags *[]ResourceGroupTagRelation `json:"tags,omitempty"` // 该资源分组内包含的资源来源的企业项目ID,type为EPS时必传 AssociationEpIds *[]string `json:"association_ep_ids,omitempty"` }
func (CreateResourceGroupRequestBody) String ¶ added in v0.1.12
func (o CreateResourceGroupRequestBody) String() string
type CreateResourceGroupResponse ¶ added in v0.1.12
type CreateResourceGroupResponse struct { // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId *string `json:"group_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateResourceGroupResponse Response Object
func (CreateResourceGroupResponse) String ¶ added in v0.1.12
func (o CreateResourceGroupResponse) String() string
type CreateTime ¶ added in v0.1.12
type CreateTime struct { }
CreateTime 告警模板的创建时间
func (CreateTime) String ¶ added in v0.1.12
func (o CreateTime) String() string
type DataPointInfo ¶ added in v0.0.99
type DataPointInfo struct { // 计算出该条告警记录的资源监控数据上报的UTC时间 Time *string `json:"time,omitempty"` // 计算出该条告警记录的资源监控数据在该时间点的监控数值,如:7.019。 Value *float64 `json:"value,omitempty"` }
func (DataPointInfo) String ¶ added in v0.0.99
func (o DataPointInfo) String() string
type DeleteAlarmRuleResourcesRequest ¶ added in v0.0.99
type DeleteAlarmRuleResourcesRequest struct { // Alarm实例ID AlarmId string `json:"alarm_id"` Body *ResourcesReqV2 `json:"body,omitempty"` }
DeleteAlarmRuleResourcesRequest Request Object
func (DeleteAlarmRuleResourcesRequest) String ¶ added in v0.0.99
func (o DeleteAlarmRuleResourcesRequest) String() string
type DeleteAlarmRuleResourcesResponse ¶ added in v0.0.99
type DeleteAlarmRuleResourcesResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteAlarmRuleResourcesResponse Response Object
func (DeleteAlarmRuleResourcesResponse) String ¶ added in v0.0.99
func (o DeleteAlarmRuleResourcesResponse) String() string
type Dimension ¶
type Dimension struct { // 资源维度,如:弹性云服务器,则维度为instance_id;目前最大支持4个维度,各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。 Name string `json:"name"` // 资源维度值,为资源的实例ID,如:4270ff17-aba3-4138-89fa-820594c39755。 Value *string `json:"value,omitempty"` }
Dimension 指标维度
type Dimension2 ¶ added in v0.1.12
type Dimension2 struct { // 资源维度,如:弹性云服务器,则维度为instance_id;目前最大支持4个维度,各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。 Name string `json:"name"` // 资源维度值,为资源的实例ID,如:4270ff17-aba3-4138-89fa-820594c39755。 Value string `json:"value"` }
Dimension2 指标维度
func (Dimension2) String ¶ added in v0.1.12
func (o Dimension2) String() string
type DimensionName ¶ added in v0.1.12
type DimensionName struct { }
DimensionName 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32
func (DimensionName) String ¶ added in v0.1.12
func (o DimensionName) String() string
type EnterpriseProjectId ¶ added in v0.0.99
type EnterpriseProjectId struct { }
EnterpriseProjectId 企业项目ID
func (EnterpriseProjectId) String ¶ added in v0.0.99
func (o EnterpriseProjectId) String() string
type GetResourceGroupResources ¶ added in v0.1.12
type GetResourceGroupResources struct { // 资源健康状态,取值为health(已设置告警规则且无告警触发的资源)、unhealthy(已设置告警规则且有告警触发的资源)、no_alarm_rule(未关联告警规则) Status GetResourceGroupResourcesStatus `json:"status"` // 资源的维度信息 Dimensions []Dimension2 `json:"dimensions"` }
func (GetResourceGroupResources) String ¶ added in v0.1.12
func (o GetResourceGroupResources) String() string
type GetResourceGroupResourcesStatus ¶ added in v0.1.12
type GetResourceGroupResourcesStatus struct {
// contains filtered or unexported fields
}
func (GetResourceGroupResourcesStatus) MarshalJSON ¶ added in v0.1.12
func (c GetResourceGroupResourcesStatus) MarshalJSON() ([]byte, error)
func (*GetResourceGroupResourcesStatus) UnmarshalJSON ¶ added in v0.1.12
func (c *GetResourceGroupResourcesStatus) UnmarshalJSON(b []byte) error
func (GetResourceGroupResourcesStatus) Value ¶ added in v0.1.12
func (c GetResourceGroupResourcesStatus) Value() string
type GetResourceGroupResourcesStatusEnum ¶ added in v0.1.12
type GetResourceGroupResourcesStatusEnum struct { HEALTH GetResourceGroupResourcesStatus UNHEALTHY GetResourceGroupResourcesStatus NO_ALARM_RULE GetResourceGroupResourcesStatus }
func GetGetResourceGroupResourcesStatusEnum ¶ added in v0.1.12
func GetGetResourceGroupResourcesStatusEnum() GetResourceGroupResourcesStatusEnum
type ListAgentDimensionInfoRequest ¶ added in v0.0.99
type ListAgentDimensionInfoRequest struct { // 资源ID,如:4270ff17-aba3-4138-89fa-820594c39755。 InstanceId string `json:"instance_id"` // 维度名称,枚举类型,类型有: mount_point:挂载点, disk:磁盘, proc:进程, gpu:显卡, raid: RAID控制器, DimName ListAgentDimensionInfoRequestDimName `json:"dim_name"` // 维度值,32位字符串,如:2e84018fc8b4484b94e89aae212fe615。 DimValue *string `json:"dim_value,omitempty"` // 分页偏移量 Offset *int32 `json:"offset,omitempty"` // 分页大小 Limit *int32 `json:"limit,omitempty"` }
ListAgentDimensionInfoRequest Request Object
func (ListAgentDimensionInfoRequest) String ¶ added in v0.0.99
func (o ListAgentDimensionInfoRequest) String() string
type ListAgentDimensionInfoRequestDimName ¶ added in v0.0.99
type ListAgentDimensionInfoRequestDimName struct {
// contains filtered or unexported fields
}
func (ListAgentDimensionInfoRequestDimName) MarshalJSON ¶ added in v0.0.99
func (c ListAgentDimensionInfoRequestDimName) MarshalJSON() ([]byte, error)
func (*ListAgentDimensionInfoRequestDimName) UnmarshalJSON ¶ added in v0.0.99
func (c *ListAgentDimensionInfoRequestDimName) UnmarshalJSON(b []byte) error
func (ListAgentDimensionInfoRequestDimName) Value ¶ added in v0.0.99
func (c ListAgentDimensionInfoRequestDimName) Value() string
type ListAgentDimensionInfoRequestDimNameEnum ¶ added in v0.0.99
type ListAgentDimensionInfoRequestDimNameEnum struct { MOUNT_POINT ListAgentDimensionInfoRequestDimName DISK ListAgentDimensionInfoRequestDimName PROC ListAgentDimensionInfoRequestDimName GPU ListAgentDimensionInfoRequestDimName RAID ListAgentDimensionInfoRequestDimName }
func GetListAgentDimensionInfoRequestDimNameEnum ¶ added in v0.0.99
func GetListAgentDimensionInfoRequestDimNameEnum() ListAgentDimensionInfoRequestDimNameEnum
type ListAgentDimensionInfoResponse ¶ added in v0.0.99
type ListAgentDimensionInfoResponse struct { // 维度信息 Dimensions *[]AgentDimension `json:"dimensions,omitempty"` // 维度信息总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListAgentDimensionInfoResponse Response Object
func (ListAgentDimensionInfoResponse) String ¶ added in v0.0.99
func (o ListAgentDimensionInfoResponse) String() string
type ListAlarmHistoriesRequest ¶
type ListAlarmHistoriesRequest struct { // 告警ID,以al开头,后跟22位由字母或数字组成的字符串 AlarmId *string `json:"alarm_id,omitempty"` // 告警规则名称 Name *string `json:"name,omitempty"` // 告警规则状态, ok为正常,alarm为告警,invalid为已失效 Status *string `json:"status,omitempty"` // 告警级别, 1为紧急,2为重要,3为次要,4为提示 Level *int32 `json:"level,omitempty"` // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace *string `json:"namespace,omitempty"` // 告警资源ID,多维度情况按字母升序排列并使用逗号分隔 ResourceId *string `json:"resource_id,omitempty"` // 查询告警记录的起始时间,例如:2022-02-10T10:05:46+08:00 From *string `json:"from,omitempty"` // 查询告警记录的截止时间,例如:2022-02-10T10:05:47+08:00 To *string `json:"to,omitempty"` // 分页偏移量 Offset *int32 `json:"offset,omitempty"` // 分页大小 Limit *int32 `json:"limit,omitempty"` }
ListAlarmHistoriesRequest Request Object
func (ListAlarmHistoriesRequest) String ¶
func (o ListAlarmHistoriesRequest) String() string
type ListAlarmHistoriesResponse ¶
type ListAlarmHistoriesResponse struct { // alarmHistories列表 AlarmHistories *[]AlarmHistoryItemV2 `json:"alarm_histories,omitempty"` // 告警记录列表总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListAlarmHistoriesResponse Response Object
func (ListAlarmHistoriesResponse) String ¶
func (o ListAlarmHistoriesResponse) String() string
type ListAlarmResponseAlarms ¶ added in v0.0.99
type ListAlarmResponseAlarms struct { // 告警规则id,以al开头,包含22个数字或字母 AlarmId *string `json:"alarm_id,omitempty"` // 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128 Name *string `json:"name,omitempty"` // 告警描述,长度0-256 Description *string `json:"description,omitempty"` // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace *string `json:"namespace,omitempty"` // 告警策略 Policies *[]Policy `json:"policies,omitempty"` // 资源列表,关联资源需要使用查询告警规则资源接口获取 Resources *[]ResourcesInListResp `json:"resources,omitempty"` Type *AlarmType `json:"type,omitempty"` // 告警开关 Enabled *bool `json:"enabled,omitempty"` // 是否开启告警通知 NotificationEnabled *bool `json:"notification_enabled,omitempty"` // 告警触发的动作 AlarmNotifications *[]Notification `json:"alarm_notifications,omitempty"` // 告警恢复触发的动作 OkNotifications *[]Notification `json:"ok_notifications,omitempty"` // 告警通知开启时间 NotificationBeginTime *string `json:"notification_begin_time,omitempty"` // 告警通知关闭时间 NotificationEndTime *string `json:"notification_end_time,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 告警规则关联告警模板ID,如果传了,告警规则关联的策略会和告警模板策略联动变化 AlarmTemplateId *string `json:"alarm_template_id,omitempty"` }
func (ListAlarmResponseAlarms) String ¶ added in v0.0.99
func (o ListAlarmResponseAlarms) String() string
type ListAlarmRulePoliciesRequest ¶ added in v0.0.99
type ListAlarmRulePoliciesRequest struct { // 告警规则ID AlarmId string `json:"alarm_id"` // 分页偏移量 Offset *int32 `json:"offset,omitempty"` // 分页大小 Limit *int32 `json:"limit,omitempty"` }
ListAlarmRulePoliciesRequest Request Object
func (ListAlarmRulePoliciesRequest) String ¶ added in v0.0.99
func (o ListAlarmRulePoliciesRequest) String() string
type ListAlarmRulePoliciesResponse ¶ added in v0.0.99
type ListAlarmRulePoliciesResponse struct { // 策略信息 Policies *[]Policy `json:"policies,omitempty"` // 指定告警规则对应的策略总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListAlarmRulePoliciesResponse Response Object
func (ListAlarmRulePoliciesResponse) String ¶ added in v0.0.99
func (o ListAlarmRulePoliciesResponse) String() string
type ListAlarmRuleResourcesRequest ¶ added in v0.0.99
type ListAlarmRuleResourcesRequest struct { // Alarm实例ID AlarmId string `json:"alarm_id"` // 分页偏移量 Offset *int32 `json:"offset,omitempty"` // 分页大小 Limit *int32 `json:"limit,omitempty"` }
ListAlarmRuleResourcesRequest Request Object
func (ListAlarmRuleResourcesRequest) String ¶ added in v0.0.99
func (o ListAlarmRuleResourcesRequest) String() string
type ListAlarmRuleResourcesResponse ¶ added in v0.0.99
type ListAlarmRuleResourcesResponse struct { // 资源信息 Resources *[][]Dimension `json:"resources,omitempty"` // 资源总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListAlarmRuleResourcesResponse Response Object
func (ListAlarmRuleResourcesResponse) String ¶ added in v0.0.99
func (o ListAlarmRuleResourcesResponse) String() string
type ListAlarmRulesRequest ¶ added in v0.0.99
type ListAlarmRulesRequest struct { // 告警规则ID AlarmId *string `json:"alarm_id,omitempty"` // 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128 Name *string `json:"name,omitempty"` // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace *string `json:"namespace,omitempty"` // 告警资源ID,多维度情况按字母升序排列并使用逗号分隔 ResourceId *string `json:"resource_id,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 分页偏移量 Offset *int32 `json:"offset,omitempty"` // 分页大小 Limit *int32 `json:"limit,omitempty"` }
ListAlarmRulesRequest Request Object
func (ListAlarmRulesRequest) String ¶ added in v0.0.99
func (o ListAlarmRulesRequest) String() string
type ListAlarmRulesResponse ¶ added in v0.0.99
type ListAlarmRulesResponse struct { // 告警规则列表 Alarms *[]ListAlarmResponseAlarms `json:"alarms,omitempty"` // 告警规则总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListAlarmRulesResponse Response Object
func (ListAlarmRulesResponse) String ¶ added in v0.0.99
func (o ListAlarmRulesResponse) String() string
type ListAlarmTemplateAssociationAlarmsRequest ¶ added in v0.1.12
type ListAlarmTemplateAssociationAlarmsRequest struct { // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64 TemplateId string `json:"template_id"` // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0 Offset *int32 `json:"offset,omitempty"` // 查询结果条数的限制值,取值范围为[1,100],默认值为100 Limit *int32 `json:"limit,omitempty"` }
ListAlarmTemplateAssociationAlarmsRequest Request Object
func (ListAlarmTemplateAssociationAlarmsRequest) String ¶ added in v0.1.12
func (o ListAlarmTemplateAssociationAlarmsRequest) String() string
type ListAlarmTemplateAssociationAlarmsResponse ¶ added in v0.1.12
type ListAlarmTemplateAssociationAlarmsResponse struct { // 告警规则列表 Alarms *[]ListAssociationAlarmsResponseAlarms `json:"alarms,omitempty"` // 告警规则列表总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListAlarmTemplateAssociationAlarmsResponse Response Object
func (ListAlarmTemplateAssociationAlarmsResponse) String ¶ added in v0.1.12
func (o ListAlarmTemplateAssociationAlarmsResponse) String() string
type ListAlarmTemplatesRequest ¶ added in v0.1.12
type ListAlarmTemplatesRequest struct { // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0 Offset *int32 `json:"offset,omitempty"` // 查询结果条数的限制值,取值范围为[1,100],默认值为100 Limit *int32 `json:"limit,omitempty"` // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)” Namespace *string `json:"namespace,omitempty"` // 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32 DimName *string `json:"dim_name,omitempty"` // 模板类型(custom代表默认自定义模板,system代表系统模板),不传自定义和系统均需返回 TemplateType *ListAlarmTemplatesRequestTemplateType `json:"template_type,omitempty"` // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128],支持模糊匹配 TemplateName *string `json:"template_name,omitempty"` }
ListAlarmTemplatesRequest Request Object
func (ListAlarmTemplatesRequest) String ¶ added in v0.1.12
func (o ListAlarmTemplatesRequest) String() string
type ListAlarmTemplatesRequestTemplateType ¶ added in v0.1.12
type ListAlarmTemplatesRequestTemplateType struct {
// contains filtered or unexported fields
}
func (ListAlarmTemplatesRequestTemplateType) MarshalJSON ¶ added in v0.1.12
func (c ListAlarmTemplatesRequestTemplateType) MarshalJSON() ([]byte, error)
func (*ListAlarmTemplatesRequestTemplateType) UnmarshalJSON ¶ added in v0.1.12
func (c *ListAlarmTemplatesRequestTemplateType) UnmarshalJSON(b []byte) error
func (ListAlarmTemplatesRequestTemplateType) Value ¶ added in v0.1.12
func (c ListAlarmTemplatesRequestTemplateType) Value() string
type ListAlarmTemplatesRequestTemplateTypeEnum ¶ added in v0.1.12
type ListAlarmTemplatesRequestTemplateTypeEnum struct { SYSTEM ListAlarmTemplatesRequestTemplateType CUSTOM ListAlarmTemplatesRequestTemplateType }
func GetListAlarmTemplatesRequestTemplateTypeEnum ¶ added in v0.1.12
func GetListAlarmTemplatesRequestTemplateTypeEnum() ListAlarmTemplatesRequestTemplateTypeEnum
type ListAlarmTemplatesResponse ¶ added in v0.1.12
type ListAlarmTemplatesResponse struct { // 告警模板列表 AlarmTemplates *[]AlarmTemplates `json:"alarm_templates,omitempty"` // 告警模板记录总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListAlarmTemplatesResponse Response Object
func (ListAlarmTemplatesResponse) String ¶ added in v0.1.12
func (o ListAlarmTemplatesResponse) String() string
type ListAssociationAlarmsResponseAlarms ¶ added in v0.1.12
type ListAssociationAlarmsResponseAlarms struct { // 告警规则ID AlarmId string `json:"alarm_id"` // 告警规则名称 Name string `json:"name"` // 告警规则描述 Description string `json:"description"` }
func (ListAssociationAlarmsResponseAlarms) String ¶ added in v0.1.12
func (o ListAssociationAlarmsResponseAlarms) String() string
type ListResourceGroupsRequest ¶ added in v0.1.12
type ListResourceGroupsRequest struct { // 归属企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 资源分组名称,支持模糊查询 GroupName *string `json:"group_name,omitempty"` // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId *string `json:"group_id,omitempty"` // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0 Offset *int32 `json:"offset,omitempty"` // 分页查询时每页的条目数,取值[1,100],默认值为100 Limit *int32 `json:"limit,omitempty"` // 资源分组添加资源方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),Manual(手动添加),不传代表查询所有资源分组类型 Type *ListResourceGroupsRequestType `json:"type,omitempty"` }
ListResourceGroupsRequest Request Object
func (ListResourceGroupsRequest) String ¶ added in v0.1.12
func (o ListResourceGroupsRequest) String() string
type ListResourceGroupsRequestType ¶ added in v0.1.12
type ListResourceGroupsRequestType struct {
// contains filtered or unexported fields
}
func (ListResourceGroupsRequestType) MarshalJSON ¶ added in v0.1.12
func (c ListResourceGroupsRequestType) MarshalJSON() ([]byte, error)
func (*ListResourceGroupsRequestType) UnmarshalJSON ¶ added in v0.1.12
func (c *ListResourceGroupsRequestType) UnmarshalJSON(b []byte) error
func (ListResourceGroupsRequestType) Value ¶ added in v0.1.12
func (c ListResourceGroupsRequestType) Value() string
type ListResourceGroupsRequestTypeEnum ¶ added in v0.1.12
type ListResourceGroupsRequestTypeEnum struct { EPS ListResourceGroupsRequestType TAG ListResourceGroupsRequestType MANUAL ListResourceGroupsRequestType }
func GetListResourceGroupsRequestTypeEnum ¶ added in v0.1.12
func GetListResourceGroupsRequestTypeEnum() ListResourceGroupsRequestTypeEnum
type ListResourceGroupsResponse ¶ added in v0.1.12
type ListResourceGroupsResponse struct { // 资源分组总数 Count *int32 `json:"count,omitempty"` // 资源分组列表 ResourceGroups *[]OneResourceGroupResp `json:"resource_groups,omitempty"` HttpStatusCode int `json:"-"` }
ListResourceGroupsResponse Response Object
func (ListResourceGroupsResponse) String ¶ added in v0.1.12
func (o ListResourceGroupsResponse) String() string
type ListResourceGroupsServicesResourcesRequest ¶ added in v0.1.12
type ListResourceGroupsServicesResourcesRequest struct { // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId string `json:"group_id"` // 服务类别,如SYS.ECS Service string `json:"service"` // 资源维度信息,多个维度按字母序使用逗号分割 DimName *string `json:"dim_name,omitempty"` // 分页查询时每页的条目数,取值[1,100],默认值为100 Limit *string `json:"limit,omitempty"` // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0 Offset *int32 `json:"offset,omitempty"` // 按状态信息进行过滤,取值只能为health(已设置告警规则且无告警触发的资源)、unhealthy(已设置告警规则且有告警触发的资源)、no_alarm_rule(未设置告警规则的资源) Status *ListResourceGroupsServicesResourcesRequestStatus `json:"status,omitempty"` // 资源维度值,不支持模糊匹配,但是多维度资源可以只指定一个维度值 DimValue *string `json:"dim_value,omitempty"` }
ListResourceGroupsServicesResourcesRequest Request Object
func (ListResourceGroupsServicesResourcesRequest) String ¶ added in v0.1.12
func (o ListResourceGroupsServicesResourcesRequest) String() string
type ListResourceGroupsServicesResourcesRequestStatus ¶ added in v0.1.12
type ListResourceGroupsServicesResourcesRequestStatus struct {
// contains filtered or unexported fields
}
func (ListResourceGroupsServicesResourcesRequestStatus) MarshalJSON ¶ added in v0.1.12
func (c ListResourceGroupsServicesResourcesRequestStatus) MarshalJSON() ([]byte, error)
func (*ListResourceGroupsServicesResourcesRequestStatus) UnmarshalJSON ¶ added in v0.1.12
func (c *ListResourceGroupsServicesResourcesRequestStatus) UnmarshalJSON(b []byte) error
func (ListResourceGroupsServicesResourcesRequestStatus) Value ¶ added in v0.1.12
func (c ListResourceGroupsServicesResourcesRequestStatus) Value() string
type ListResourceGroupsServicesResourcesRequestStatusEnum ¶ added in v0.1.12
type ListResourceGroupsServicesResourcesRequestStatusEnum struct { HEALTH ListResourceGroupsServicesResourcesRequestStatus UNHEALTHY ListResourceGroupsServicesResourcesRequestStatus NO_ALARM_RULE ListResourceGroupsServicesResourcesRequestStatus }
func GetListResourceGroupsServicesResourcesRequestStatusEnum ¶ added in v0.1.12
func GetListResourceGroupsServicesResourcesRequestStatusEnum() ListResourceGroupsServicesResourcesRequestStatusEnum
type ListResourceGroupsServicesResourcesResponse ¶ added in v0.1.12
type ListResourceGroupsServicesResourcesResponse struct { // 资源总数 Count *int32 `json:"count,omitempty"` // 资源分组资源列表 Resources *[]GetResourceGroupResources `json:"resources,omitempty"` HttpStatusCode int `json:"-"` }
ListResourceGroupsServicesResourcesResponse Response Object
func (ListResourceGroupsServicesResourcesResponse) String ¶ added in v0.1.12
func (o ListResourceGroupsServicesResourcesResponse) String() string
type Metric ¶
type Metric struct { // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace *string `json:"namespace,omitempty"` // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。 MetricName *string `json:"metric_name,omitempty"` // 指标维度,目前最大可添加4个维度。 Dimensions *[]Dimension `json:"dimensions,omitempty"` }
Metric 指标信息
type MetricDimension ¶ added in v0.0.79
type MetricDimension struct { // 指标维度名称 Name string `json:"name"` // 指标维度值 Value *string `json:"value,omitempty"` }
MetricDimension 指标维度
func (MetricDimension) String ¶ added in v0.0.79
func (o MetricDimension) String() string
type MetricName ¶ added in v0.0.99
type MetricName struct { }
MetricName 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
func (MetricName) String ¶ added in v0.0.99
func (o MetricName) String() string
type Namespace ¶ added in v0.0.79
type Namespace struct { }
Namespace 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
type NamespaceAllowedEmpty ¶ added in v0.1.12
type NamespaceAllowedEmpty struct { }
NamespaceAllowedEmpty 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
func (NamespaceAllowedEmpty) String ¶ added in v0.1.12
func (o NamespaceAllowedEmpty) String() string
type Notification ¶ added in v0.0.99
type Notification struct { // 通知类型, notification代表通过SMN通知 Type string `json:"type"` // 告警状态发生变化时,被通知对象的列表。topicUrn可从SMN获取,具体操作请参考查询Topic列表。当type为notification时,notification_list列表不能为空。 说明:若alarm_action_enabled为true,对应的alarm_actions、ok_actions至少有一个不能为空。若alarm_actions、ok_actions同时存在时,notification_list值保持一致。 NotificationList []string `json:"notification_list"` }
func (Notification) String ¶ added in v0.0.99
func (o Notification) String() string
type NotificationBeginTime ¶ added in v0.0.99
type NotificationBeginTime struct { }
NotificationBeginTime 告警通知开启时间
func (NotificationBeginTime) String ¶ added in v0.0.99
func (o NotificationBeginTime) String() string
type NotificationEnabled ¶ added in v0.0.99
type NotificationEnabled struct { }
NotificationEnabled 是否开启告警通知
func (NotificationEnabled) String ¶ added in v0.0.99
func (o NotificationEnabled) String() string
type NotificationEndTime ¶ added in v0.0.99
type NotificationEndTime struct { }
NotificationEndTime 告警通知关闭时间
func (NotificationEndTime) String ¶ added in v0.0.99
func (o NotificationEndTime) String() string
type OneResourceGroupResp ¶ added in v0.1.12
type OneResourceGroupResp struct { // 资源分组的名称 GroupName string `json:"group_name"` // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId string `json:"group_id"` // 资源分组的创建时间 CreateTime *sdktime.SdkTime `json:"create_time"` // 资源分组归属企业项目ID EnterpriseProjectId string `json:"enterprise_project_id"` // 资源分组添加资源方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),Manual(手动添加) Type OneResourceGroupRespType `json:"type"` }
func (OneResourceGroupResp) String ¶ added in v0.1.12
func (o OneResourceGroupResp) String() string
type OneResourceGroupRespType ¶ added in v0.1.12
type OneResourceGroupRespType struct {
// contains filtered or unexported fields
}
func (OneResourceGroupRespType) MarshalJSON ¶ added in v0.1.12
func (c OneResourceGroupRespType) MarshalJSON() ([]byte, error)
func (*OneResourceGroupRespType) UnmarshalJSON ¶ added in v0.1.12
func (c *OneResourceGroupRespType) UnmarshalJSON(b []byte) error
func (OneResourceGroupRespType) Value ¶ added in v0.1.12
func (c OneResourceGroupRespType) Value() string
type OneResourceGroupRespTypeEnum ¶ added in v0.1.12
type OneResourceGroupRespTypeEnum struct { EPS OneResourceGroupRespType TAG OneResourceGroupRespType MANUAL OneResourceGroupRespType }
func GetOneResourceGroupRespTypeEnum ¶ added in v0.1.12
func GetOneResourceGroupRespTypeEnum() OneResourceGroupRespTypeEnum
type Policies ¶ added in v0.1.12
type Policies struct { // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)” Namespace string `json:"namespace"` // 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32 DimensionName string `json:"dimension_name"` // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。 MetricName string `json:"metric_name"` // 告警条件判断周期,单位为秒 Period PoliciesPeriod `json:"period"` // 数据聚合方式 Filter string `json:"filter"` // 告警阈值的比较条件 ComparisonOperator string `json:"comparison_operator"` // 告警阈值(Number.MAX_VALUE) Value float32 `json:"value"` // 数据的单位字符串,长度不超过32 Unit *string `json:"unit,omitempty"` // 告警连续触发次数,正整数[1, 5] Count int32 `json:"count"` // 告警级别,1为紧急,2为重要,3为次要,4为提示 AlarmLevel *int32 `json:"alarm_level,omitempty"` // 告警抑制周期,单位为秒,当告警抑制周期为0时,仅发送一次告警 SuppressDuration PoliciesSuppressDuration `json:"suppress_duration"` }
type PoliciesPeriod ¶ added in v0.1.12
type PoliciesPeriod struct {
// contains filtered or unexported fields
}
func (PoliciesPeriod) MarshalJSON ¶ added in v0.1.12
func (c PoliciesPeriod) MarshalJSON() ([]byte, error)
func (*PoliciesPeriod) UnmarshalJSON ¶ added in v0.1.12
func (c *PoliciesPeriod) UnmarshalJSON(b []byte) error
func (PoliciesPeriod) Value ¶ added in v0.1.12
func (c PoliciesPeriod) Value() int32
type PoliciesPeriodEnum ¶ added in v0.1.12
type PoliciesPeriodEnum struct { E_1 PoliciesPeriod E_300 PoliciesPeriod E_1200 PoliciesPeriod E_3600 PoliciesPeriod E_14400 PoliciesPeriod E_86400 PoliciesPeriod }
func GetPoliciesPeriodEnum ¶ added in v0.1.12
func GetPoliciesPeriodEnum() PoliciesPeriodEnum
type PoliciesReqV2 ¶ added in v0.0.99
type PoliciesReqV2 struct { // 策略信息 Policies []Policy `json:"policies"` }
func (PoliciesReqV2) String ¶ added in v0.0.99
func (o PoliciesReqV2) String() string
type PoliciesSuppressDuration ¶ added in v0.1.12
type PoliciesSuppressDuration struct {
// contains filtered or unexported fields
}
func (PoliciesSuppressDuration) MarshalJSON ¶ added in v0.1.12
func (c PoliciesSuppressDuration) MarshalJSON() ([]byte, error)
func (*PoliciesSuppressDuration) UnmarshalJSON ¶ added in v0.1.12
func (c *PoliciesSuppressDuration) UnmarshalJSON(b []byte) error
func (PoliciesSuppressDuration) Value ¶ added in v0.1.12
func (c PoliciesSuppressDuration) Value() int32
type PoliciesSuppressDurationEnum ¶ added in v0.1.12
type PoliciesSuppressDurationEnum struct { E_0 PoliciesSuppressDuration E_300 PoliciesSuppressDuration E_600 PoliciesSuppressDuration E_900 PoliciesSuppressDuration E_1800 PoliciesSuppressDuration E_3600 PoliciesSuppressDuration E_10800 PoliciesSuppressDuration E_21600 PoliciesSuppressDuration E_43200 PoliciesSuppressDuration E_86400 PoliciesSuppressDuration }
func GetPoliciesSuppressDurationEnum ¶ added in v0.1.12
func GetPoliciesSuppressDurationEnum() PoliciesSuppressDurationEnum
type Policy ¶ added in v0.0.79
type Policy struct { // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。 MetricName string `json:"metric_name"` // 指标周期,单位是秒; 0是默认值,例如事件类告警该字段就用0即可; 1代表指标的原始周期,比如RDS监控指标原始周期是60s,表示该RDS指标按60s周期为一个数据点参与告警计算;如想了解各个云服务的指标原始周期可以参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html), 300代表指标按5分钟聚合周期为一个数据点参与告警计算。 Period int32 `json:"period"` // 聚合方式, 支持的值为(average|min|max|sum) Filter string `json:"filter"` // 阈值符号, 支持的值为(>|<|>=|<=|=|><) ComparisonOperator string `json:"comparison_operator"` // 阈值 Value float64 `json:"value"` // 单位 Unit *string `json:"unit,omitempty"` // 次数 Count int32 `json:"count"` // 告警抑制时间,单位为秒,对应页面上创建告警规则时告警策略最后一个字段,该字段主要为解决告警频繁的问题,0代表不抑制,满足条件即告警;300代表满足告警触发条件后每5分钟告警一次; SuppressDuration *int32 `json:"suppress_duration,omitempty"` // 告警级别, 1为紧急,2为重要,3为次要,4为提示 Level *int32 `json:"level,omitempty"` }
type PolicyStatistics ¶ added in v0.1.12
type PolicyStatistics struct { // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)” Namespace string `json:"namespace"` // 对应命名空间的告警策略数目 PolicyNum int32 `json:"policy_num"` }
func (PolicyStatistics) String ¶ added in v0.1.12
func (o PolicyStatistics) String() string
type PolicyTotal ¶ added in v0.1.12
type PolicyTotal struct { }
PolicyTotal 告警模板的告警策略总数
func (PolicyTotal) String ¶ added in v0.1.12
func (o PolicyTotal) String() string
type PostAlarmsReqV2 ¶ added in v0.0.79
type PostAlarmsReqV2 struct { // 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128 Name string `json:"name"` // 告警描述,长度0-256 Description *string `json:"description,omitempty"` // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace string `json:"namespace"` // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 ResourceGroupId *string `json:"resource_group_id,omitempty"` // 资源列表,监控范围为指定资源时必传 Resources [][]Dimension `json:"resources"` // 告警策略 Policies []Policy `json:"policies"` Type *AlarmType `json:"type"` // 告警触发的动作 AlarmNotifications *[]Notification `json:"alarm_notifications,omitempty"` // 告警恢复触发的动作 OkNotifications *[]Notification `json:"ok_notifications,omitempty"` // 告警通知开启时间 NotificationBeginTime *string `json:"notification_begin_time,omitempty"` // 告警通知关闭时间 NotificationEndTime *string `json:"notification_end_time,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 告警开关 Enabled bool `json:"enabled"` // 是否开启告警通知 NotificationEnabled bool `json:"notification_enabled"` // 告警规则关联告警模板ID,如果传了,告警规则关联的策略会和告警模板策略联动变化 AlarmTemplateId *string `json:"alarm_template_id,omitempty"` }
func (PostAlarmsReqV2) String ¶ added in v0.0.79
func (o PostAlarmsReqV2) String() string
type PutResourceGroupReq ¶ added in v0.1.12
type PutResourceGroupReq struct { // 资源分组名称,只能为字母、数字、汉字、-、_,最大长度为128 GroupName string `json:"group_name"` // 标签动态匹配时的关联标签,type为TAG时必传 Tags *[]ResourceGroupTagRelation `json:"tags,omitempty"` }
PutResourceGroupReq 资源分组修改请求体
func (PutResourceGroupReq) String ¶ added in v0.1.12
func (o PutResourceGroupReq) String() string
type Resource ¶ added in v0.1.12
type Resource struct { // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)” Namespace string `json:"namespace"` // 资源的维度信息 Dimensions []Dimension2 `json:"dimensions"` }
type ResourceGroupId ¶ added in v0.0.99
type ResourceGroupId struct { }
ResourceGroupId 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
func (ResourceGroupId) String ¶ added in v0.0.99
func (o ResourceGroupId) String() string
type ResourceGroupTagRelation ¶ added in v0.1.12
type ResourceGroupTagRelation struct { // 键 Key string `json:"key"` // 值 Value *string `json:"value,omitempty"` }
func (ResourceGroupTagRelation) String ¶ added in v0.1.12
func (o ResourceGroupTagRelation) String() string
type ResourcesInListResp ¶ added in v0.0.79
type ResourcesInListResp struct { // 资源分组ID,监控范围为资源分组时存在该值 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 []Resource `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 ShowAlarmTemplateRequest ¶ added in v0.1.12
type ShowAlarmTemplateRequest struct { // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64 TemplateId string `json:"template_id"` }
ShowAlarmTemplateRequest Request Object
func (ShowAlarmTemplateRequest) String ¶ added in v0.1.12
func (o ShowAlarmTemplateRequest) String() string
type ShowAlarmTemplateResponse ¶ added in v0.1.12
type ShowAlarmTemplateResponse struct { // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64 TemplateId *string `json:"template_id,omitempty"` // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128] TemplateName *string `json:"template_name,omitempty"` TemplateType *TemplateType `json:"template_type,omitempty"` // 告警模板的创建时间 CreateTime *sdktime.SdkTime `json:"create_time,omitempty"` // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串 TemplateDescription *string `json:"template_description,omitempty"` // 告警模板关联的告警规则数目 AssociationAlarmTotal *int32 `json:"association_alarm_total,omitempty"` // 告警模板策略列表 Policies *[]AlarmTemplatePolicies `json:"policies,omitempty"` HttpStatusCode int `json:"-"` }
ShowAlarmTemplateResponse Response Object
func (ShowAlarmTemplateResponse) String ¶ added in v0.1.12
func (o ShowAlarmTemplateResponse) String() string
type ShowResourceGroupRequest ¶ added in v0.1.12
type ShowResourceGroupRequest struct { // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId string `json:"group_id"` }
ShowResourceGroupRequest Request Object
func (ShowResourceGroupRequest) String ¶ added in v0.1.12
func (o ShowResourceGroupRequest) String() string
type ShowResourceGroupResponse ¶ added in v0.1.12
type ShowResourceGroupResponse struct { // 资源分组的名称 GroupName *string `json:"group_name,omitempty"` // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId *string `json:"group_id,omitempty"` // 资源分组的创建时间 CreateTime *sdktime.SdkTime `json:"create_time,omitempty"` // 资源分组归属企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 资源分组添加资源方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),Manual(手动添加) Type *ShowResourceGroupResponseType `json:"type,omitempty"` // 该资源分组内包含的资源来源的企业项目ID,type为EPS时必传 AssociationEpIds *[]string `json:"association_ep_ids,omitempty"` // 标签动态匹配时的关联标签,type为TAG时该字段不为空 Tags *[]ResourceGroupTagRelation `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
ShowResourceGroupResponse Response Object
func (ShowResourceGroupResponse) String ¶ added in v0.1.12
func (o ShowResourceGroupResponse) String() string
type ShowResourceGroupResponseType ¶ added in v0.1.12
type ShowResourceGroupResponseType struct {
// contains filtered or unexported fields
}
func (ShowResourceGroupResponseType) MarshalJSON ¶ added in v0.1.12
func (c ShowResourceGroupResponseType) MarshalJSON() ([]byte, error)
func (*ShowResourceGroupResponseType) UnmarshalJSON ¶ added in v0.1.12
func (c *ShowResourceGroupResponseType) UnmarshalJSON(b []byte) error
func (ShowResourceGroupResponseType) Value ¶ added in v0.1.12
func (c ShowResourceGroupResponseType) Value() string
type ShowResourceGroupResponseTypeEnum ¶ added in v0.1.12
type ShowResourceGroupResponseTypeEnum struct { EPS ShowResourceGroupResponseType TAG ShowResourceGroupResponseType MANUAL ShowResourceGroupResponseType }
func GetShowResourceGroupResponseTypeEnum ¶ added in v0.1.12
func GetShowResourceGroupResponseTypeEnum() ShowResourceGroupResponseTypeEnum
type TemplateApplicationType ¶ added in v0.1.12
type TemplateApplicationType struct {
// contains filtered or unexported fields
}
TemplateApplicationType 模板应用类型。ALL_DIMENSION:所有维度, ONE_DIMENSION:同一维度。
func (TemplateApplicationType) MarshalJSON ¶ added in v0.1.12
func (c TemplateApplicationType) MarshalJSON() ([]byte, error)
func (*TemplateApplicationType) UnmarshalJSON ¶ added in v0.1.12
func (c *TemplateApplicationType) UnmarshalJSON(b []byte) error
func (TemplateApplicationType) Value ¶ added in v0.1.12
func (c TemplateApplicationType) Value() string
type TemplateApplicationTypeEnum ¶ added in v0.1.12
type TemplateApplicationTypeEnum struct { ALL_DIMENSION TemplateApplicationType ONE_DIMENSION TemplateApplicationType }
func GetTemplateApplicationTypeEnum ¶ added in v0.1.12
func GetTemplateApplicationTypeEnum() TemplateApplicationTypeEnum
type TemplateDescription ¶ added in v0.1.12
type TemplateDescription struct { }
TemplateDescription 告警模板的描述,长度范围[0,256],该字段默认值为空字符串
func (TemplateDescription) String ¶ added in v0.1.12
func (o TemplateDescription) String() string
type TemplateId ¶ added in v0.1.12
type TemplateId struct { }
TemplateId 告警模板的ID,以at开头,后跟字母、数字,长度最长为64
func (TemplateId) String ¶ added in v0.1.12
func (o TemplateId) String() string
type TemplateName ¶ added in v0.1.12
type TemplateName struct { }
TemplateName 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128]
func (TemplateName) String ¶ added in v0.1.12
func (o TemplateName) String() string
type TemplateType ¶ added in v0.1.12
type TemplateType struct {
// contains filtered or unexported fields
}
TemplateType 模板类型(custom代表默认自定义模板,system代表系统模板)
func (TemplateType) MarshalJSON ¶ added in v0.1.12
func (c TemplateType) MarshalJSON() ([]byte, error)
func (*TemplateType) UnmarshalJSON ¶ added in v0.1.12
func (c *TemplateType) UnmarshalJSON(b []byte) error
func (TemplateType) Value ¶ added in v0.1.12
func (c TemplateType) Value() string
type TemplateTypeEnum ¶ added in v0.1.12
type TemplateTypeEnum struct { SYSTEM TemplateType CUSTOM TemplateType }
func GetTemplateTypeEnum ¶ added in v0.1.12
func GetTemplateTypeEnum() TemplateTypeEnum
type UpdateAlarmRulePoliciesRequest ¶ added in v0.0.99
type UpdateAlarmRulePoliciesRequest struct { // Alarm实例ID AlarmId string `json:"alarm_id"` Body *PoliciesReqV2 `json:"body,omitempty"` }
UpdateAlarmRulePoliciesRequest Request Object
func (UpdateAlarmRulePoliciesRequest) String ¶ added in v0.0.99
func (o UpdateAlarmRulePoliciesRequest) String() string
type UpdateAlarmRulePoliciesResponse ¶ added in v0.0.99
type UpdateAlarmRulePoliciesResponse struct { // 策略信息 Policies *[]Policy `json:"policies,omitempty"` HttpStatusCode int `json:"-"` }
UpdateAlarmRulePoliciesResponse Response Object
func (UpdateAlarmRulePoliciesResponse) String ¶ added in v0.0.99
func (o UpdateAlarmRulePoliciesResponse) String() string
type UpdateAlarmTemplateRequest ¶ added in v0.1.12
type UpdateAlarmTemplateRequest struct { // 告警模板ID TemplateId string `json:"template_id"` Body *UpdateAlarmTemplateRequestBody `json:"body,omitempty"` }
UpdateAlarmTemplateRequest Request Object
func (UpdateAlarmTemplateRequest) String ¶ added in v0.1.12
func (o UpdateAlarmTemplateRequest) String() string
type UpdateAlarmTemplateRequestBody ¶ added in v0.1.12
type UpdateAlarmTemplateRequestBody struct { // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128] TemplateName string `json:"template_name"` // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串 TemplateDescription *string `json:"template_description,omitempty"` // 告警模板策略列表 Policies []Policies `json:"policies"` }
func (UpdateAlarmTemplateRequestBody) String ¶ added in v0.1.12
func (o UpdateAlarmTemplateRequestBody) String() string
type UpdateAlarmTemplateResponse ¶ added in v0.1.12
type UpdateAlarmTemplateResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateAlarmTemplateResponse Response Object
func (UpdateAlarmTemplateResponse) String ¶ added in v0.1.12
func (o UpdateAlarmTemplateResponse) String() string
type UpdateResourceGroupRequest ¶ added in v0.1.12
type UpdateResourceGroupRequest struct { // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串 GroupId string `json:"group_id"` Body *PutResourceGroupReq `json:"body,omitempty"` }
UpdateResourceGroupRequest Request Object
func (UpdateResourceGroupRequest) String ¶ added in v0.1.12
func (o UpdateResourceGroupRequest) String() string
type UpdateResourceGroupResponse ¶ added in v0.1.12
type UpdateResourceGroupResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateResourceGroupResponse Response Object
func (UpdateResourceGroupResponse) String ¶ added in v0.1.12
func (o UpdateResourceGroupResponse) String() string
Source Files ¶
- model_add_alarm_rule_resources_request.go
- model_add_alarm_rule_resources_response.go
- model_additional_info.go
- model_agent_dimension.go
- model_alarm_condition.go
- model_alarm_description.go
- model_alarm_enabled.go
- model_alarm_history_item_v2.go
- model_alarm_id.go
- model_alarm_level.go
- model_alarm_name.go
- model_alarm_template_id.go
- model_alarm_template_policies.go
- model_alarm_templates.go
- model_alarm_type.go
- model_association_alarm_total.go
- model_association_resource_group.go
- model_batch_create_resources_request.go
- model_batch_create_resources_response.go
- model_batch_delete_alarm_rules_request.go
- model_batch_delete_alarm_rules_response.go
- model_batch_delete_alarm_templates_request.go
- model_batch_delete_alarm_templates_request_body.go
- model_batch_delete_alarm_templates_response.go
- model_batch_delete_alarms_request_body.go
- model_batch_delete_resource_groups_request.go
- model_batch_delete_resource_groups_request_body.go
- model_batch_delete_resource_groups_response.go
- model_batch_delete_resources_request.go
- model_batch_delete_resources_response.go
- model_batch_enable_alarm_rules_request.go
- model_batch_enable_alarm_rules_response.go
- model_batch_enable_alarms_request_body.go
- model_comparison_operator.go
- model_count.go
- model_create_alarm_rules_request.go
- model_create_alarm_rules_response.go
- model_create_alarm_template_request.go
- model_create_alarm_template_request_body.go
- model_create_alarm_template_response.go
- model_create_resource_group_request.go
- model_create_resource_group_request_body.go
- model_create_resource_group_response.go
- model_create_time.go
- model_data_point_info.go
- model_delete_alarm_rule_resources_request.go
- model_delete_alarm_rule_resources_response.go
- model_dimension.go
- model_dimension2.go
- model_dimension_name.go
- model_enterprise_project_id.go
- model_filter.go
- model_get_resource_group_resources.go
- model_group_id.go
- model_group_name.go
- model_level.go
- model_list_agent_dimension_info_request.go
- model_list_agent_dimension_info_response.go
- model_list_alarm_histories_request.go
- model_list_alarm_histories_response.go
- model_list_alarm_response_alarms.go
- model_list_alarm_rule_policies_request.go
- model_list_alarm_rule_policies_response.go
- model_list_alarm_rule_resources_request.go
- model_list_alarm_rule_resources_response.go
- model_list_alarm_rules_request.go
- model_list_alarm_rules_response.go
- model_list_alarm_template_association_alarms_request.go
- model_list_alarm_template_association_alarms_response.go
- model_list_alarm_templates_request.go
- model_list_alarm_templates_response.go
- model_list_association_alarms_response_alarms.go
- model_list_resource_groups_request.go
- model_list_resource_groups_response.go
- model_list_resource_groups_services_resources_request.go
- model_list_resource_groups_services_resources_response.go
- model_metric.go
- model_metric_dimension.go
- model_metric_name.go
- model_namespace.go
- model_namespace_allowed_empty.go
- model_notification.go
- model_notification_begin_time.go
- model_notification_enabled.go
- model_notification_end_time.go
- model_one_resource_group_resp.go
- model_policies.go
- model_policies_req_v2.go
- model_policy.go
- model_policy_statistics.go
- model_policy_total.go
- model_post_alarms_req_v2.go
- model_put_resource_group_req.go
- model_resource.go
- model_resource_group_id.go
- model_resource_group_tag_relation.go
- model_resources_in_list_resp.go
- model_resources_req.go
- model_resources_req_v2.go
- model_show_alarm_template_request.go
- model_show_alarm_template_response.go
- model_show_resource_group_request.go
- model_show_resource_group_response.go
- model_smn_urn.go
- model_template_application_type.go
- model_template_description.go
- model_template_id.go
- model_template_name.go
- model_template_type.go
- model_unit.go
- model_update_alarm_rule_policies_request.go
- model_update_alarm_rule_policies_response.go
- model_update_alarm_template_request.go
- model_update_alarm_template_request_body.go
- model_update_alarm_template_response.go
- model_update_resource_group_request.go
- model_update_resource_group_response.go
- model_value.go