tencentcloud-sdk-nodejs-cls 4.1.306 → 4.1.308
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
|
@@ -2508,45 +2508,36 @@ export interface ValueInfo {
|
|
|
2508
2508
|
*/
|
|
2509
2509
|
export interface GetAlarmLogRequest {
|
|
2510
2510
|
/**
|
|
2511
|
-
*
|
|
2511
|
+
* <p>要查询的执行详情的起始时间,Unix时间戳,单位ms。</p>
|
|
2512
2512
|
*/
|
|
2513
2513
|
From: number;
|
|
2514
2514
|
/**
|
|
2515
|
-
*
|
|
2515
|
+
* <p>要查询的执行详情的结束时间,Unix时间戳,单位ms。</p>
|
|
2516
2516
|
*/
|
|
2517
2517
|
To: number;
|
|
2518
2518
|
/**
|
|
2519
|
-
*
|
|
2520
|
-
|
|
2521
|
-
- 通过[获取告警策略列表](https://cloud.tencent.com/document/api/614/56461)获取告警策略ID
|
|
2522
|
-
- 按监控对象ID查询:`monitored_object:"823d8bfa-76a7-xxxx-8399-8cda74d4009b" `
|
|
2523
|
-
- 通过[获取告警策略列表](https://cloud.tencent.com/document/api/614/56461)获取监控对象ID
|
|
2524
|
-
- 按告警策略ID及监控对象ID查询:`alert_id:"alarm-0745ec00-e605-xxxx-b50b-54afe61fc971" AND monitored_object:"823d8bfa-76a7-xxxx-8399-8cda74d4009b"`
|
|
2525
|
-
- 按告警策略ID及监控对象ID查询支持SQL语句:`(alert_id:"alarm-5ce45495-09e8-4d58-xxxx-768134bf330c") AND (monitored_object:"3c514e84-6f1f-46ec-xxxx-05de6163f7fe") AND NOT condition_evaluate_result: "Skip" AND condition_evaluate_result:[* TO *] | SELECT count(*) as top50StatisticsTotalCount, count_if(condition_evaluate_result='ProcessError') as top50StatisticsFailureCount, count_if(notification_send_result!='NotSend') as top50NoticeTotalCount, count_if(notification_send_result='SendPartFail' or notification_send_result='SendFail') as top50NoticeFailureCount, alert_id, alert_name, monitored_object, topic_type, happen_threshold, alert_threshold, notify_template group by alert_id, alert_name, monitored_object,topic_type, happen_threshold, alert_threshold, notify_template order by top50StatisticsTotalCount desc limit 1`
|
|
2519
|
+
* <p>查询过滤条件,例如:</p><ul><li>按告警策略ID查询:<code>alert_id:"alarm-0745ec00-e605-xxxx-b50b-54afe61fc971"</code><ul><li>通过<a href="https://cloud.tencent.com/document/api/614/56461">获取告警策略列表</a>获取告警策略ID</li></ul></li><li>按监控对象ID查询:<code>monitored_object:"823d8bfa-76a7-xxxx-8399-8cda74d4009b"</code><ul><li>通过<a href="https://cloud.tencent.com/document/api/614/56461">获取告警策略列表</a>获取监控对象ID</li></ul></li><li>按告警策略ID及监控对象ID查询:<code>alert_id:"alarm-0745ec00-e605-xxxx-b50b-54afe61fc971" AND monitored_object:"823d8bfa-76a7-xxxx-8399-8cda74d4009b"</code></li><li>按告警策略ID及监控对象ID查询支持SQL语句:<code>(alert_id:"alarm-5ce45495-0918-4d58-xxxx-768134bf330c") AND (monitored_object:"3c514e84-6f1f-46ec-xxxx-05de6163f7fe") AND NOT condition_evaluate_result: "Skip" AND condition_evaluate_result:[* TO *] | SELECT count(*) as top50StatisticsTotalCount, count_if(condition_evaluate_result='ProcessError') as top50StatisticsFailureCount, count_if(notification_send_result!='NotSend') as top50NoticeTotalCount, count_if(notification_send_result='SendPartFail' or notification_send_result='SendFail') as top50NoticeFailureCount, alert_id, alert_name, monitored_object, topic_type, happen_threshold, alert_threshold, notify_template group by alert_id, alert_name, monitored_object,topic_type, happen_threshold, alert_threshold, notify_template order by top50StatisticsTotalCount desc limit 1</code></li></ul><p>该查询语句走Lucene语法(已废弃)</p>
|
|
2520
|
+
* @deprecated
|
|
2526
2521
|
*/
|
|
2527
|
-
Query
|
|
2522
|
+
Query?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* <p>查询过滤条件,例如:- 按告警策略ID查询:<code>alert_id:"alarm-0745ec00-e605-xxxx-b50b-54afe61fc971"</code> - 通过<a href="https://cloud.tencent.com/document/api/614/56461">获取告警策略列表</a>获取告警策略ID- 按监控对象ID查询:<code>monitored_object:"823d8bfa-76a7-xxxx-8399-8cda74d4009b"</code> - 通过<a href="https://cloud.tencent.com/document/api/614/56461">获取告警策略列表</a>获取监控对象ID- 按告警策略ID及监控对象ID查询:<code>alert_id:"alarm-0745ec00-e605-xxxx-b50b-54afe61fc971" AND monitored_object:"823d8bfa-76a7-xxxx-8399-8cda74d4009b"</code>- 按告警策略ID及监控对象ID查询支持SQL语句:<code>(alert_id:"alarm-5ce45495-0918-4d58-xxxx-768134bf330c") AND (monitored_object:"3c514e84-6f1f-46ec-xxxx-05de6163f7fe") AND NOT condition_evaluate_result: "Skip" AND condition_evaluate_result:[* TO *] | SELECT count(*) as top50StatisticsTotalCount, count_if(condition_evaluate_result='ProcessError') as top50StatisticsFailureCount, count_if(notification_send_result!='NotSend') as top50NoticeTotalCount, count_if(notification_send_result='SendPartFail' or notification_send_result='SendFail') as top50NoticeFailureCount, alert_id, alert_name, monitored_object, topic_type, happen_threshold, alert_threshold, notify_template group by alert_id, alert_name, monitored_object,topic_type, happen_threshold, alert_threshold, notify_template order by top50StatisticsTotalCount desc limit 1</code></p><p>该查询语句走CQL语法</p>
|
|
2525
|
+
*/
|
|
2526
|
+
QueryString?: string;
|
|
2528
2527
|
/**
|
|
2529
|
-
*
|
|
2528
|
+
* <p>单次查询返回的执行详情条数,最大值为1000</p>
|
|
2530
2529
|
*/
|
|
2531
2530
|
Limit?: number;
|
|
2532
2531
|
/**
|
|
2533
|
-
*
|
|
2534
|
-
注意:
|
|
2535
|
-
* 透传该参数时,请勿修改除该参数外的其它参数
|
|
2536
|
-
* 仅当检索分析语句(Query)不包含SQL时有效,SQL获取后续结果参考<a href="https://cloud.tencent.com/document/product/614/58977" target="_blank">SQL LIMIT语法</a>
|
|
2532
|
+
* <p>透传上次接口返回的Context值,可获取后续更多日志,总计最多可获取1万条原始日志,过期时间1小时。<br>注意:</p><ul><li>透传该参数时,请勿修改除该参数外的其它参数</li><li>仅当检索分析语句(Query)不包含SQL时有效,SQL获取后续结果参考<a href="https://cloud.tencent.com/document/product/614/58977" target="_blank">SQL LIMIT语法</a></li></ul>
|
|
2537
2533
|
*/
|
|
2538
2534
|
Context?: string;
|
|
2539
2535
|
/**
|
|
2540
|
-
*
|
|
2541
|
-
注意:
|
|
2542
|
-
* 仅当检索分析语句(Query)不包含SQL时有效
|
|
2543
|
-
* SQL结果排序方式参考<a href="https://cloud.tencent.com/document/product/614/58978" target="_blank">SQL ORDER BY语法</a>
|
|
2536
|
+
* <p>原始日志是否按时间排序返回;可选值:asc(升序)、desc(降序),默认为 desc<br>注意:</p><ul><li>仅当检索分析语句(Query)不包含SQL时有效</li><li>SQL结果排序方式参考<a href="https://cloud.tencent.com/document/product/614/58978" target="_blank">SQL ORDER BY语法</a></li></ul>
|
|
2544
2537
|
*/
|
|
2545
2538
|
Sort?: string;
|
|
2546
2539
|
/**
|
|
2547
|
-
* true:代表使用新的检索结果返回方式,输出参数AnalysisRecords和Columns
|
|
2548
|
-
false:代表使用老的检索结果返回方式,输出AnalysisResults和ColNames有效;
|
|
2549
|
-
两种返回方式在编码格式上有少量区别,建议使用true。
|
|
2540
|
+
* <p>true:代表使用新的检索结果返回方式,输出参数AnalysisRecords和Columns有效;<br>false:代表使用老的检索结果返回方式,输出AnalysisResults和ColNames有效;<br>两种返回方式在编码格式上有少量区别,建议使用true。</p>
|
|
2550
2541
|
*/
|
|
2551
2542
|
UseNewAnalysis?: boolean;
|
|
2552
2543
|
}
|
|
@@ -12802,43 +12793,39 @@ export interface Relabeling {
|
|
|
12802
12793
|
*/
|
|
12803
12794
|
export interface GetAlarmLogResponse {
|
|
12804
12795
|
/**
|
|
12805
|
-
*
|
|
12796
|
+
* <p>加载后续详情的Context</p>
|
|
12806
12797
|
*/
|
|
12807
12798
|
Context?: string;
|
|
12808
12799
|
/**
|
|
12809
|
-
*
|
|
12800
|
+
* <p>指定时间范围内的告警执行详情是否完整返回</p>
|
|
12810
12801
|
*/
|
|
12811
12802
|
ListOver?: boolean;
|
|
12812
12803
|
/**
|
|
12813
|
-
*
|
|
12804
|
+
* <p>返回的结果是否为SQL分析结果</p>
|
|
12814
12805
|
*/
|
|
12815
12806
|
Analysis?: boolean;
|
|
12816
12807
|
/**
|
|
12817
|
-
*
|
|
12818
|
-
否则为空。
|
|
12808
|
+
* <p>分析结果的列名,如果Query语句有SQL查询,则返回查询字段的列名;<br>否则为空。</p>
|
|
12819
12809
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12820
12810
|
*/
|
|
12821
12811
|
ColNames?: Array<string>;
|
|
12822
12812
|
/**
|
|
12823
|
-
*
|
|
12824
|
-
当Query字段无SQL语句时,返回查询结果。
|
|
12825
|
-
当Query字段有SQL语句时,可能返回null。
|
|
12813
|
+
* <p>执行详情查询结果。<br>当Query字段无SQL语句时,返回查询结果。<br>当Query字段有SQL语句时,可能返回null。</p>
|
|
12826
12814
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12827
12815
|
*/
|
|
12828
12816
|
Results?: Array<LogInfo>;
|
|
12829
12817
|
/**
|
|
12830
|
-
*
|
|
12831
|
-
|
|
12818
|
+
* <p>执行详情统计分析结果。当Query字段有SQL语句时,返回SQL统计结果,否则可能返回null。</p>
|
|
12832
12819
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12833
12820
|
*/
|
|
12834
12821
|
AnalysisResults?: Array<LogItems>;
|
|
12835
12822
|
/**
|
|
12836
|
-
*
|
|
12823
|
+
* <p>执行详情统计分析结果;UseNewAnalysis为true有效。</p>
|
|
12837
12824
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12838
12825
|
*/
|
|
12839
12826
|
AnalysisRecords?: Array<string>;
|
|
12840
12827
|
/**
|
|
12841
|
-
*
|
|
12828
|
+
* <p>分析结果的列名, UseNewAnalysis为true有效</p>
|
|
12842
12829
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12843
12830
|
*/
|
|
12844
12831
|
Columns?: Array<Column>;
|