tencentcloud-sdk-nodejs-monitor 4.1.2 → 4.1.7

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/README.md CHANGED
@@ -44,11 +44,19 @@ npm install tencentcloud-sdk-nodejs-vpc --save
44
44
 
45
45
  ### 安装全产品 SDK
46
46
 
47
+ 如果项目依赖的云产品较多,可以引入全产品 SDK。
48
+
47
49
  ```
48
50
  npm install tencentcloud-sdk-nodejs --save
49
51
  ```
50
52
 
51
- 全产品 SDK 包含了所有云产品的调用代码,体积偏大,对体积敏感的场景,推荐安装指定产品 SDK。
53
+ 全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
54
+
55
+ 如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
56
+
57
+ ```
58
+ npm install tencentcloud-sdk-slim-nodejs --save
59
+ ```
52
60
 
53
61
  ## 通过源码包安装
54
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-monitor",
3
- "version": "4.1.2",
3
+ "version": "4.1.7",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -10,6 +10,7 @@
10
10
  "build": "concurrently 'npm:build:cjs' 'npm:build:es'",
11
11
  "build:cjs": "tsc -p tsconfig.json",
12
12
  "build:es": "tsc -p tsconfig.es.json",
13
+ "build:slim": "node ./scripts/build_slim.js",
13
14
  "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
14
15
  "clean": "rimraf tencentcloud es"
15
16
  },
@@ -53,6 +54,7 @@
53
54
  "babel-eslint": "^10.0.2",
54
55
  "chai": "^4.2.0",
55
56
  "concurrently": "^6.5.1",
57
+ "esbuild": "^0.25.0",
56
58
  "eslint": "^6.8.0",
57
59
  "eslint-plugin-react": "^7.17.0",
58
60
  "mocha": "^8.4.0",
@@ -944,6 +944,21 @@ export interface AlarmPolicy {
944
944
  * 通知模板绑定内容模板信息
945
945
  */
946
946
  NoticeTmplBindInfos?: Array<NoticeContentTmplBindInfo>;
947
+ /**
948
+ * 模板通知的等级
949
+ 注意:此字段可能返回 null,表示取不到有效值。
950
+ */
951
+ HierarchicalNotices?: Array<AlarmHierarchicalNotice>;
952
+ /**
953
+ * 通知模板绑定内容模板信息,同NoticeTmplBindInfos
954
+ 注意:此字段可能返回 null,表示取不到有效值。
955
+ */
956
+ NoticeContentTmplBindInfos?: Array<NoticeContentTmplBindInfo>;
957
+ /**
958
+ * 预设配置id
959
+ 注意:此字段可能返回 null,表示取不到有效值。
960
+ */
961
+ PredefinedConfigID?: string;
947
962
  }
948
963
  /**
949
964
  * DeleteExporterIntegration请求参数结构体
@@ -2260,6 +2275,11 @@ export interface URLNotice {
2260
2275
  注意:此字段可能返回 null,表示取不到有效值。
2261
2276
  */
2262
2277
  Weekday?: Array<number | bigint>;
2278
+ /**
2279
+ * 组名
2280
+ 注意:此字段可能返回 null,表示取不到有效值。
2281
+ */
2282
+ GroupMembers?: string;
2263
2283
  }
2264
2284
  /**
2265
2285
  * DescribeProductList返回参数结构体
@@ -10251,13 +10271,7 @@ export interface DescribeAlarmPoliciesRequest {
10251
10271
  */
10252
10272
  Namespaces?: Array<string>;
10253
10273
  /**
10254
- * 告警对象列表,JSON 字符串。外层数组,对应多个实例,内层为对象的维度。例如“云服务器-基础监控”可写为:
10255
- `[ {"Dimensions": {"unInstanceId": "ins-qr8d555g"}}, {"Dimensions": {"unInstanceId": "ins-qr8d555h"}} ]`
10256
- 具体也可以参考下方的示例 2。
10257
-
10258
- 不同云产品参数示例详见 [维度信息Dimensions列表](https://cloud.tencent.com/document/product/248/50397)
10259
-
10260
- 注意:如果NeedCorrespondence传入1,即需要返回策略与实例对应关系,请传入不多于20个告警对象维度,否则容易请求超时
10274
+ * 告警对象列表,JSON 字符串。外层数组,对应多个实例,内层为对象的维度。例如“云服务器-基础监控”可写为:`[[{"name":"unInstanceId","value":"ins-qr888845g"}]]`具体也可以参考下方的示例 2。不同云产品参数示例详见 [维度信息Dimensions列表](https://cloud.tencent.com/document/product/248/50397)注意:如果NeedCorrespondence传入1,即需要返回策略与实例对应关系,请传入不多于20个告警对象维度,否则容易请求超时
10261
10275
  */
10262
10276
  Dimensions?: string;
10263
10277
  /**
@@ -10342,6 +10356,10 @@ export interface DescribeAlarmPoliciesRequest {
10342
10356
  * 通知内容模板ID筛选
10343
10357
  */
10344
10358
  NoticeContentTmplIDs?: Array<string>;
10359
+ /**
10360
+ * 是否为预设策略,1是,0否
10361
+ */
10362
+ IsPredefined?: number;
10345
10363
  }
10346
10364
  /**
10347
10365
  * UpdateSSOAccount请求参数结构体