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 AlarmPolicyId
- type AlarmTemplateId
- type AlarmTemplatePolicies
- type AlarmTemplatePoliciesPeriod
- type AlarmTemplatePoliciesPeriodEnum
- type AlarmTemplatePoliciesSuppressDuration
- type AlarmTemplatePoliciesSuppressDurationEnum
- type AlarmTemplates
- type AlarmType
- type AlarmTypeEnum
- type BaseWidgetInfo
- type BaseWidgetInfoMetricDisplayMode
- type BaseWidgetInfoMetricDisplayModeEnum
- type BaseWidgetInfoView
- type BaseWidgetInfoViewEnum
- type BatchCreateResourcesRequest
- type BatchCreateResourcesResponse
- type BatchDeleteAlarmRulesRequest
- type BatchDeleteAlarmRulesResponse
- type BatchDeleteAlarmTemplatesRequest
- type BatchDeleteAlarmTemplatesRequestBody
- type BatchDeleteAlarmTemplatesResponse
- type BatchDeleteAlarmsRequestBody
- type BatchDeleteDashboardRequestBody
- type BatchDeleteDashboardRespInfo
- type BatchDeleteDashboardRespInfoRetStatus
- type BatchDeleteDashboardRespInfoRetStatusEnum
- type BatchDeleteNotificationMasksRequest
- type BatchDeleteNotificationMasksRequestBody
- type BatchDeleteNotificationMasksResponse
- type BatchDeleteOneClickAlarmsRequest
- type BatchDeleteOneClickAlarmsRequestBody
- type BatchDeleteOneClickAlarmsResponse
- type BatchDeleteResourceGroupsRequest
- type BatchDeleteResourceGroupsRequestBody
- type BatchDeleteResourceGroupsResponse
- type BatchDeleteResourcesRequest
- type BatchDeleteResourcesResponse
- type BatchEnableAlarmPoliciesRequestBody
- type BatchEnableAlarmRulesRequest
- type BatchEnableAlarmRulesResponse
- type BatchEnableAlarmsRequestBody
- type BatchUpdateNotificationMaskTimeRequest
- type BatchUpdateNotificationMaskTimeRequestBody
- type BatchUpdateNotificationMaskTimeResponse
- type BatchUpdateNotificationMasksRequest
- type BatchUpdateNotificationMasksRequestBody
- type BatchUpdateNotificationMasksResponse
- type BatchUpdateOneClickAlarmPoliciesEnabledStateRequest
- type BatchUpdateOneClickAlarmPoliciesEnabledStateResponse
- type BatchUpdateOneClickAlarmsEnabledStateRequest
- type BatchUpdateOneClickAlarmsEnabledStateResponse
- type BatchUpdateWidgetInfo
- type BatchUpdateWidgetInfoRetStatus
- type BatchUpdateWidgetInfoRetStatusEnum
- type BatchUpdateWidgetsRequest
- type BatchUpdateWidgetsResponse
- type ComparisonOperator
- type Count
- type CreateAlarmRulesRequest
- type CreateAlarmRulesResponse
- type CreateAlarmTemplateRequest
- type CreateAlarmTemplateRequestBody
- type CreateAlarmTemplateRequestBodyTemplateType
- type CreateAlarmTemplateRequestBodyTemplateTypeEnum
- type CreateAlarmTemplateResponse
- type CreateDashboardRequestBody
- type CreateDashboardWidgetsRequest
- type CreateDashboardWidgetsResponse
- type CreateOneClickAlarmRequest
- type CreateOneClickAlarmResponse
- type CreateOneDashboardRequest
- type CreateOneDashboardResponse
- type CreateResourceGroupRequest
- type CreateResourceGroupRequestBody
- type CreateResourceGroupResponse
- type CreateTime
- type DashBoardIdItem
- type DashBoardInfo
- type DashBoardNameItem
- type DataPointInfo
- type DeleteAlarmRuleResourcesRequest
- type DeleteAlarmRuleResourcesResponse
- type DeleteDashboardsRequest
- type DeleteDashboardsResponse
- type DeleteOneWidgetRequest
- type DeleteOneWidgetResponse
- type Dimension
- type Dimension2
- type DimensionInfo
- type DimensionInfoFilterType
- type DimensionInfoFilterTypeEnum
- type DimensionName
- type DimensionNames
- type EnableOneClickAlarmRequestBody
- type Enabled
- type EndDate
- type EndTime
- type EnterpriseIdItem
- type EnterpriseProjectId
- type EventDimensionName
- type ExtraInfo
- type Filter
- type GetResourceGroupResources
- type GetResourceGroupResourcesStatus
- type GetResourceGroupResourcesStatusEnum
- type IsFavoriteItem
- 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 ListAlarmsRespAlarms
- type ListAssociationAlarmsResponseAlarms
- type ListCesTargetProjectTagsRequest
- type ListCesTargetProjectTagsRequestResourceType
- type ListCesTargetProjectTagsRequestResourceTypeEnum
- type ListCesTargetProjectTagsResponse
- type ListDashboardInfosRequest
- type ListDashboardInfosResponse
- type ListDashboardWidgetsRequest
- type ListDashboardWidgetsResponse
- type ListNotificationMaskRequestBody
- type ListNotificationMaskRequestBodyMaskStatus
- type ListNotificationMaskRequestBodyMaskStatusEnum
- type ListNotificationMaskResourcesRequest
- type ListNotificationMaskResourcesResponse
- type ListNotificationMaskRespNotificationMasks
- type ListNotificationMasksRequest
- type ListNotificationMasksResponse
- type ListOneClickAlarmRulesRequest
- type ListOneClickAlarmRulesResponse
- type ListOneClickAlarmsRequest
- type ListOneClickAlarmsRespOneClickAlarms
- type ListOneClickAlarmsResponse
- type ListPolicy
- type ListRelationType
- type ListRelationTypeEnum
- type ListResourceGroupsRequest
- type ListResourceGroupsRequestType
- type ListResourceGroupsRequestTypeEnum
- type ListResourceGroupsResponse
- type ListResourceGroupsServicesResourcesRequest
- type ListResourceGroupsServicesResourcesRequestStatus
- type ListResourceGroupsServicesResourcesRequestStatusEnum
- type ListResourceGroupsServicesResourcesResponse
- type MaskName
- type MaskStatus
- type MaskStatusEnum
- type MaskType
- type MaskTypeEnum
- type Metric
- type MetricDimension
- type MetricDimensionName
- type MetricExtraInfo
- type MetricName
- type Namespace
- type NamespaceAllowedEmpty
- type Notification
- type NotificationBeginTime
- type NotificationEnabled
- type NotificationEndTime
- type NotificationMaskId
- type OneClickAlarmDescription
- type OneClickAlarmId
- type OneClickAlarmPolicy
- type OneResourceGroupResp
- type OneResourceGroupRespType
- type OneResourceGroupRespTypeEnum
- type Period
- type PeriodEnum
- type Policies
- type PoliciesInListResp
- type PoliciesPeriod
- type PoliciesPeriodEnum
- type PoliciesReqV2
- type PoliciesSuppressDuration
- type PoliciesSuppressDurationEnum
- type Policy
- type PostAlarmsReqV2
- type PutAlarmNotificationReq
- type PutResourceGroupReq
- type RelationId
- type RelationType
- type RelationTypeEnum
- type Resource
- type ResourceCategory
- type ResourceGroupId
- type ResourceGroupTagRelation
- type ResourceTag
- type ResourcesInListResp
- type ResourcesReq
- type ResourcesReqV2
- type SelectedUnit
- type ShowAlarmTemplateRequest
- type ShowAlarmTemplateResponse
- type ShowResourceGroupRequest
- type ShowResourceGroupResponse
- type ShowResourceGroupResponseType
- type ShowResourceGroupResponseTypeEnum
- type ShowWidgetRequest
- type ShowWidgetResponse
- type ShowWidgetResponseMetricDisplayMode
- type ShowWidgetResponseMetricDisplayModeEnum
- type ShowWidgetResponseView
- type ShowWidgetResponseViewEnum
- type SmnUrn
- type StartDate
- type StartTime
- type SuppressDuration
- type SuppressDurationEnum
- type Tag
- type TemplateDescription
- type TemplateId
- type TemplateName
- type TemplateType
- type TemplateTypeEnum
- type Unit
- type UnitItem
- type UpdateAlarmNotificationsRequest
- type UpdateAlarmNotificationsResponse
- type UpdateAlarmRulePoliciesRequest
- type UpdateAlarmRulePoliciesResponse
- type UpdateAlarmTemplateRequest
- type UpdateAlarmTemplateRequestBody
- type UpdateAlarmTemplateResponse
- type UpdateDashboardRequest
- type UpdateDashboardRequestBody
- type UpdateDashboardResponse
- type UpdateNotificationMaskRequest
- type UpdateNotificationMaskResponse
- type UpdateNotificationMasksRequestBody
- type UpdateOneClickAlarmNotificationsRequest
- type UpdateOneClickAlarmNotificationsResponse
- type UpdatePolicy
- type UpdateResourceGroupRequest
- type UpdateResourceGroupResponse
- type UpdateWidgetInfo
- type UpdateWidgetInfoLocation
- type UpdateWidgetInfoMetricDisplayMode
- type UpdateWidgetInfoMetricDisplayModeEnum
- type UpdateWidgetInfoProperties
- type UpdateWidgetInfoPropertiesFilter
- type UpdateWidgetInfoPropertiesFilterEnum
- type UpdateWidgetInfoPropertiesOrder
- type UpdateWidgetInfoPropertiesOrderEnum
- type UpdateWidgetInfoView
- type UpdateWidgetInfoViewEnum
- type Value
- type WidgetDisplayMode
- type WidgetIdItem
- type WidgetInfo
- type WidgetInfoMetricDisplayMode
- type WidgetInfoMetricDisplayModeEnum
- type WidgetInfoView
- type WidgetInfoViewEnum
- type WidgetInfoWithId
- type WidgetInfoWithIdMetricDisplayMode
- type WidgetInfoWithIdMetricDisplayModeEnum
- type WidgetInfoWithIdView
- type WidgetInfoWithIdViewEnum
- type WidgetMetric
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"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 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 E_86400 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 AlarmPolicyId ¶ added in v0.1.61
type AlarmPolicyId struct { }
AlarmPolicyId 告警策略ID。
func (AlarmPolicyId) String ¶ added in v0.1.61
func (o AlarmPolicyId) String() string
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 { // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) 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"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 ComparisonOperator string `json:"comparison_operator"` // 告警阈值 Value float32 `json:"value"` // 数据的单位字符串,长度不超过32 Unit string `json:"unit"` // 次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 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,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 BaseWidgetInfo ¶ added in v0.1.57
type BaseWidgetInfo struct { // 指标列表 Metrics *[]WidgetMetric `json:"metrics,omitempty"` // 监控视图标题 Title *string `json:"title,omitempty"` // 监控视图指标的阈值 Threshold *float64 `json:"threshold,omitempty"` // 阈值是否展示,true:展示,false:不展示 ThresholdEnabled *bool `json:"threshold_enabled,omitempty"` // 监控视图图表类型, bar柱状图,line折线图 View *BaseWidgetInfoView `json:"view,omitempty"` // 指标展示类型,single 单指标展示,multiple 多指标展示 MetricDisplayMode *BaseWidgetInfoMetricDisplayMode `json:"metric_display_mode,omitempty"` Properties *UpdateWidgetInfoProperties `json:"properties,omitempty"` Location *UpdateWidgetInfoLocation `json:"location,omitempty"` // 单位 Unit *string `json:"unit,omitempty"` }
BaseWidgetInfo 监控视图信息
func (BaseWidgetInfo) String ¶ added in v0.1.57
func (o BaseWidgetInfo) String() string
type BaseWidgetInfoMetricDisplayMode ¶ added in v0.1.57
type BaseWidgetInfoMetricDisplayMode struct {
// contains filtered or unexported fields
}
func (BaseWidgetInfoMetricDisplayMode) MarshalJSON ¶ added in v0.1.57
func (c BaseWidgetInfoMetricDisplayMode) MarshalJSON() ([]byte, error)
func (*BaseWidgetInfoMetricDisplayMode) UnmarshalJSON ¶ added in v0.1.57
func (c *BaseWidgetInfoMetricDisplayMode) UnmarshalJSON(b []byte) error
func (BaseWidgetInfoMetricDisplayMode) Value ¶ added in v0.1.57
func (c BaseWidgetInfoMetricDisplayMode) Value() string
type BaseWidgetInfoMetricDisplayModeEnum ¶ added in v0.1.57
type BaseWidgetInfoMetricDisplayModeEnum struct { SINGLE BaseWidgetInfoMetricDisplayMode MULTIPLE BaseWidgetInfoMetricDisplayMode }
func GetBaseWidgetInfoMetricDisplayModeEnum ¶ added in v0.1.57
func GetBaseWidgetInfoMetricDisplayModeEnum() BaseWidgetInfoMetricDisplayModeEnum
type BaseWidgetInfoView ¶ added in v0.1.57
type BaseWidgetInfoView struct {
// contains filtered or unexported fields
}
func (BaseWidgetInfoView) MarshalJSON ¶ added in v0.1.57
func (c BaseWidgetInfoView) MarshalJSON() ([]byte, error)
func (*BaseWidgetInfoView) UnmarshalJSON ¶ added in v0.1.57
func (c *BaseWidgetInfoView) UnmarshalJSON(b []byte) error
func (BaseWidgetInfoView) Value ¶ added in v0.1.57
func (c BaseWidgetInfoView) Value() string
type BaseWidgetInfoViewEnum ¶ added in v0.1.57
type BaseWidgetInfoViewEnum struct { BAR BaseWidgetInfoView LINE BaseWidgetInfoView }
func GetBaseWidgetInfoViewEnum ¶ added in v0.1.57
func GetBaseWidgetInfoViewEnum() BaseWidgetInfoViewEnum
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 BatchDeleteDashboardRequestBody ¶ added in v0.1.57
type BatchDeleteDashboardRequestBody struct { // 监控看板id列表 DashboardIds *[]string `json:"dashboard_ids,omitempty"` }
func (BatchDeleteDashboardRequestBody) String ¶ added in v0.1.57
func (o BatchDeleteDashboardRequestBody) String() string
type BatchDeleteDashboardRespInfo ¶ added in v0.1.57
type BatchDeleteDashboardRespInfo struct { // 监控看板id DashboardId *string `json:"dashboard_id,omitempty"` // 处理结果, successful: 成功, error: 失败 RetStatus *BatchDeleteDashboardRespInfoRetStatus `json:"ret_status,omitempty"` // 错误信息 ErrorMsg *string `json:"error_msg,omitempty"` }
func (BatchDeleteDashboardRespInfo) String ¶ added in v0.1.57
func (o BatchDeleteDashboardRespInfo) String() string
type BatchDeleteDashboardRespInfoRetStatus ¶ added in v0.1.57
type BatchDeleteDashboardRespInfoRetStatus struct {
// contains filtered or unexported fields
}
func (BatchDeleteDashboardRespInfoRetStatus) MarshalJSON ¶ added in v0.1.57
func (c BatchDeleteDashboardRespInfoRetStatus) MarshalJSON() ([]byte, error)
func (*BatchDeleteDashboardRespInfoRetStatus) UnmarshalJSON ¶ added in v0.1.57
func (c *BatchDeleteDashboardRespInfoRetStatus) UnmarshalJSON(b []byte) error
func (BatchDeleteDashboardRespInfoRetStatus) Value ¶ added in v0.1.57
func (c BatchDeleteDashboardRespInfoRetStatus) Value() string
type BatchDeleteDashboardRespInfoRetStatusEnum ¶ added in v0.1.57
type BatchDeleteDashboardRespInfoRetStatusEnum struct { SUCCESSFUL BatchDeleteDashboardRespInfoRetStatus ERROR BatchDeleteDashboardRespInfoRetStatus }
func GetBatchDeleteDashboardRespInfoRetStatusEnum ¶ added in v0.1.57
func GetBatchDeleteDashboardRespInfoRetStatusEnum() BatchDeleteDashboardRespInfoRetStatusEnum
type BatchDeleteNotificationMasksRequest ¶ added in v0.1.61
type BatchDeleteNotificationMasksRequest struct {
Body *BatchDeleteNotificationMasksRequestBody `json:"body,omitempty"`
}
BatchDeleteNotificationMasksRequest Request Object
func (BatchDeleteNotificationMasksRequest) String ¶ added in v0.1.61
func (o BatchDeleteNotificationMasksRequest) String() string
type BatchDeleteNotificationMasksRequestBody ¶ added in v0.1.61
type BatchDeleteNotificationMasksRequestBody struct { // 屏蔽规则编号 NotificationMaskIds []string `json:"notification_mask_ids"` }
func (BatchDeleteNotificationMasksRequestBody) String ¶ added in v0.1.61
func (o BatchDeleteNotificationMasksRequestBody) String() string
type BatchDeleteNotificationMasksResponse ¶ added in v0.1.61
type BatchDeleteNotificationMasksResponse struct { // 删除成功的屏蔽规则ID NotificationMaskIds *[]string `json:"notification_mask_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteNotificationMasksResponse Response Object
func (BatchDeleteNotificationMasksResponse) String ¶ added in v0.1.61
func (o BatchDeleteNotificationMasksResponse) String() string
type BatchDeleteOneClickAlarmsRequest ¶ added in v0.1.61
type BatchDeleteOneClickAlarmsRequest struct {
Body *BatchDeleteOneClickAlarmsRequestBody `json:"body,omitempty"`
}
BatchDeleteOneClickAlarmsRequest Request Object
func (BatchDeleteOneClickAlarmsRequest) String ¶ added in v0.1.61
func (o BatchDeleteOneClickAlarmsRequest) String() string
type BatchDeleteOneClickAlarmsRequestBody ¶ added in v0.1.61
type BatchDeleteOneClickAlarmsRequestBody struct { // 需要批量删除的一键告警ID列表 OneClickAlarmIds []string `json:"one_click_alarm_ids"` }
func (BatchDeleteOneClickAlarmsRequestBody) String ¶ added in v0.1.61
func (o BatchDeleteOneClickAlarmsRequestBody) String() string
type BatchDeleteOneClickAlarmsResponse ¶ added in v0.1.61
type BatchDeleteOneClickAlarmsResponse struct { // 成功删除的一键告警ID列表 OneClickAlarmIds *[]string `json:"one_click_alarm_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteOneClickAlarmsResponse Response Object
func (BatchDeleteOneClickAlarmsResponse) String ¶ added in v0.1.61
func (o BatchDeleteOneClickAlarmsResponse) 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 BatchEnableAlarmPoliciesRequestBody ¶ added in v0.1.61
type BatchEnableAlarmPoliciesRequestBody struct { // 需要批量启停的告警规则策略的ID列表 AlarmPolicyIds []string `json:"alarm_policy_ids"` // 开关 Enabled bool `json:"enabled"` }
func (BatchEnableAlarmPoliciesRequestBody) String ¶ added in v0.1.61
func (o BatchEnableAlarmPoliciesRequestBody) 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 BatchUpdateNotificationMaskTimeRequest ¶ added in v0.1.61
type BatchUpdateNotificationMaskTimeRequest struct {
Body *BatchUpdateNotificationMaskTimeRequestBody `json:"body,omitempty"`
}
BatchUpdateNotificationMaskTimeRequest Request Object
func (BatchUpdateNotificationMaskTimeRequest) String ¶ added in v0.1.61
func (o BatchUpdateNotificationMaskTimeRequest) String() string
type BatchUpdateNotificationMaskTimeRequestBody ¶ added in v0.1.61
type BatchUpdateNotificationMaskTimeRequestBody struct { // 关联编号 NotificationMaskIds []string `json:"notification_mask_ids"` MaskType *MaskType `json:"mask_type"` // 屏蔽起始日期,yyyy-MM-dd。 StartDate *string `json:"start_date,omitempty"` // 屏蔽起始时间,HH:mm:ss。 StartTime *string `json:"start_time,omitempty"` // 屏蔽截止日期,yyyy-MM-dd。 EndDate *string `json:"end_date,omitempty"` // 屏蔽截止时间,HH:mm:ss。 EndTime *string `json:"end_time,omitempty"` }
BatchUpdateNotificationMaskTimeRequestBody 修改通知屏蔽时间请求体
func (BatchUpdateNotificationMaskTimeRequestBody) String ¶ added in v0.1.61
func (o BatchUpdateNotificationMaskTimeRequestBody) String() string
type BatchUpdateNotificationMaskTimeResponse ¶ added in v0.1.61
type BatchUpdateNotificationMaskTimeResponse struct {
HttpStatusCode int `json:"-"`
}
BatchUpdateNotificationMaskTimeResponse Response Object
func (BatchUpdateNotificationMaskTimeResponse) String ¶ added in v0.1.61
func (o BatchUpdateNotificationMaskTimeResponse) String() string
type BatchUpdateNotificationMasksRequest ¶ added in v0.1.61
type BatchUpdateNotificationMasksRequest struct {
Body *BatchUpdateNotificationMasksRequestBody `json:"body,omitempty"`
}
BatchUpdateNotificationMasksRequest Request Object
func (BatchUpdateNotificationMasksRequest) String ¶ added in v0.1.61
func (o BatchUpdateNotificationMasksRequest) String() string
type BatchUpdateNotificationMasksRequestBody ¶ added in v0.1.61
type BatchUpdateNotificationMasksRequestBody struct { // 屏蔽规则名称,只能为字母、数字、汉字、-、_,最大长度为64 MaskName *string `json:"mask_name,omitempty"` RelationType *RelationType `json:"relation_type"` // 关联编号,relation_type为ALARM_RULE时填屏蔽的告警规则ID;relation_type为RESOURCE_POLICY_NOTIFICATION、RESOURCE_POLICY_ALARM时填屏蔽的告警策略ID; RelationIds []string `json:"relation_ids"` // 关联资源,relation_type为RESOURCE、RESOURCE_POLICY_NOTIFICATION、RESOURCE_POLICY_ALARM时填屏蔽的资源信息; Resources *[]Resource `json:"resources,omitempty"` MaskType *MaskType `json:"mask_type"` // 屏蔽起始日期,yyyy-MM-dd。 StartDate *string `json:"start_date,omitempty"` // 屏蔽起始时间,HH:mm:ss。 StartTime *string `json:"start_time,omitempty"` // 屏蔽截止日期,yyyy-MM-dd。 EndDate *string `json:"end_date,omitempty"` // 屏蔽截止时间,HH:mm:ss。 EndTime *string `json:"end_time,omitempty"` }
BatchUpdateNotificationMasksRequestBody 通知屏蔽信请求体
func (BatchUpdateNotificationMasksRequestBody) String ¶ added in v0.1.61
func (o BatchUpdateNotificationMasksRequestBody) String() string
type BatchUpdateNotificationMasksResponse ¶ added in v0.1.61
type BatchUpdateNotificationMasksResponse struct { // 创建成功的关联ID列表 RelationIds *[]string `json:"relation_ids,omitempty"` // 屏蔽规则ID NotificationMaskId *string `json:"notification_mask_id,omitempty"` HttpStatusCode int `json:"-"` }
BatchUpdateNotificationMasksResponse Response Object
func (BatchUpdateNotificationMasksResponse) String ¶ added in v0.1.61
func (o BatchUpdateNotificationMasksResponse) String() string
type BatchUpdateOneClickAlarmPoliciesEnabledStateRequest ¶ added in v0.1.61
type BatchUpdateOneClickAlarmPoliciesEnabledStateRequest struct { // 一键告警ID OneClickAlarmId string `json:"one_click_alarm_id"` // 告警规则ID AlarmId string `json:"alarm_id"` Body *BatchEnableAlarmPoliciesRequestBody `json:"body,omitempty"` }
BatchUpdateOneClickAlarmPoliciesEnabledStateRequest Request Object
func (BatchUpdateOneClickAlarmPoliciesEnabledStateRequest) String ¶ added in v0.1.61
func (o BatchUpdateOneClickAlarmPoliciesEnabledStateRequest) String() string
type BatchUpdateOneClickAlarmPoliciesEnabledStateResponse ¶ added in v0.1.61
type BatchUpdateOneClickAlarmPoliciesEnabledStateResponse struct { // 成功启停的告警规则策略ID列表 AlarmPolicyIds *[]string `json:"alarm_policy_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchUpdateOneClickAlarmPoliciesEnabledStateResponse Response Object
func (BatchUpdateOneClickAlarmPoliciesEnabledStateResponse) String ¶ added in v0.1.61
func (o BatchUpdateOneClickAlarmPoliciesEnabledStateResponse) String() string
type BatchUpdateOneClickAlarmsEnabledStateRequest ¶ added in v0.1.61
type BatchUpdateOneClickAlarmsEnabledStateRequest struct { // 一键告警ID OneClickAlarmId string `json:"one_click_alarm_id"` Body *BatchEnableAlarmsRequestBody `json:"body,omitempty"` }
BatchUpdateOneClickAlarmsEnabledStateRequest Request Object
func (BatchUpdateOneClickAlarmsEnabledStateRequest) String ¶ added in v0.1.61
func (o BatchUpdateOneClickAlarmsEnabledStateRequest) String() string
type BatchUpdateOneClickAlarmsEnabledStateResponse ¶ added in v0.1.61
type BatchUpdateOneClickAlarmsEnabledStateResponse struct { // 成功启停的告警规则ID列表 AlarmIds *[]string `json:"alarm_ids,omitempty"` HttpStatusCode int `json:"-"` }
BatchUpdateOneClickAlarmsEnabledStateResponse Response Object
func (BatchUpdateOneClickAlarmsEnabledStateResponse) String ¶ added in v0.1.61
func (o BatchUpdateOneClickAlarmsEnabledStateResponse) String() string
type BatchUpdateWidgetInfo ¶ added in v0.1.57
type BatchUpdateWidgetInfo struct { // 视图id WidgetId *string `json:"widget_id,omitempty"` // 修改结果;成功: successful, 失败: error RetStatus *BatchUpdateWidgetInfoRetStatus `json:"ret_status,omitempty"` // 如果失败则返回失败信息 ErrorMsg *string `json:"error_msg,omitempty"` }
BatchUpdateWidgetInfo 批量更新监控视图结果
func (BatchUpdateWidgetInfo) String ¶ added in v0.1.57
func (o BatchUpdateWidgetInfo) String() string
type BatchUpdateWidgetInfoRetStatus ¶ added in v0.1.57
type BatchUpdateWidgetInfoRetStatus struct {
// contains filtered or unexported fields
}
func (BatchUpdateWidgetInfoRetStatus) MarshalJSON ¶ added in v0.1.57
func (c BatchUpdateWidgetInfoRetStatus) MarshalJSON() ([]byte, error)
func (*BatchUpdateWidgetInfoRetStatus) UnmarshalJSON ¶ added in v0.1.57
func (c *BatchUpdateWidgetInfoRetStatus) UnmarshalJSON(b []byte) error
func (BatchUpdateWidgetInfoRetStatus) Value ¶ added in v0.1.57
func (c BatchUpdateWidgetInfoRetStatus) Value() string
type BatchUpdateWidgetInfoRetStatusEnum ¶ added in v0.1.57
type BatchUpdateWidgetInfoRetStatusEnum struct { SUCCESSFUL BatchUpdateWidgetInfoRetStatus ERROR BatchUpdateWidgetInfoRetStatus }
func GetBatchUpdateWidgetInfoRetStatusEnum ¶ added in v0.1.57
func GetBatchUpdateWidgetInfoRetStatusEnum() BatchUpdateWidgetInfoRetStatusEnum
type BatchUpdateWidgetsRequest ¶ added in v0.1.57
type BatchUpdateWidgetsRequest struct { // 待修改的监控视图列表 Body *[]UpdateWidgetInfo `json:"body,omitempty"` }
BatchUpdateWidgetsRequest Request Object
func (BatchUpdateWidgetsRequest) String ¶ added in v0.1.57
func (o BatchUpdateWidgetsRequest) String() string
type BatchUpdateWidgetsResponse ¶ added in v0.1.57
type BatchUpdateWidgetsResponse struct { // 更新结果列表 Widgets *[]BatchUpdateWidgetInfo `json:"widgets,omitempty"` HttpStatusCode int `json:"-"` }
BatchUpdateWidgetsResponse Response Object
func (BatchUpdateWidgetsResponse) String ¶ added in v0.1.57
func (o BatchUpdateWidgetsResponse) String() string
type ComparisonOperator ¶ added in v0.0.99
type ComparisonOperator struct { }
ComparisonOperator 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动
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"` // 自定义告警模板类型 0:指标 2: 事件 TemplateType *CreateAlarmTemplateRequestBodyTemplateType `json:"template_type,omitempty"` // 告警模板策略列表 Policies []Policies `json:"policies"` }
func (CreateAlarmTemplateRequestBody) String ¶ added in v0.1.12
func (o CreateAlarmTemplateRequestBody) String() string
type CreateAlarmTemplateRequestBodyTemplateType ¶ added in v0.1.72
type CreateAlarmTemplateRequestBodyTemplateType struct {
// contains filtered or unexported fields
}
func (CreateAlarmTemplateRequestBodyTemplateType) MarshalJSON ¶ added in v0.1.72
func (c CreateAlarmTemplateRequestBodyTemplateType) MarshalJSON() ([]byte, error)
func (*CreateAlarmTemplateRequestBodyTemplateType) UnmarshalJSON ¶ added in v0.1.72
func (c *CreateAlarmTemplateRequestBodyTemplateType) UnmarshalJSON(b []byte) error
func (CreateAlarmTemplateRequestBodyTemplateType) Value ¶ added in v0.1.72
func (c CreateAlarmTemplateRequestBodyTemplateType) Value() int32
type CreateAlarmTemplateRequestBodyTemplateTypeEnum ¶ added in v0.1.72
type CreateAlarmTemplateRequestBodyTemplateTypeEnum struct { E_0 CreateAlarmTemplateRequestBodyTemplateType E_2 CreateAlarmTemplateRequestBodyTemplateType }
func GetCreateAlarmTemplateRequestBodyTemplateTypeEnum ¶ added in v0.1.72
func GetCreateAlarmTemplateRequestBodyTemplateTypeEnum() CreateAlarmTemplateRequestBodyTemplateTypeEnum
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 CreateDashboardRequestBody ¶ added in v0.1.57
type CreateDashboardRequestBody struct { // 自定义监控看板名称 DashboardName *string `json:"dashboard_name,omitempty"` // 企业项目Id EnterpriseId *string `json:"enterprise_id,omitempty"` // 监控看板id DashboardId *string `json:"dashboard_id,omitempty"` // 监控视图展示模式,0表示自定义坐标,1代表每行一个 RowWidgetNum *int32 `json:"row_widget_num,omitempty"` }
func (CreateDashboardRequestBody) String ¶ added in v0.1.57
func (o CreateDashboardRequestBody) String() string
type CreateDashboardWidgetsRequest ¶ added in v0.1.57
type CreateDashboardWidgetsRequest struct { // 监控看板id,以db开头,包含22个字母和数字例:db16564943172807wjOmoLyn' DashboardId string `json:"dashboard_id"` Body *[]interface{} `json:"body,omitempty"` }
CreateDashboardWidgetsRequest Request Object
func (CreateDashboardWidgetsRequest) String ¶ added in v0.1.57
func (o CreateDashboardWidgetsRequest) String() string
type CreateDashboardWidgetsResponse ¶ added in v0.1.57
type CreateDashboardWidgetsResponse struct { // 批量创建监控视图返回结果 WidgetIds *[]string `json:"widget_ids,omitempty"` HttpStatusCode int `json:"-"` }
CreateDashboardWidgetsResponse Response Object
func (CreateDashboardWidgetsResponse) String ¶ added in v0.1.57
func (o CreateDashboardWidgetsResponse) String() string
type CreateOneClickAlarmRequest ¶ added in v0.1.61
type CreateOneClickAlarmRequest struct {
Body *EnableOneClickAlarmRequestBody `json:"body,omitempty"`
}
CreateOneClickAlarmRequest Request Object
func (CreateOneClickAlarmRequest) String ¶ added in v0.1.61
func (o CreateOneClickAlarmRequest) String() string
type CreateOneClickAlarmResponse ¶ added in v0.1.61
type CreateOneClickAlarmResponse struct { // 一键告警ID OneClickAlarmId *string `json:"one_click_alarm_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateOneClickAlarmResponse Response Object
func (CreateOneClickAlarmResponse) String ¶ added in v0.1.61
func (o CreateOneClickAlarmResponse) String() string
type CreateOneDashboardRequest ¶ added in v0.1.57
type CreateOneDashboardRequest struct {
Body *CreateDashboardRequestBody `json:"body,omitempty"`
}
CreateOneDashboardRequest Request Object
func (CreateOneDashboardRequest) String ¶ added in v0.1.57
func (o CreateOneDashboardRequest) String() string
type CreateOneDashboardResponse ¶ added in v0.1.57
type CreateOneDashboardResponse struct { // 监控看板id DashboardId *string `json:"dashboard_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateOneDashboardResponse Response Object
func (CreateOneDashboardResponse) String ¶ added in v0.1.57
func (o CreateOneDashboardResponse) 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 DashBoardIdItem ¶ added in v0.1.57
type DashBoardIdItem struct { // 监控看板id DashboardId *string `json:"dashboard_id,omitempty"` }
func (DashBoardIdItem) String ¶ added in v0.1.57
func (o DashBoardIdItem) String() string
type DashBoardInfo ¶ added in v0.1.57
type DashBoardInfo struct { // 监控看板id DashboardId *string `json:"dashboard_id,omitempty"` // 自定义监控看板名称 DashboardName *string `json:"dashboard_name,omitempty"` // 企业项目Id EnterpriseId *string `json:"enterprise_id,omitempty"` // 监控视图展示模式,0表示自定义坐标,1代表每行一个 RowWidgetNum *int32 `json:"row_widget_num,omitempty"` // 监控看板是否标记收藏, true: 收藏, false: 未收藏 IsFavorite *bool `json:"is_favorite,omitempty"` // 监控看板的创建用户名 CreatorName *string `json:"creator_name,omitempty"` // 监控看板创建时间 CreateTime *int64 `json:"create_time,omitempty"` }
func (DashBoardInfo) String ¶ added in v0.1.57
func (o DashBoardInfo) String() string
type DashBoardNameItem ¶ added in v0.1.57
type DashBoardNameItem struct { // 自定义监控看板名称 DashboardName *string `json:"dashboard_name,omitempty"` }
func (DashBoardNameItem) String ¶ added in v0.1.57
func (o DashBoardNameItem) 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 DeleteDashboardsRequest ¶ added in v0.1.57
type DeleteDashboardsRequest struct {
Body *BatchDeleteDashboardRequestBody `json:"body,omitempty"`
}
DeleteDashboardsRequest Request Object
func (DeleteDashboardsRequest) String ¶ added in v0.1.57
func (o DeleteDashboardsRequest) String() string
type DeleteDashboardsResponse ¶ added in v0.1.57
type DeleteDashboardsResponse struct { // 批量删除监控看板返回结果 Dashboards *[]BatchDeleteDashboardRespInfo `json:"dashboards,omitempty"` HttpStatusCode int `json:"-"` }
DeleteDashboardsResponse Response Object
func (DeleteDashboardsResponse) String ¶ added in v0.1.57
func (o DeleteDashboardsResponse) String() string
type DeleteOneWidgetRequest ¶ added in v0.1.57
type DeleteOneWidgetRequest struct { // 监控视图id WidgetId string `json:"widget_id"` }
DeleteOneWidgetRequest Request Object
func (DeleteOneWidgetRequest) String ¶ added in v0.1.57
func (o DeleteOneWidgetRequest) String() string
type DeleteOneWidgetResponse ¶ added in v0.1.57
type DeleteOneWidgetResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteOneWidgetResponse Response Object
func (DeleteOneWidgetResponse) String ¶ added in v0.1.57
func (o DeleteOneWidgetResponse) 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 DimensionInfo ¶ added in v0.1.57
type DimensionInfo struct { // 维度名称,多维度用逗号分隔,各服务支持的维度可参考:“[服务维度名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)” Name string `json:"name"` // 资源类型, all_instances: 全部资源, specific_instances: 指定资源 FilterType DimensionInfoFilterType `json:"filter_type"` // 维度值列表 Values *[]string `json:"values,omitempty"` }
func (DimensionInfo) String ¶ added in v0.1.57
func (o DimensionInfo) String() string
type DimensionInfoFilterType ¶ added in v0.1.57
type DimensionInfoFilterType struct {
// contains filtered or unexported fields
}
func (DimensionInfoFilterType) MarshalJSON ¶ added in v0.1.57
func (c DimensionInfoFilterType) MarshalJSON() ([]byte, error)
func (*DimensionInfoFilterType) UnmarshalJSON ¶ added in v0.1.57
func (c *DimensionInfoFilterType) UnmarshalJSON(b []byte) error
func (DimensionInfoFilterType) Value ¶ added in v0.1.57
func (c DimensionInfoFilterType) Value() string
type DimensionInfoFilterTypeEnum ¶ added in v0.1.57
type DimensionInfoFilterTypeEnum struct { ALL_INSTANCES DimensionInfoFilterType SPECIFIC_INSTANCES DimensionInfoFilterType }
func GetDimensionInfoFilterTypeEnum ¶ added in v0.1.57
func GetDimensionInfoFilterTypeEnum() DimensionInfoFilterTypeEnum
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 DimensionNames ¶ added in v0.1.61
type DimensionNames struct { // 启用一键告警关联指标告警规则的维度列表,未指定的维度默认不开启 Metric []string `json:"metric"` // 启用一键告警关联事件告警规则的维度列表,未指定的维度默认不开启,其中\"\"代表全部资源 Event []string `json:"event"` }
DimensionNames 启用一键告警关联告警规则的维度列表,包括指标告警&事件告警,且至少开启一个
func (DimensionNames) String ¶ added in v0.1.61
func (o DimensionNames) String() string
type EnableOneClickAlarmRequestBody ¶ added in v0.1.61
type EnableOneClickAlarmRequestBody struct { // 一键告警ID OneClickAlarmId string `json:"one_click_alarm_id"` DimensionNames *DimensionNames `json:"dimension_names"` // 是否开启告警通知 NotificationEnabled bool `json:"notification_enabled"` // 告警触发的动作 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"` }
func (EnableOneClickAlarmRequestBody) String ¶ added in v0.1.61
func (o EnableOneClickAlarmRequestBody) String() string
type EnterpriseIdItem ¶ added in v0.1.57
type EnterpriseIdItem struct { // 企业项目Id EnterpriseId *string `json:"enterprise_id,omitempty"` }
func (EnterpriseIdItem) String ¶ added in v0.1.57
func (o EnterpriseIdItem) 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 EventDimensionName ¶ added in v0.1.61
type EventDimensionName struct { }
EventDimensionName 事件维度名,多个维度按字母序逗号分开
func (EventDimensionName) String ¶ added in v0.1.61
func (o EventDimensionName) String() string
type ExtraInfo ¶ added in v0.1.57
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 IsFavoriteItem ¶ added in v0.1.57
type IsFavoriteItem struct { // 监控看板是否标记收藏, true: 收藏, false: 未收藏 IsFavorite *bool `json:"is_favorite,omitempty"` }
func (IsFavoriteItem) String ¶ added in v0.1.57
func (o IsFavoriteItem) String() string
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 *[]ListPolicy `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"` // 模板类型(system代表默认指标模板,custom代表自定义指标模板,system_event代表默认事件模板,custom_event代表自定义事件模板,system_custom_event代表全部事件模板),不传返回全部指标模板 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 SYSTEM_EVENT ListAlarmTemplatesRequestTemplateType CUSTOM_EVENT ListAlarmTemplatesRequestTemplateType SYSTEM_CUSTOM_EVENT 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 ListAlarmsRespAlarms ¶ added in v0.1.61
type ListAlarmsRespAlarms 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 *[]OneClickAlarmPolicy `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"` }
func (ListAlarmsRespAlarms) String ¶ added in v0.1.61
func (o ListAlarmsRespAlarms) 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 ListCesTargetProjectTagsRequest ¶ added in v0.1.61
type ListCesTargetProjectTagsRequest struct { // 资源类型。CES-alarm:告警规则 ResourceType ListCesTargetProjectTagsRequestResourceType `json:"resource_type"` }
ListCesTargetProjectTagsRequest Request Object
func (ListCesTargetProjectTagsRequest) String ¶ added in v0.1.61
func (o ListCesTargetProjectTagsRequest) String() string
type ListCesTargetProjectTagsRequestResourceType ¶ added in v0.1.61
type ListCesTargetProjectTagsRequestResourceType struct {
// contains filtered or unexported fields
}
func (ListCesTargetProjectTagsRequestResourceType) MarshalJSON ¶ added in v0.1.61
func (c ListCesTargetProjectTagsRequestResourceType) MarshalJSON() ([]byte, error)
func (*ListCesTargetProjectTagsRequestResourceType) UnmarshalJSON ¶ added in v0.1.61
func (c *ListCesTargetProjectTagsRequestResourceType) UnmarshalJSON(b []byte) error
func (ListCesTargetProjectTagsRequestResourceType) Value ¶ added in v0.1.61
func (c ListCesTargetProjectTagsRequestResourceType) Value() string
type ListCesTargetProjectTagsRequestResourceTypeEnum ¶ added in v0.1.61
type ListCesTargetProjectTagsRequestResourceTypeEnum struct {
CES_ALARM ListCesTargetProjectTagsRequestResourceType
}
func GetListCesTargetProjectTagsRequestResourceTypeEnum ¶ added in v0.1.61
func GetListCesTargetProjectTagsRequestResourceTypeEnum() ListCesTargetProjectTagsRequestResourceTypeEnum
type ListCesTargetProjectTagsResponse ¶ added in v0.1.61
type ListCesTargetProjectTagsResponse struct { // 租户标签列表 Tags *[]Tag `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
ListCesTargetProjectTagsResponse Response Object
func (ListCesTargetProjectTagsResponse) String ¶ added in v0.1.61
func (o ListCesTargetProjectTagsResponse) String() string
type ListDashboardInfosRequest ¶ added in v0.1.57
type ListDashboardInfosRequest struct { // 企业项目Id EnterpriseId *string `json:"enterprise_id,omitempty"` // 指定企业项目下监控看板是否收藏,true:收藏,false:未收藏,填此参数时,enterprise_id必填 IsFavorite *bool `json:"is_favorite,omitempty"` // 监控看板名称 DashboardName *string `json:"dashboard_name,omitempty"` // 监控看板id DashboardId *string `json:"dashboard_id,omitempty"` }
ListDashboardInfosRequest Request Object
func (ListDashboardInfosRequest) String ¶ added in v0.1.57
func (o ListDashboardInfosRequest) String() string
type ListDashboardInfosResponse ¶ added in v0.1.57
type ListDashboardInfosResponse struct { // 监控看板列表 Dashboards *[]DashBoardInfo `json:"dashboards,omitempty"` HttpStatusCode int `json:"-"` }
ListDashboardInfosResponse Response Object
func (ListDashboardInfosResponse) String ¶ added in v0.1.57
func (o ListDashboardInfosResponse) String() string
type ListDashboardWidgetsRequest ¶ added in v0.1.57
type ListDashboardWidgetsRequest struct { // 监控看板id,以db开头,包含22个字母和数字例:db16564943172807wjOmoLyn' DashboardId string `json:"dashboard_id"` }
ListDashboardWidgetsRequest Request Object
func (ListDashboardWidgetsRequest) String ¶ added in v0.1.57
func (o ListDashboardWidgetsRequest) String() string
type ListDashboardWidgetsResponse ¶ added in v0.1.57
type ListDashboardWidgetsResponse struct { // 监控视图列表 Widgets *[]WidgetInfoWithId `json:"widgets,omitempty"` HttpStatusCode int `json:"-"` }
ListDashboardWidgetsResponse Response Object
func (ListDashboardWidgetsResponse) String ¶ added in v0.1.57
func (o ListDashboardWidgetsResponse) String() string
type ListNotificationMaskRequestBody ¶ added in v0.1.61
type ListNotificationMaskRequestBody struct { RelationType *ListRelationType `json:"relation_type"` // 关联编号(目前是告警规则ID) RelationIds []string `json:"relation_ids"` // 屏蔽规则ID,可选 MaskId *string `json:"mask_id,omitempty"` // 屏蔽规则名称,可选,只能为字母、数字、汉字、-、_,最大长度为64 MaskName *string `json:"mask_name,omitempty"` // 屏蔽状态,可选。MASK_EFFECTIVE:已生效,MASK_INEFFECTIVE:未生效。 MaskStatus *ListNotificationMaskRequestBodyMaskStatus `json:"mask_status,omitempty"` // 资源维度值,提供一个维度的资源ID即可,可选 ResourceId *string `json:"resource_id,omitempty"` // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace *string `json:"namespace,omitempty"` // 资源的维度信息 Dimensions *[]Dimension2 `json:"dimensions,omitempty"` }
func (ListNotificationMaskRequestBody) String ¶ added in v0.1.61
func (o ListNotificationMaskRequestBody) String() string
type ListNotificationMaskRequestBodyMaskStatus ¶ added in v0.1.61
type ListNotificationMaskRequestBodyMaskStatus struct {
// contains filtered or unexported fields
}
func (ListNotificationMaskRequestBodyMaskStatus) MarshalJSON ¶ added in v0.1.61
func (c ListNotificationMaskRequestBodyMaskStatus) MarshalJSON() ([]byte, error)
func (*ListNotificationMaskRequestBodyMaskStatus) UnmarshalJSON ¶ added in v0.1.61
func (c *ListNotificationMaskRequestBodyMaskStatus) UnmarshalJSON(b []byte) error
func (ListNotificationMaskRequestBodyMaskStatus) Value ¶ added in v0.1.61
func (c ListNotificationMaskRequestBodyMaskStatus) Value() string
type ListNotificationMaskRequestBodyMaskStatusEnum ¶ added in v0.1.61
type ListNotificationMaskRequestBodyMaskStatusEnum struct { MASK_EFFECTIVE ListNotificationMaskRequestBodyMaskStatus MASK_INEFFECTIVE ListNotificationMaskRequestBodyMaskStatus }
func GetListNotificationMaskRequestBodyMaskStatusEnum ¶ added in v0.1.61
func GetListNotificationMaskRequestBodyMaskStatusEnum() ListNotificationMaskRequestBodyMaskStatusEnum
type ListNotificationMaskResourcesRequest ¶ added in v0.1.61
type ListNotificationMaskResourcesRequest struct { // 屏蔽规则ID NotificationMaskId string `json:"notification_mask_id"` // 分页偏移量 Offset *int32 `json:"offset,omitempty"` // 分页大小 Limit *int32 `json:"limit,omitempty"` }
ListNotificationMaskResourcesRequest Request Object
func (ListNotificationMaskResourcesRequest) String ¶ added in v0.1.61
func (o ListNotificationMaskResourcesRequest) String() string
type ListNotificationMaskResourcesResponse ¶ added in v0.1.61
type ListNotificationMaskResourcesResponse struct { // 通知屏蔽资源列表 Resources *[]Resource `json:"resources,omitempty"` // 资源总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListNotificationMaskResourcesResponse Response Object
func (ListNotificationMaskResourcesResponse) String ¶ added in v0.1.61
func (o ListNotificationMaskResourcesResponse) String() string
type ListNotificationMaskRespNotificationMasks ¶ added in v0.1.61
type ListNotificationMaskRespNotificationMasks struct { // 屏蔽规则ID NotificationMaskId string `json:"notification_mask_id"` // 屏蔽规则名称,只能为字母、数字、汉字、-、_,最大长度为64 MaskName *string `json:"mask_name,omitempty"` RelationType *RelationType `json:"relation_type"` // 关联编号 RelationId *string `json:"relation_id,omitempty"` // 关联资源类型,relation_type为RESOURCE时存在该字段,只需要查询出资源的namespace+维度名即可 Resources *[]ResourceCategory `json:"resources,omitempty"` MaskStatus *MaskStatus `json:"mask_status"` MaskType *MaskType `json:"mask_type"` // 屏蔽起始日期,yyyy-MM-dd。 StartDate *string `json:"start_date,omitempty"` // 屏蔽起始时间,HH:mm:ss。 StartTime *string `json:"start_time,omitempty"` // 屏蔽截止日期,yyyy-MM-dd。 EndDate *string `json:"end_date,omitempty"` // 屏蔽截止时间,HH:mm:ss。 EndTime *string `json:"end_time,omitempty"` // 告警策略列表。 Policies *[]PoliciesInListResp `json:"policies,omitempty"` }
func (ListNotificationMaskRespNotificationMasks) String ¶ added in v0.1.61
func (o ListNotificationMaskRespNotificationMasks) String() string
type ListNotificationMasksRequest ¶ added in v0.1.61
type ListNotificationMasksRequest struct { // 分页偏移量 Offset *int32 `json:"offset,omitempty"` // 分页大小 Limit *int32 `json:"limit,omitempty"` Body *ListNotificationMaskRequestBody `json:"body,omitempty"` }
ListNotificationMasksRequest Request Object
func (ListNotificationMasksRequest) String ¶ added in v0.1.61
func (o ListNotificationMasksRequest) String() string
type ListNotificationMasksResponse ¶ added in v0.1.61
type ListNotificationMasksResponse struct { // 通知屏蔽列表 NotificationMasks *[]ListNotificationMaskRespNotificationMasks `json:"notification_masks,omitempty"` // 通知屏蔽列表总数 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
ListNotificationMasksResponse Response Object
func (ListNotificationMasksResponse) String ¶ added in v0.1.61
func (o ListNotificationMasksResponse) String() string
type ListOneClickAlarmRulesRequest ¶ added in v0.1.61
type ListOneClickAlarmRulesRequest struct { // 一键告警ID OneClickAlarmId string `json:"one_click_alarm_id"` }
ListOneClickAlarmRulesRequest Request Object
func (ListOneClickAlarmRulesRequest) String ¶ added in v0.1.61
func (o ListOneClickAlarmRulesRequest) String() string
type ListOneClickAlarmRulesResponse ¶ added in v0.1.61
type ListOneClickAlarmRulesResponse struct { // 告警规则列表 Alarms *[]ListAlarmsRespAlarms `json:"alarms,omitempty"` HttpStatusCode int `json:"-"` }
ListOneClickAlarmRulesResponse Response Object
func (ListOneClickAlarmRulesResponse) String ¶ added in v0.1.61
func (o ListOneClickAlarmRulesResponse) String() string
type ListOneClickAlarmsRequest ¶ added in v0.1.61
type ListOneClickAlarmsRequest struct { }
ListOneClickAlarmsRequest Request Object
func (ListOneClickAlarmsRequest) String ¶ added in v0.1.61
func (o ListOneClickAlarmsRequest) String() string
type ListOneClickAlarmsRespOneClickAlarms ¶ added in v0.1.61
type ListOneClickAlarmsRespOneClickAlarms struct { // 一键告警ID OneClickAlarmId string `json:"one_click_alarm_id"` // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace string `json:"namespace"` // 一键告警描述,长度范围[0,256],该字段默认值为空字符串 Description string `json:"description"` // 开关 Enabled bool `json:"enabled"` }
func (ListOneClickAlarmsRespOneClickAlarms) String ¶ added in v0.1.61
func (o ListOneClickAlarmsRespOneClickAlarms) String() string
type ListOneClickAlarmsResponse ¶ added in v0.1.61
type ListOneClickAlarmsResponse struct { // 一键告警列表 OneClickAlarms *[]ListOneClickAlarmsRespOneClickAlarms `json:"one_click_alarms,omitempty"` HttpStatusCode int `json:"-"` }
ListOneClickAlarmsResponse Response Object
func (ListOneClickAlarmsResponse) String ¶ added in v0.1.61
func (o ListOneClickAlarmsResponse) String() string
type ListPolicy ¶ added in v0.1.57
type ListPolicy 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"` ExtraInfo *MetricExtraInfo `json:"extra_info,omitempty"` // 指标周期,单位是秒; 0是默认值,例如事件类告警该字段就用0即可; 1代表指标的原始周期,比如RDS监控指标原始周期是60s,表示该RDS指标按60s周期为一个数据点参与告警计算;如想了解各个云服务的指标原始周期可以参考“[支持服务列表](ces_03_0059.xml)”,300代表指标按5分钟聚合周期为一个数据点参与告警计算。 Period int32 `json:"period"` // 聚合方式, 支持的值为(average|min|max|sum) Filter string `json:"filter"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 ComparisonOperator string `json:"comparison_operator"` // 阈值 Value float64 `json:"value"` // 单位 Unit *string `json:"unit,omitempty"` // 告警策略类型,默认为空 Type *string `json:"type,omitempty"` // 告警连续触发次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 Count int32 `json:"count"` // 告警抑制时间,单位为秒,对应页面上创建告警规则时告警策略最后一个字段,该字段主要为解决告警频繁的问题,0代表不抑制,满足条件即告警;300代表满足告警触发条件后每5分钟告警一次; SuppressDuration *int32 `json:"suppress_duration,omitempty"` // 告警级别, 1为紧急,2为重要,3为次要,4为提示 Level *int32 `json:"level,omitempty"` }
func (ListPolicy) String ¶ added in v0.1.57
func (o ListPolicy) String() string
type ListRelationType ¶ added in v0.1.61
type ListRelationType struct {
// contains filtered or unexported fields
}
ListRelationType 关联类型。ALARM_RULE:关联告警规则,RESOURCE:关联资源,RESOURCE_POLICY_NOTIFICATION:关联资源策略屏蔽告警通知,RESOURCE_POLICY_ALARM:关联资源策略不计算告警,DEFAULT:默认包含RESOURCE、RESOURCE_POLICY_NOTIFICATION(查询告警屏蔽列表时使用)。
func (ListRelationType) MarshalJSON ¶ added in v0.1.61
func (c ListRelationType) MarshalJSON() ([]byte, error)
func (*ListRelationType) UnmarshalJSON ¶ added in v0.1.61
func (c *ListRelationType) UnmarshalJSON(b []byte) error
func (ListRelationType) Value ¶ added in v0.1.61
func (c ListRelationType) Value() string
type ListRelationTypeEnum ¶ added in v0.1.61
type ListRelationTypeEnum struct { ALARM_RULE ListRelationType RESOURCE ListRelationType RESOURCE_POLICY_NOTIFICATION ListRelationType RESOURCE_POLICY_ALARM ListRelationType DEFAULT ListRelationType }
func GetListRelationTypeEnum ¶ added in v0.1.61
func GetListRelationTypeEnum() ListRelationTypeEnum
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 MaskStatus ¶ added in v0.1.61
type MaskStatus struct {
// contains filtered or unexported fields
}
MaskStatus 屏蔽状态。UN_MASKED:未屏蔽,MASK_EFFECTIVE:已生效,MASK_INEFFECTIVE:未生效。
func (MaskStatus) MarshalJSON ¶ added in v0.1.61
func (c MaskStatus) MarshalJSON() ([]byte, error)
func (*MaskStatus) UnmarshalJSON ¶ added in v0.1.61
func (c *MaskStatus) UnmarshalJSON(b []byte) error
func (MaskStatus) Value ¶ added in v0.1.61
func (c MaskStatus) Value() string
type MaskStatusEnum ¶ added in v0.1.61
type MaskStatusEnum struct { UN_MASKED MaskStatus MASK_EFFECTIVE MaskStatus MASK_INEFFECTIVE MaskStatus }
func GetMaskStatusEnum ¶ added in v0.1.61
func GetMaskStatusEnum() MaskStatusEnum
type MaskType ¶ added in v0.1.61
type MaskType struct {
// contains filtered or unexported fields
}
MaskType 屏蔽类型。START_END_TIME:按起止时间屏蔽,FOREVER_TIME:永久时间屏蔽,CYCLE_TIME:按周期时间屏蔽。
func (MaskType) MarshalJSON ¶ added in v0.1.61
func (*MaskType) UnmarshalJSON ¶ added in v0.1.61
type MaskTypeEnum ¶ added in v0.1.61
func GetMaskTypeEnum ¶ added in v0.1.61
func GetMaskTypeEnum() MaskTypeEnum
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 MetricDimensionName ¶ added in v0.1.61
type MetricDimensionName struct { }
MetricDimensionName 维度名,多个维度按字母序逗号分开
func (MetricDimensionName) String ¶ added in v0.1.61
func (o MetricDimensionName) String() string
type MetricExtraInfo ¶ added in v0.1.57
type MetricExtraInfo struct { // 原始指标名称 OriginMetricName *string `json:"origin_metric_name,omitempty"` // 指标名称前缀 MetricPrefix *string `json:"metric_prefix,omitempty"` // 用户进程名称 CustomProcName *string `json:"custom_proc_name,omitempty"` // 指标类型 MetricType *string `json:"metric_type,omitempty"` }
MetricExtraInfo 告警策略附加信息,默认为空。
func (MetricExtraInfo) String ¶ added in v0.1.57
func (o MetricExtraInfo) 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 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
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 NotificationMaskId ¶ added in v0.1.61
type NotificationMaskId struct { }
NotificationMaskId 屏蔽规则ID
func (NotificationMaskId) String ¶ added in v0.1.61
func (o NotificationMaskId) String() string
type OneClickAlarmDescription ¶ added in v0.1.61
type OneClickAlarmDescription struct { }
OneClickAlarmDescription 一键告警描述,长度范围[0,256],该字段默认值为空字符串
func (OneClickAlarmDescription) String ¶ added in v0.1.61
func (o OneClickAlarmDescription) String() string
type OneClickAlarmId ¶ added in v0.1.61
type OneClickAlarmId struct { }
OneClickAlarmId 一键告警ID
func (OneClickAlarmId) String ¶ added in v0.1.61
func (o OneClickAlarmId) String() string
type OneClickAlarmPolicy ¶ added in v0.1.61
type OneClickAlarmPolicy struct { // 告警策略ID。 AlarmPolicyId string `json:"alarm_policy_id"` // 资源的监控指标名称,必须以字母开头,只能包含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 *Period `json:"period"` // 聚合方式, 支持的值为(average|min|max|sum) Filter string `json:"filter"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 ComparisonOperator string `json:"comparison_operator"` // 阈值 Value float64 `json:"value"` // 单位 Unit *string `json:"unit,omitempty"` // 次数 Count int32 `json:"count"` SuppressDuration *SuppressDuration `json:"suppress_duration,omitempty"` // 告警级别, 1为紧急,2为重要,3为次要,4为提示 Level *int32 `json:"level,omitempty"` // 开关 Enabled bool `json:"enabled"` }
func (OneClickAlarmPolicy) String ¶ added in v0.1.61
func (o OneClickAlarmPolicy) 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 Period ¶ added in v0.1.61
type Period struct {
// contains filtered or unexported fields
}
Period 告警条件判断周期,单位为秒,支持的值为1,300,1200,3600,14400,86400。说明:当period设置为1时,表示以原始的指标数据判断告警。当alarm_type为(EVENT.SYS| EVENT.CUSTOM)时允许为0。
func (Period) MarshalJSON ¶ added in v0.1.61
func (*Period) UnmarshalJSON ¶ added in v0.1.61
type PeriodEnum ¶ added in v0.1.61
type PeriodEnum struct { E_0 Period E_1 Period E_300 Period E_1200 Period E_3600 Period E_14400 Period E_86400 Period }
func GetPeriodEnum ¶ added in v0.1.61
func GetPeriodEnum() PeriodEnum
type Policies ¶ added in v0.1.12
type Policies struct { // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace string `json:"namespace"` // 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32 DimensionName *string `json:"dimension_name,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"` // 告警条件判断周期,单位为秒 Period PoliciesPeriod `json:"period"` // 数据聚合方式 Filter string `json:"filter"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 ComparisonOperator string `json:"comparison_operator"` // 告警阈值(Number.MAX_VALUE) Value float32 `json:"value,omitempty"` // 数据的单位字符串,长度不超过32 Unit *string `json:"unit,omitempty"` // 告警连续触发次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 Count int32 `json:"count"` // 告警级别,1为紧急,2为重要,3为次要,4为提示 AlarmLevel *int32 `json:"alarm_level,omitempty"` // 告警抑制周期,单位为秒,当告警抑制周期为0时,仅发送一次告警 SuppressDuration PoliciesSuppressDuration `json:"suppress_duration"` }
type PoliciesInListResp ¶ added in v0.1.61
type PoliciesInListResp struct { // 告警策略ID。 AlarmPolicyId string `json:"alarm_policy_id"` // 资源的监控指标名称,必须以字母开头,只能包含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"` ExtraInfo *MetricExtraInfo `json:"extra_info,omitempty"` Period *Period `json:"period"` // 聚合方式, 支持的值为(average|min|max|sum) Filter string `json:"filter"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 ComparisonOperator string `json:"comparison_operator"` // 阈值 Value float64 `json:"value"` // 单位 Unit *string `json:"unit,omitempty"` // 次数 Count int32 `json:"count"` // 告警策略类型。 Type *string `json:"type,omitempty"` SuppressDuration *SuppressDuration `json:"suppress_duration,omitempty"` // 告警级别,1为紧急,2为重要,3为次要,4为提示 AlarmLevel *int32 `json:"alarm_level,omitempty"` // 用户在页面中选择的指标单位, 用于后续指标数据回显和计算 SelectedUnit *string `json:"selected_unit,omitempty"` }
func (PoliciesInListResp) String ¶ added in v0.1.61
func (o PoliciesInListResp) String() string
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_0 PoliciesPeriod 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 []UpdatePolicy `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"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 ComparisonOperator string `json:"comparison_operator"` // 阈值 Value *float64 `json:"value,omitempty"` // 单位 Unit *string `json:"unit,omitempty"` // 告警连续触发次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 Count int32 `json:"count"` // 告警抑制时间,单位为秒,对应页面上创建告警规则时告警策略最后一个字段,该字段主要为解决告警频繁的问题,0代表不抑制,满足条件即告警;300代表满足告警触发条件后每5分钟告警一次; SuppressDuration *int32 `json:"suppress_duration,omitempty"` // 告警级别, 1为紧急,2为重要,3为次要,4为提示 Level *int32 `json:"level,omitempty"` }
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"` // 告警规则关联告警模板ID AlarmTemplateId *string `json:"alarm_template_id,omitempty"` // 租户标签列表 Tags *[]ResourceTag `json:"tags,omitempty"` // 告警策略,当alarm_template_id字段为空时必填,不为空时不填 Policies *[]Policy `json:"policies,omitempty"` 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"` }
func (PostAlarmsReqV2) String ¶ added in v0.0.79
func (o PostAlarmsReqV2) String() string
type PutAlarmNotificationReq ¶ added in v0.1.61
type PutAlarmNotificationReq struct { // 是否开启告警通知 NotificationEnabled bool `json:"notification_enabled"` // 告警触发的动作 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"` }
func (PutAlarmNotificationReq) String ¶ added in v0.1.61
func (o PutAlarmNotificationReq) 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 RelationId ¶ added in v0.1.61
type RelationId struct { }
RelationId 关联编号
func (RelationId) String ¶ added in v0.1.61
func (o RelationId) String() string
type RelationType ¶ added in v0.1.61
type RelationType struct {
// contains filtered or unexported fields
}
RelationType 关联类型。ALARM_RULE:关联告警规则,RESOURCE:关联资源,RESOURCE_POLICY_NOTIFICATION:关联资源策略屏蔽告警通知,RESOURCE_POLICY_ALARM:关联资源策略不计算告警。
func (RelationType) MarshalJSON ¶ added in v0.1.61
func (c RelationType) MarshalJSON() ([]byte, error)
func (*RelationType) UnmarshalJSON ¶ added in v0.1.61
func (c *RelationType) UnmarshalJSON(b []byte) error
func (RelationType) Value ¶ added in v0.1.61
func (c RelationType) Value() string
type RelationTypeEnum ¶ added in v0.1.61
type RelationTypeEnum struct { ALARM_RULE RelationType RESOURCE RelationType RESOURCE_POLICY_NOTIFICATION RelationType RESOURCE_POLICY_ALARM RelationType }
func GetRelationTypeEnum ¶ added in v0.1.61
func GetRelationTypeEnum() RelationTypeEnum
type Resource ¶ added in v0.1.12
type Resource struct { // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace string `json:"namespace"` // 资源的维度信息 Dimensions []Dimension2 `json:"dimensions"` }
type ResourceCategory ¶ added in v0.1.61
type ResourceCategory struct { // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html) Namespace string `json:"namespace"` // 资源的维度信息,多个维度通过字母序排序后逗号拼接 DimensionNames []string `json:"dimension_names"` }
func (ResourceCategory) String ¶ added in v0.1.61
func (o ResourceCategory) String() string
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 ResourceTag ¶ added in v0.1.116
type ResourceTag struct { // 键;最大长度128个unicode字符。 Key string `json:"key"` // 值。最大长度255个unicode字符。 Value string `json:"value"` }
ResourceTag 资源标签
func (ResourceTag) String ¶ added in v0.1.116
func (o ResourceTag) 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 SelectedUnit ¶ added in v0.1.105
type SelectedUnit struct { }
SelectedUnit 用户在页面中选择的指标单位, 用于后续指标数据回显和计算
func (SelectedUnit) String ¶ added in v0.1.105
func (o SelectedUnit) 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"` // 告警模板策略列表 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 ShowWidgetRequest ¶ added in v0.1.57
type ShowWidgetRequest struct { // 监控视图id WidgetId string `json:"widget_id"` }
ShowWidgetRequest Request Object
func (ShowWidgetRequest) String ¶ added in v0.1.57
func (o ShowWidgetRequest) String() string
type ShowWidgetResponse ¶ added in v0.1.57
type ShowWidgetResponse struct { // 视图id WidgetId *string `json:"widget_id,omitempty"` // 指标列表 Metrics *[]WidgetMetric `json:"metrics,omitempty"` // 监控视图标题 Title *string `json:"title,omitempty"` // 监控视图指标的阈值 Threshold *float64 `json:"threshold,omitempty"` // 阈值是否展示,true:展示,false:不展示 ThresholdEnabled *bool `json:"threshold_enabled,omitempty"` // 监控视图图表类型, bar柱状图,line折线图 View *ShowWidgetResponseView `json:"view,omitempty"` // 指标展示类型,single 单指标展示,multiple 多指标展示 MetricDisplayMode *ShowWidgetResponseMetricDisplayMode `json:"metric_display_mode,omitempty"` Properties *UpdateWidgetInfoProperties `json:"properties,omitempty"` Location *UpdateWidgetInfoLocation `json:"location,omitempty"` // 单位 Unit *string `json:"unit,omitempty"` // 监控看板创建时间 CreateTime *int64 `json:"create_time,omitempty"` HttpStatusCode int `json:"-"` }
ShowWidgetResponse Response Object
func (ShowWidgetResponse) String ¶ added in v0.1.57
func (o ShowWidgetResponse) String() string
type ShowWidgetResponseMetricDisplayMode ¶ added in v0.1.57
type ShowWidgetResponseMetricDisplayMode struct {
// contains filtered or unexported fields
}
func (ShowWidgetResponseMetricDisplayMode) MarshalJSON ¶ added in v0.1.57
func (c ShowWidgetResponseMetricDisplayMode) MarshalJSON() ([]byte, error)
func (*ShowWidgetResponseMetricDisplayMode) UnmarshalJSON ¶ added in v0.1.57
func (c *ShowWidgetResponseMetricDisplayMode) UnmarshalJSON(b []byte) error
func (ShowWidgetResponseMetricDisplayMode) Value ¶ added in v0.1.57
func (c ShowWidgetResponseMetricDisplayMode) Value() string
type ShowWidgetResponseMetricDisplayModeEnum ¶ added in v0.1.57
type ShowWidgetResponseMetricDisplayModeEnum struct { SINGLE ShowWidgetResponseMetricDisplayMode MULTIPLE ShowWidgetResponseMetricDisplayMode }
func GetShowWidgetResponseMetricDisplayModeEnum ¶ added in v0.1.57
func GetShowWidgetResponseMetricDisplayModeEnum() ShowWidgetResponseMetricDisplayModeEnum
type ShowWidgetResponseView ¶ added in v0.1.57
type ShowWidgetResponseView struct {
// contains filtered or unexported fields
}
func (ShowWidgetResponseView) MarshalJSON ¶ added in v0.1.57
func (c ShowWidgetResponseView) MarshalJSON() ([]byte, error)
func (*ShowWidgetResponseView) UnmarshalJSON ¶ added in v0.1.57
func (c *ShowWidgetResponseView) UnmarshalJSON(b []byte) error
func (ShowWidgetResponseView) Value ¶ added in v0.1.57
func (c ShowWidgetResponseView) Value() string
type ShowWidgetResponseViewEnum ¶ added in v0.1.57
type ShowWidgetResponseViewEnum struct { BAR ShowWidgetResponseView LINE ShowWidgetResponseView }
func GetShowWidgetResponseViewEnum ¶ added in v0.1.57
func GetShowWidgetResponseViewEnum() ShowWidgetResponseViewEnum
type SuppressDuration ¶ added in v0.1.61
type SuppressDuration struct {
// contains filtered or unexported fields
}
SuppressDuration 告警抑制周期,值可为0, 300, 600, 900, 1800, 3600, 10800, 21600, 43200, 86400;单位为秒,0表示只告警一次
func (SuppressDuration) MarshalJSON ¶ added in v0.1.61
func (c SuppressDuration) MarshalJSON() ([]byte, error)
func (*SuppressDuration) UnmarshalJSON ¶ added in v0.1.61
func (c *SuppressDuration) UnmarshalJSON(b []byte) error
func (SuppressDuration) Value ¶ added in v0.1.61
func (c SuppressDuration) Value() int32
type SuppressDurationEnum ¶ added in v0.1.61
type SuppressDurationEnum struct { E_0 SuppressDuration E_300 SuppressDuration E_600 SuppressDuration E_900 SuppressDuration E_1800 SuppressDuration E_3600 SuppressDuration E_10800 SuppressDuration E_21600 SuppressDuration E_43200 SuppressDuration E_86400 SuppressDuration }
func GetSuppressDurationEnum ¶ added in v0.1.61
func GetSuppressDurationEnum() SuppressDurationEnum
type Tag ¶ added in v0.1.61
type Tag struct { // 键;最大长度128个unicode字符。key不能为空。 Key string `json:"key"` // 值列表;每个值最大长度255个unicode字符。如果values为空列表,则表示查询任意value Values []string `json:"values"` }
Tag 标签
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 UpdateAlarmNotificationsRequest ¶ added in v0.1.61
type UpdateAlarmNotificationsRequest struct { // 告警规则ID AlarmId string `json:"alarm_id"` Body *PutAlarmNotificationReq `json:"body,omitempty"` }
UpdateAlarmNotificationsRequest Request Object
func (UpdateAlarmNotificationsRequest) String ¶ added in v0.1.61
func (o UpdateAlarmNotificationsRequest) String() string
type UpdateAlarmNotificationsResponse ¶ added in v0.1.61
type UpdateAlarmNotificationsResponse struct { // 是否开启告警通知 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"` HttpStatusCode int `json:"-"` }
UpdateAlarmNotificationsResponse Response Object
func (UpdateAlarmNotificationsResponse) String ¶ added in v0.1.61
func (o UpdateAlarmNotificationsResponse) String() string
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 *[]UpdatePolicy `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 UpdateDashboardRequest ¶ added in v0.1.57
type UpdateDashboardRequest struct { // 监控看板id,以db开头,包含22个字母和数字例:db16564943172807wjOmoLyn' DashboardId string `json:"dashboard_id"` Body *UpdateDashboardRequestBody `json:"body,omitempty"` }
UpdateDashboardRequest Request Object
func (UpdateDashboardRequest) String ¶ added in v0.1.57
func (o UpdateDashboardRequest) String() string
type UpdateDashboardRequestBody ¶ added in v0.1.57
type UpdateDashboardRequestBody struct { // 自定义监控看板名称 DashboardName *string `json:"dashboard_name,omitempty"` // 监控看板是否标记收藏, true: 收藏, false: 未收藏 IsFavorite *bool `json:"is_favorite,omitempty"` // 监控视图展示模式,0表示自定义坐标,1代表每行一个 RowWidgetNum *int32 `json:"row_widget_num,omitempty"` }
func (UpdateDashboardRequestBody) String ¶ added in v0.1.57
func (o UpdateDashboardRequestBody) String() string
type UpdateDashboardResponse ¶ added in v0.1.57
type UpdateDashboardResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateDashboardResponse Response Object
func (UpdateDashboardResponse) String ¶ added in v0.1.57
func (o UpdateDashboardResponse) String() string
type UpdateNotificationMaskRequest ¶ added in v0.1.63
type UpdateNotificationMaskRequest struct { // 屏蔽规则ID NotificationMaskId string `json:"notification_mask_id"` Body *UpdateNotificationMasksRequestBody `json:"body,omitempty"` }
UpdateNotificationMaskRequest Request Object
func (UpdateNotificationMaskRequest) String ¶ added in v0.1.63
func (o UpdateNotificationMaskRequest) String() string
type UpdateNotificationMaskResponse ¶ added in v0.1.63
type UpdateNotificationMaskResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateNotificationMaskResponse Response Object
func (UpdateNotificationMaskResponse) String ¶ added in v0.1.63
func (o UpdateNotificationMaskResponse) String() string
type UpdateNotificationMasksRequestBody ¶ added in v0.1.61
type UpdateNotificationMasksRequestBody struct { // 屏蔽规则名称,只能为字母、数字、汉字、-、_,最大长度为64 MaskName string `json:"mask_name"` // 关联编号,relation_type为ALARM_RULE时填屏蔽的告警规则编号;relation_type为RESOURCE_POLICY_NOTIFICATION、RESOURCE_POLICY_ALARM时填屏蔽的告警策略编号; RelationIds *[]string `json:"relation_ids,omitempty"` RelationType *RelationType `json:"relation_type,omitempty"` // 关联资源 Resources []Resource `json:"resources"` MaskType *MaskType `json:"mask_type"` // 屏蔽起始日期,yyyy-MM-dd。 StartDate *string `json:"start_date,omitempty"` // 屏蔽起始时间,HH:mm:ss。 StartTime *string `json:"start_time,omitempty"` // 屏蔽截止日期,yyyy-MM-dd。 EndDate *string `json:"end_date,omitempty"` // 屏蔽截止时间,HH:mm:ss。 EndTime *string `json:"end_time,omitempty"` }
UpdateNotificationMasksRequestBody 通知屏蔽请求体
func (UpdateNotificationMasksRequestBody) String ¶ added in v0.1.61
func (o UpdateNotificationMasksRequestBody) String() string
type UpdateOneClickAlarmNotificationsRequest ¶ added in v0.1.61
type UpdateOneClickAlarmNotificationsRequest struct { // 一键告警ID OneClickAlarmId string `json:"one_click_alarm_id"` Body *PutAlarmNotificationReq `json:"body,omitempty"` }
UpdateOneClickAlarmNotificationsRequest Request Object
func (UpdateOneClickAlarmNotificationsRequest) String ¶ added in v0.1.61
func (o UpdateOneClickAlarmNotificationsRequest) String() string
type UpdateOneClickAlarmNotificationsResponse ¶ added in v0.1.61
type UpdateOneClickAlarmNotificationsResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateOneClickAlarmNotificationsResponse Response Object
func (UpdateOneClickAlarmNotificationsResponse) String ¶ added in v0.1.61
func (o UpdateOneClickAlarmNotificationsResponse) String() string
type UpdatePolicy ¶ added in v0.1.57
type UpdatePolicy 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周期为一个数据点参与告警计算;如想了解各个云服务的指标原始周期可以参考“[支持服务列表](ces_03_0059.xml)”,300代表指标按5分钟聚合周期为一个数据点参与告警计算。 Period int32 `json:"period"` // 聚合方式, 支持的值为(average|min|max|sum) Filter string `json:"filter"` // 告警阈值的比较条件,支持的值为(>|<|>=|<=|=|!=|cycle_decrease|cycle_increase|cycle_wave),cycle_decrease为环比下降,cycle_increase为环比上升,cycle_wave为环比波动 ComparisonOperator string `json:"comparison_operator"` // 阈值 Value *float64 `json:"value,omitempty"` // 单位 Unit *string `json:"unit,omitempty"` // 告警策略类型,默认为空 Type *string `json:"type,omitempty"` // 告警连续触发次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 Count int32 `json:"count"` // 告警抑制时间,单位为秒,对应页面上创建告警规则时告警策略最后一个字段,该字段主要为解决告警频繁的问题,0代表不抑制,满足条件即告警;300代表满足告警触发条件后每5分钟告警一次; SuppressDuration *int32 `json:"suppress_duration,omitempty"` // 告警级别, 1为紧急,2为重要,3为次要,4为提示 Level *int32 `json:"level,omitempty"` }
func (UpdatePolicy) String ¶ added in v0.1.57
func (o UpdatePolicy) 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
type UpdateWidgetInfo ¶ added in v0.1.57
type UpdateWidgetInfo struct { // 视图id WidgetId string `json:"widget_id"` // 指标列表 Metrics *[]WidgetMetric `json:"metrics,omitempty"` // 监控视图标题 Title *string `json:"title,omitempty"` // 监控视图指标的阈值 Threshold *float64 `json:"threshold,omitempty"` // 阈值是否展示,true:展示,false:不展示 ThresholdEnabled *bool `json:"threshold_enabled,omitempty"` // 监控视图图表类型, bar柱状图,line折线图 View *UpdateWidgetInfoView `json:"view,omitempty"` // 指标展示类型,single 单指标展示,multiple 多指标展示 MetricDisplayMode *UpdateWidgetInfoMetricDisplayMode `json:"metric_display_mode,omitempty"` Properties *UpdateWidgetInfoProperties `json:"properties,omitempty"` Location *UpdateWidgetInfoLocation `json:"location,omitempty"` // 单位 Unit *string `json:"unit,omitempty"` }
UpdateWidgetInfo 待修改的监控视图对象
func (UpdateWidgetInfo) String ¶ added in v0.1.57
func (o UpdateWidgetInfo) String() string
type UpdateWidgetInfoLocation ¶ added in v0.1.83
type UpdateWidgetInfoLocation struct { // 监控视图的上坐标 Top int32 `json:"top"` // 监控视图的左坐标 Left int32 `json:"left"` // 监控视图图表宽度 Width int32 `json:"width"` // 监控视图图表高度 Height int32 `json:"height"` }
UpdateWidgetInfoLocation 监控视图图表坐标
func (UpdateWidgetInfoLocation) String ¶ added in v0.1.83
func (o UpdateWidgetInfoLocation) String() string
type UpdateWidgetInfoMetricDisplayMode ¶ added in v0.1.57
type UpdateWidgetInfoMetricDisplayMode struct {
// contains filtered or unexported fields
}
func (UpdateWidgetInfoMetricDisplayMode) MarshalJSON ¶ added in v0.1.57
func (c UpdateWidgetInfoMetricDisplayMode) MarshalJSON() ([]byte, error)
func (*UpdateWidgetInfoMetricDisplayMode) UnmarshalJSON ¶ added in v0.1.57
func (c *UpdateWidgetInfoMetricDisplayMode) UnmarshalJSON(b []byte) error
func (UpdateWidgetInfoMetricDisplayMode) Value ¶ added in v0.1.57
func (c UpdateWidgetInfoMetricDisplayMode) Value() string
type UpdateWidgetInfoMetricDisplayModeEnum ¶ added in v0.1.57
type UpdateWidgetInfoMetricDisplayModeEnum struct { SINGLE UpdateWidgetInfoMetricDisplayMode MULTIPLE UpdateWidgetInfoMetricDisplayMode }
func GetUpdateWidgetInfoMetricDisplayModeEnum ¶ added in v0.1.57
func GetUpdateWidgetInfoMetricDisplayModeEnum() UpdateWidgetInfoMetricDisplayModeEnum
type UpdateWidgetInfoProperties ¶ added in v0.1.83
type UpdateWidgetInfoProperties struct { // 聚合类型,目前只有TopN这一种类型 Filter *UpdateWidgetInfoPropertiesFilter `json:"filter,omitempty"` // Top值前N个 TopN *int32 `json:"topN,omitempty"` // 排序字段,asc正序,desc倒序 Order *UpdateWidgetInfoPropertiesOrder `json:"order,omitempty"` }
UpdateWidgetInfoProperties 额外信息,当view为bar时有效
func (UpdateWidgetInfoProperties) String ¶ added in v0.1.83
func (o UpdateWidgetInfoProperties) String() string
type UpdateWidgetInfoPropertiesFilter ¶ added in v0.1.83
type UpdateWidgetInfoPropertiesFilter struct {
// contains filtered or unexported fields
}
func (UpdateWidgetInfoPropertiesFilter) MarshalJSON ¶ added in v0.1.83
func (c UpdateWidgetInfoPropertiesFilter) MarshalJSON() ([]byte, error)
func (*UpdateWidgetInfoPropertiesFilter) UnmarshalJSON ¶ added in v0.1.83
func (c *UpdateWidgetInfoPropertiesFilter) UnmarshalJSON(b []byte) error
func (UpdateWidgetInfoPropertiesFilter) Value ¶ added in v0.1.83
func (c UpdateWidgetInfoPropertiesFilter) Value() string
type UpdateWidgetInfoPropertiesFilterEnum ¶ added in v0.1.83
type UpdateWidgetInfoPropertiesFilterEnum struct {
TOP_N UpdateWidgetInfoPropertiesFilter
}
func GetUpdateWidgetInfoPropertiesFilterEnum ¶ added in v0.1.83
func GetUpdateWidgetInfoPropertiesFilterEnum() UpdateWidgetInfoPropertiesFilterEnum
type UpdateWidgetInfoPropertiesOrder ¶ added in v0.1.83
type UpdateWidgetInfoPropertiesOrder struct {
// contains filtered or unexported fields
}
func (UpdateWidgetInfoPropertiesOrder) MarshalJSON ¶ added in v0.1.83
func (c UpdateWidgetInfoPropertiesOrder) MarshalJSON() ([]byte, error)
func (*UpdateWidgetInfoPropertiesOrder) UnmarshalJSON ¶ added in v0.1.83
func (c *UpdateWidgetInfoPropertiesOrder) UnmarshalJSON(b []byte) error
func (UpdateWidgetInfoPropertiesOrder) Value ¶ added in v0.1.83
func (c UpdateWidgetInfoPropertiesOrder) Value() string
type UpdateWidgetInfoPropertiesOrderEnum ¶ added in v0.1.83
type UpdateWidgetInfoPropertiesOrderEnum struct { ASC UpdateWidgetInfoPropertiesOrder DESC UpdateWidgetInfoPropertiesOrder }
func GetUpdateWidgetInfoPropertiesOrderEnum ¶ added in v0.1.83
func GetUpdateWidgetInfoPropertiesOrderEnum() UpdateWidgetInfoPropertiesOrderEnum
type UpdateWidgetInfoView ¶ added in v0.1.57
type UpdateWidgetInfoView struct {
// contains filtered or unexported fields
}
func (UpdateWidgetInfoView) MarshalJSON ¶ added in v0.1.57
func (c UpdateWidgetInfoView) MarshalJSON() ([]byte, error)
func (*UpdateWidgetInfoView) UnmarshalJSON ¶ added in v0.1.57
func (c *UpdateWidgetInfoView) UnmarshalJSON(b []byte) error
func (UpdateWidgetInfoView) Value ¶ added in v0.1.57
func (c UpdateWidgetInfoView) Value() string
type UpdateWidgetInfoViewEnum ¶ added in v0.1.57
type UpdateWidgetInfoViewEnum struct { BAR UpdateWidgetInfoView LINE UpdateWidgetInfoView }
func GetUpdateWidgetInfoViewEnum ¶ added in v0.1.57
func GetUpdateWidgetInfoViewEnum() UpdateWidgetInfoViewEnum
type WidgetDisplayMode ¶ added in v0.1.57
type WidgetDisplayMode struct { // 监控视图展示模式,0表示自定义坐标,1代表每行一个 RowWidgetNum *int32 `json:"row_widget_num,omitempty"` }
func (WidgetDisplayMode) String ¶ added in v0.1.57
func (o WidgetDisplayMode) String() string
type WidgetIdItem ¶ added in v0.1.57
type WidgetIdItem struct { // 视图id WidgetId *string `json:"widget_id,omitempty"` }
func (WidgetIdItem) String ¶ added in v0.1.57
func (o WidgetIdItem) String() string
type WidgetInfo ¶ added in v0.1.57
type WidgetInfo struct { // 指标列表 Metrics *[]WidgetMetric `json:"metrics,omitempty"` // 监控视图标题 Title *string `json:"title,omitempty"` // 监控视图指标的阈值 Threshold *float64 `json:"threshold,omitempty"` // 阈值是否展示,true:展示,false:不展示 ThresholdEnabled *bool `json:"threshold_enabled,omitempty"` // 监控视图图表类型, bar柱状图,line折线图 View *WidgetInfoView `json:"view,omitempty"` // 指标展示类型,single 单指标展示,multiple 多指标展示 MetricDisplayMode *WidgetInfoMetricDisplayMode `json:"metric_display_mode,omitempty"` Properties *UpdateWidgetInfoProperties `json:"properties,omitempty"` Location *UpdateWidgetInfoLocation `json:"location,omitempty"` // 单位 Unit *string `json:"unit,omitempty"` // 监控看板创建时间 CreateTime *int64 `json:"create_time,omitempty"` }
func (WidgetInfo) String ¶ added in v0.1.57
func (o WidgetInfo) String() string
type WidgetInfoMetricDisplayMode ¶ added in v0.1.57
type WidgetInfoMetricDisplayMode struct {
// contains filtered or unexported fields
}
func (WidgetInfoMetricDisplayMode) MarshalJSON ¶ added in v0.1.57
func (c WidgetInfoMetricDisplayMode) MarshalJSON() ([]byte, error)
func (*WidgetInfoMetricDisplayMode) UnmarshalJSON ¶ added in v0.1.57
func (c *WidgetInfoMetricDisplayMode) UnmarshalJSON(b []byte) error
func (WidgetInfoMetricDisplayMode) Value ¶ added in v0.1.57
func (c WidgetInfoMetricDisplayMode) Value() string
type WidgetInfoMetricDisplayModeEnum ¶ added in v0.1.57
type WidgetInfoMetricDisplayModeEnum struct { SINGLE WidgetInfoMetricDisplayMode MULTIPLE WidgetInfoMetricDisplayMode }
func GetWidgetInfoMetricDisplayModeEnum ¶ added in v0.1.57
func GetWidgetInfoMetricDisplayModeEnum() WidgetInfoMetricDisplayModeEnum
type WidgetInfoView ¶ added in v0.1.57
type WidgetInfoView struct {
// contains filtered or unexported fields
}
func (WidgetInfoView) MarshalJSON ¶ added in v0.1.57
func (c WidgetInfoView) MarshalJSON() ([]byte, error)
func (*WidgetInfoView) UnmarshalJSON ¶ added in v0.1.57
func (c *WidgetInfoView) UnmarshalJSON(b []byte) error
func (WidgetInfoView) Value ¶ added in v0.1.57
func (c WidgetInfoView) Value() string
type WidgetInfoViewEnum ¶ added in v0.1.57
type WidgetInfoViewEnum struct { BAR WidgetInfoView LINE WidgetInfoView }
func GetWidgetInfoViewEnum ¶ added in v0.1.57
func GetWidgetInfoViewEnum() WidgetInfoViewEnum
type WidgetInfoWithId ¶ added in v0.1.57
type WidgetInfoWithId struct { // 视图id WidgetId *string `json:"widget_id,omitempty"` // 指标列表 Metrics *[]WidgetMetric `json:"metrics,omitempty"` // 监控视图标题 Title *string `json:"title,omitempty"` // 监控视图指标的阈值 Threshold *float64 `json:"threshold,omitempty"` // 阈值是否展示,true:展示,false:不展示 ThresholdEnabled *bool `json:"threshold_enabled,omitempty"` // 监控视图图表类型, bar柱状图,line折线图 View *WidgetInfoWithIdView `json:"view,omitempty"` // 指标展示类型,single 单指标展示,multiple 多指标展示 MetricDisplayMode *WidgetInfoWithIdMetricDisplayMode `json:"metric_display_mode,omitempty"` Properties *UpdateWidgetInfoProperties `json:"properties,omitempty"` Location *UpdateWidgetInfoLocation `json:"location,omitempty"` // 单位 Unit *string `json:"unit,omitempty"` // 监控看板创建时间 CreateTime *int64 `json:"create_time,omitempty"` }
func (WidgetInfoWithId) String ¶ added in v0.1.57
func (o WidgetInfoWithId) String() string
type WidgetInfoWithIdMetricDisplayMode ¶ added in v0.1.57
type WidgetInfoWithIdMetricDisplayMode struct {
// contains filtered or unexported fields
}
func (WidgetInfoWithIdMetricDisplayMode) MarshalJSON ¶ added in v0.1.57
func (c WidgetInfoWithIdMetricDisplayMode) MarshalJSON() ([]byte, error)
func (*WidgetInfoWithIdMetricDisplayMode) UnmarshalJSON ¶ added in v0.1.57
func (c *WidgetInfoWithIdMetricDisplayMode) UnmarshalJSON(b []byte) error
func (WidgetInfoWithIdMetricDisplayMode) Value ¶ added in v0.1.57
func (c WidgetInfoWithIdMetricDisplayMode) Value() string
type WidgetInfoWithIdMetricDisplayModeEnum ¶ added in v0.1.57
type WidgetInfoWithIdMetricDisplayModeEnum struct { SINGLE WidgetInfoWithIdMetricDisplayMode MULTIPLE WidgetInfoWithIdMetricDisplayMode }
func GetWidgetInfoWithIdMetricDisplayModeEnum ¶ added in v0.1.57
func GetWidgetInfoWithIdMetricDisplayModeEnum() WidgetInfoWithIdMetricDisplayModeEnum
type WidgetInfoWithIdView ¶ added in v0.1.57
type WidgetInfoWithIdView struct {
// contains filtered or unexported fields
}
func (WidgetInfoWithIdView) MarshalJSON ¶ added in v0.1.57
func (c WidgetInfoWithIdView) MarshalJSON() ([]byte, error)
func (*WidgetInfoWithIdView) UnmarshalJSON ¶ added in v0.1.57
func (c *WidgetInfoWithIdView) UnmarshalJSON(b []byte) error
func (WidgetInfoWithIdView) Value ¶ added in v0.1.57
func (c WidgetInfoWithIdView) Value() string
type WidgetInfoWithIdViewEnum ¶ added in v0.1.57
type WidgetInfoWithIdViewEnum struct { BAR WidgetInfoWithIdView LINE WidgetInfoWithIdView }
func GetWidgetInfoWithIdViewEnum ¶ added in v0.1.57
func GetWidgetInfoWithIdViewEnum() WidgetInfoWithIdViewEnum
type WidgetMetric ¶ added in v0.1.57
type WidgetMetric struct { // 服务维度 Namespace string `json:"namespace"` Dimensions *DimensionInfo `json:"dimensions"` // 指标名称 MetricName string `json:"metric_name"` // 监控视图的指标别名列表 Alias *[]string `json:"alias,omitempty"` ExtraInfo *ExtraInfo `json:"extra_info,omitempty"` }
func (WidgetMetric) String ¶ added in v0.1.57
func (o WidgetMetric) 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_policy_id.go
- model_alarm_template_id.go
- model_alarm_template_policies.go
- model_alarm_templates.go
- model_alarm_type.go
- model_base_widget_info.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_dashboard_request_body.go
- model_batch_delete_dashboard_resp_info.go
- model_batch_delete_notification_masks_request.go
- model_batch_delete_notification_masks_request_body.go
- model_batch_delete_notification_masks_response.go
- model_batch_delete_one_click_alarms_request.go
- model_batch_delete_one_click_alarms_request_body.go
- model_batch_delete_one_click_alarms_response.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_policies_request_body.go
- model_batch_enable_alarm_rules_request.go
- model_batch_enable_alarm_rules_response.go
- model_batch_enable_alarms_request_body.go
- model_batch_update_notification_mask_time_request.go
- model_batch_update_notification_mask_time_request_body.go
- model_batch_update_notification_mask_time_response.go
- model_batch_update_notification_masks_request.go
- model_batch_update_notification_masks_request_body.go
- model_batch_update_notification_masks_response.go
- model_batch_update_one_click_alarm_policies_enabled_state_request.go
- model_batch_update_one_click_alarm_policies_enabled_state_response.go
- model_batch_update_one_click_alarms_enabled_state_request.go
- model_batch_update_one_click_alarms_enabled_state_response.go
- model_batch_update_widget_info.go
- model_batch_update_widgets_request.go
- model_batch_update_widgets_response.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_dashboard_request_body.go
- model_create_dashboard_widgets_request.go
- model_create_dashboard_widgets_response.go
- model_create_one_click_alarm_request.go
- model_create_one_click_alarm_response.go
- model_create_one_dashboard_request.go
- model_create_one_dashboard_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_dash_board_id_item.go
- model_dash_board_info.go
- model_dash_board_name_item.go
- model_data_point_info.go
- model_delete_alarm_rule_resources_request.go
- model_delete_alarm_rule_resources_response.go
- model_delete_dashboards_request.go
- model_delete_dashboards_response.go
- model_delete_one_widget_request.go
- model_delete_one_widget_response.go
- model_dimension.go
- model_dimension2.go
- model_dimension_info.go
- model_dimension_name.go
- model_dimension_names.go
- model_enable_one_click_alarm_request_body.go
- model_enabled.go
- model_end_date.go
- model_end_time.go
- model_enterprise_id_item.go
- model_enterprise_project_id.go
- model_event_dimension_name.go
- model_extra_info.go
- model_filter.go
- model_get_resource_group_resources.go
- model_is_favorite_item.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_alarms_resp_alarms.go
- model_list_association_alarms_response_alarms.go
- model_list_ces_target_project_tags_request.go
- model_list_ces_target_project_tags_response.go
- model_list_dashboard_infos_request.go
- model_list_dashboard_infos_response.go
- model_list_dashboard_widgets_request.go
- model_list_dashboard_widgets_response.go
- model_list_notification_mask_request_body.go
- model_list_notification_mask_resources_request.go
- model_list_notification_mask_resources_response.go
- model_list_notification_mask_resp_notification_masks.go
- model_list_notification_masks_request.go
- model_list_notification_masks_response.go
- model_list_one_click_alarm_rules_request.go
- model_list_one_click_alarm_rules_response.go
- model_list_one_click_alarms_request.go
- model_list_one_click_alarms_resp_one_click_alarms.go
- model_list_one_click_alarms_response.go
- model_list_policy.go
- model_list_relation_type.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_mask_name.go
- model_mask_status.go
- model_mask_type.go
- model_metric.go
- model_metric_dimension.go
- model_metric_dimension_name.go
- model_metric_extra_info.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_notification_mask_id.go
- model_one_click_alarm_description.go
- model_one_click_alarm_id.go
- model_one_click_alarm_policy.go
- model_one_resource_group_resp.go
- model_period.go
- model_policies.go
- model_policies_in_list_resp.go
- model_policies_req_v2.go
- model_policy.go
- model_post_alarms_req_v2.go
- model_put_alarm_notification_req.go
- model_put_resource_group_req.go
- model_relation_id.go
- model_relation_type.go
- model_resource.go
- model_resource_category.go
- model_resource_group_id.go
- model_resource_group_tag_relation.go
- model_resource_tag.go
- model_resources_in_list_resp.go
- model_resources_req.go
- model_resources_req_v2.go
- model_selected_unit.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_show_widget_request.go
- model_show_widget_response.go
- model_smn_urn.go
- model_start_date.go
- model_start_time.go
- model_suppress_duration.go
- model_tag.go
- model_template_description.go
- model_template_id.go
- model_template_name.go
- model_template_type.go
- model_unit.go
- model_unit_item.go
- model_update_alarm_notifications_request.go
- model_update_alarm_notifications_response.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_dashboard_request.go
- model_update_dashboard_request_body.go
- model_update_dashboard_response.go
- model_update_notification_mask_request.go
- model_update_notification_mask_response.go
- model_update_notification_masks_request_body.go
- model_update_one_click_alarm_notifications_request.go
- model_update_one_click_alarm_notifications_response.go
- model_update_policy.go
- model_update_resource_group_request.go
- model_update_resource_group_response.go
- model_update_widget_info.go
- model_update_widget_info_location.go
- model_update_widget_info_properties.go
- model_value.go
- model_widget_display_mode.go
- model_widget_id_item.go
- model_widget_info.go
- model_widget_info_with_id.go
- model_widget_metric.go