tencentcloud-sdk-nodejs-intl-en 3.0.724 → 3.0.726

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.724",
3
+ "version": "3.0.726",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -53,6 +53,7 @@ const DeleteMachineGroupInfoRequest = models.DeleteMachineGroupInfoRequest;
53
53
  const CreateLogsetResponse = models.CreateLogsetResponse;
54
54
  const DeleteMachineGroupResponse = models.DeleteMachineGroupResponse;
55
55
  const Tag = models.Tag;
56
+ const MetaTagInfo = models.MetaTagInfo;
56
57
  const DescribeExportsRequest = models.DescribeExportsRequest;
57
58
  const ExtractRuleInfo = models.ExtractRuleInfo;
58
59
  const TopicInfo = models.TopicInfo;
@@ -238,9 +239,9 @@ class ClsClient extends AbstractClient {
238
239
 
239
240
  /**
240
241
  * ## Note
241
- To ensure log data reliability and help you use CLS more efficiently, we recommend you use the optimized API to upload logs. For more information about the API, see [Uploading Log via API](https://www.tencentcloud.com/document/product/614/50267).
242
+ To ensure log data reliability and help you use CLS more efficiently, we recommend you use the optimized API to upload logs. For more information about the API, see [Uploading Log via API](https://intl.cloud.tencent.com/document/product/614/16873?from_cn_redirect=1).
242
243
 
243
- For the optimized API, we have developed an SDK (available in multiple languages) that provides features including async sending, resource control, automatic retry, graceful shutdown, and detection-based reporting. For details, see [Uploading Log via SDK](https://intl.cloud.tencent.com/document/product/614/45006).
244
+ For the optimized API, we have developed an SDK (available in multiple languages) that provides features including async sending, resource control, automatic retry, graceful shutdown, and detection-based reporting. For details, see [Uploading Log via SDK](https://intl.cloud.tencent.com/document/product/614/67157?from_cn_redirect=1).
244
245
 
245
246
  `UploadLog` allows you to synchronously upload log data. If you still want to continue to use this API instead of the optimized one, read this document.
246
247
 
@@ -262,56 +263,56 @@ In this mode, data will be written to a target partition that meets the range re
262
263
 
263
264
  #### Input parameters (pb binary streams in `body`)
264
265
 
265
- | Parameter | Type | Location | Required | Description |
266
+ | Parameter | Type | Location | Required | Description |
266
267
  | ------------ | ------- | ---- | ---- | ------------------------------------------------------------ |
267
- | logGroupList | message | pb | Yes | The `logGroup` list, which describes the encapsulated log groups. We recommend you enter up to five `logGroup` values. |
268
+ | logGroupList | message | pb | Yes | The `logGroup` list, which describes the encapsulated log groups. We recommend you enter up to five `logGroup` values. |
268
269
 
269
270
  `LogGroup` description:
270
271
 
271
- | Parameter | Required | Description |
272
+ | Parameter | Required | Description |
272
273
  | ----------- | -------- | ------------------------------------------------------------ |
273
274
  | logs | Yes | Log array consisting of multiple `Log` values. The `Log` indicates a log, and a `LogGroup` can contain up to 10,000 `Log` values. |
274
- | contextFlow | No | Unique `LogGroup` ID, which should be passed in if the context feature needs to be used. Format: "{context ID}-{LogGroupID}". <br>Context ID: Uniquely identifies the context (a series of log files that are continuously scrolling or a series of logs that need to be sequenced), which is a 64-bit integer hex string. <br>LogGroupID: A 64-bit integer hex string that continuously increases, such as `102700A66102516A-59F59`. |
275
+ | contextFlow | No | Unique `LogGroup` ID, which should be passed in if the context feature needs to be used. Format: "{Context ID}-{LogGroupID}". <br>Context ID: Uniquely identifies the context (a series of log files that are continuously scrolling or a series of logs that need to be sequenced), which is a 64-bit integer hex string. <br>LogGroupID: A 64-bit integer hex string that continuously increases, such as `102700A66102516A-59F59`. |
275
276
  | filename | No | Log filename |
276
277
  | source | No | Log source, which is generally the machine IP |
277
278
  | logTags | No | List of log tags |
278
279
 
279
280
  `Log` description:
280
281
 
281
- | Parameter | Required | Description |
282
+ | Parameter | Required | Description |
282
283
  | -------- | -------- | ------------------------------------------------------------ |
283
- | time | Yes | Unix timestamp of log time in seconds or milliseconds (recommended) |
284
- | contents | No | Log content in key-value format. A log can contain multiple key-value pairs. |
284
+ | time | Yes | Unix timestamp of log time in seconds or milliseconds (recommended) |
285
+ | contents | No | Log content in key-value format. A log can contain multiple key-value pairs. |
285
286
 
286
287
  `Content` description:
287
288
 
288
- | Parameter | Required | Description |
289
+ | Parameter | Required | Description |
289
290
  | ------ | -------- | ------------------------------------------------------------ |
290
291
  | key | Yes | Key of a field group in one log, which cannot start with `_`. |
291
292
  | value | Yes | Value of a field group. The `value` of one log cannot exceed 1 MB and the total `value` in `LogGroup` cannot exceed 5 MB. |
292
293
 
293
294
  `LogTag` description:
294
295
 
295
- | Parameter | Required | Description |
296
+ | Parameter | Required | Description |
296
297
  | ------ | -------- | -------------------------------- |
297
- | key | Yes | Key of a custom tag |
298
+ | key | Yes | Key of a custom tag |
298
299
  | value | Yes | Value corresponding to the custom tag key |
299
300
 
300
- ## pb Compilation Sample
301
+ ## pb Compilation Example
301
302
 
302
- This sample describes how to use the protoc compiler to compile the pb description file into a log upload API in C++.
303
+ This example shows you how to use the protoc compiler to compile a pb description file into a log upload API in C++.
303
304
 
304
305
  > ?Currently, protoc supports compilation in multiple programming languages such as Java, C++, and Python. For more information, see [protoc](https://github.com/protocolbuffers/protobuf).
305
306
 
306
307
  #### 1. Install Protocol Buffers
307
308
 
308
- Download [Protocol Buffers](https://main.qcloudimg.com/raw/d7810aaf8b3073fbbc9d4049c21532aa/protobuf-2.6.1.tar.gz), decompress the package, and install the tool. The version used in the sample is protobuf 2.6.1 running on CentOS 7.3. Run the following command to decompress the `protobuf-2.6.1.tar.gz` package to the `/usr/local` directory and go to the directory:
309
+ Download [Protocol Buffers](https://main.qcloudimg.com/raw/d7810aaf8b3073fbbc9d4049c21532aa/protobuf-2.6.1.tar.gz), decompress the package, and install the tool. The version used in the example is protobuf 2.6.1 running on CentOS 7.3. Run the following command to decompress the `protobuf-2.6.1.tar.gz` package to the `/usr/local` directory and go to the directory:
309
310
 
310
311
  ```
311
312
  tar -zxvf protobuf-2.6.1.tar.gz -C /usr/local/ && cd /usr/local/protobuf-2.6.1
312
313
  ```
313
314
 
314
- Run the following commands to start compilation and installation, and configure the environment variables:
315
+ Run the following commands to start compilation and installation and configure the environment variables:
315
316
 
316
317
  ```
317
318
  [root@VM_0_8_centos protobuf-2.6.1]# ./configure
@@ -373,7 +374,7 @@ message LogGroupList
373
374
 
374
375
  #### 3. Compile and generate the API
375
376
 
376
- This sample uses the proto compiler to generate a C++ file in the same directory as the `cls.proto` file. Run the following compilation command:
377
+ This example uses the proto compiler to generate a C++ file in the same directory as the `cls.proto` file. Run the following compilation command:
377
378
 
378
379
  ```
379
380
  protoc --cpp_out=./ ./cls.proto
@@ -381,7 +382,7 @@ protoc --cpp_out=./ ./cls.proto
381
382
 
382
383
  > ?`--cpp_out=./` indicates that the file will be compiled in cpp format and output to the current directory. `./cls.proto` indicates the `cls.proto` description file in the current directory.
383
384
 
384
- After the compilation succeeds, the code file in the corresponding programming language will be generated. This sample generates the `cls.pb.h` header file and [cls.pb.cc](http://cls.pb.cc) code implementation file as shown below:
385
+ After the compilation succeeds, the code file in the corresponding programming language will be generated. This example generates the `cls.pb.h` header file and [cls.pb.cc](http://cls.pb.cc) code implementation file as shown below:
385
386
 
386
387
  ```
387
388
  [root@VM_0_8_centos protobuf-2.6.1]# protoc --cpp_out=./ ./cls.proto