| Package | Description | 
|---|---|
| com.tencentcloudapi.monitor.v20180724.models | 
| Modifier and Type | Method and Description | 
|---|---|
| PrometheusRuleKV[] | UpdateAlertRuleRequest. getAnnotations()Get 告警规则注释列表。
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。 | 
| PrometheusRuleKV[] | PrometheusRuleSet. getAnnotations()Get 规则注释列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| PrometheusRuleKV[] | PrometheusAlertGroupRuleSet. getAnnotations()Get 注释列表
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
注意:此字段可能返回 null,表示取不到有效值。 | 
| PrometheusRuleKV[] | CreateAlertRuleRequest. getAnnotations()Get 注释列表。
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。 | 
| PrometheusRuleKV[] | UpdateAlertRuleRequest. getLabels()Get 告警规则标签列表 | 
| PrometheusRuleKV[] | PrometheusRuleSet. getLabels()Get 规则标签列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| PrometheusRuleKV[] | PrometheusAlertGroupRuleSet. getLabels()Get 标签列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| PrometheusRuleKV[] | CreateAlertRuleRequest. getLabels()Get 标签列表 | 
| Modifier and Type | Method and Description | 
|---|---|
| void | UpdateAlertRuleRequest. setAnnotations(PrometheusRuleKV[] Annotations)Set 告警规则注释列表。
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。 | 
| void | PrometheusRuleSet. setAnnotations(PrometheusRuleKV[] Annotations)Set 规则注释列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | PrometheusAlertGroupRuleSet. setAnnotations(PrometheusRuleKV[] Annotations)Set 注释列表
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | CreateAlertRuleRequest. setAnnotations(PrometheusRuleKV[] Annotations)Set 注释列表。
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。 | 
| void | UpdateAlertRuleRequest. setLabels(PrometheusRuleKV[] Labels)Set 告警规则标签列表 | 
| void | PrometheusRuleSet. setLabels(PrometheusRuleKV[] Labels)Set 规则标签列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | PrometheusAlertGroupRuleSet. setLabels(PrometheusRuleKV[] Labels)Set 标签列表
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | CreateAlertRuleRequest. setLabels(PrometheusRuleKV[] Labels)Set 标签列表 | 
| Constructor and Description | 
|---|
| PrometheusRuleKV(PrometheusRuleKV source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
Copyright © 2025. All rights reserved.