tencentcloud-sdk-nodejs-monitor 4.1.21 → 4.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
31
31
|
/**
|
|
32
32
|
* 更新 Prometheus 的告警规则。
|
|
33
33
|
|
|
34
|
-
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description
|
|
34
|
+
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
|
35
35
|
*/
|
|
36
36
|
UpdateAlertRule(req: UpdateAlertRuleRequest, cb?: (error: string, rep: UpdateAlertRuleResponse) => void): Promise<UpdateAlertRuleResponse>;
|
|
37
37
|
/**
|
|
@@ -63,7 +63,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
63
63
|
/**
|
|
64
64
|
* 更新 Prometheus 的告警规则。
|
|
65
65
|
|
|
66
|
-
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description
|
|
66
|
+
请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。
|
|
67
67
|
*/
|
|
68
68
|
async UpdateAlertRule(req, cb) {
|
|
69
69
|
return this.request("UpdateAlertRule", req, cb);
|
|
@@ -4675,7 +4675,7 @@ export interface CreateGrafanaInstanceResponse {
|
|
|
4675
4675
|
*/
|
|
4676
4676
|
export interface UpdateAlertRuleRequest {
|
|
4677
4677
|
/**
|
|
4678
|
-
* Prometheus
|
|
4678
|
+
* Prometheus 告警规则 ID
|
|
4679
4679
|
*/
|
|
4680
4680
|
RuleId: string;
|
|
4681
4681
|
/**
|
|
@@ -4707,17 +4707,17 @@ export interface UpdateAlertRuleRequest {
|
|
|
4707
4707
|
*/
|
|
4708
4708
|
Receivers: Array<string>;
|
|
4709
4709
|
/**
|
|
4710
|
-
*
|
|
4710
|
+
* 告警规则标签列表
|
|
4711
4711
|
*/
|
|
4712
4712
|
Labels?: Array<PrometheusRuleKV>;
|
|
4713
4713
|
/**
|
|
4714
|
-
*
|
|
4714
|
+
* 告警规则注释列表。
|
|
4715
4715
|
|
|
4716
4716
|
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
|
|
4717
4717
|
*/
|
|
4718
4718
|
Annotations?: Array<PrometheusRuleKV>;
|
|
4719
4719
|
/**
|
|
4720
|
-
*
|
|
4720
|
+
* 告警策略模板分类(自定义,可不填)
|
|
4721
4721
|
*/
|
|
4722
4722
|
Type?: string;
|
|
4723
4723
|
}
|