tencentcloud-sdk-nodejs 4.0.247 → 4.0.248
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/CHANGELOG.md +139 -117
- package/package.json +1 -1
- package/products.md +7 -6
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_client.ts +1 -1
- package/src/services/apm/v20210622/apm_client.ts +19 -1
- package/src/services/apm/v20210622/apm_models.ts +172 -10
- package/src/services/cfw/v20190904/cfw_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/ivld/index.ts +5 -0
- package/src/services/ivld/v20210903/index.ts +6 -0
- package/src/services/ivld/v20210903/ivld_client.ts +170 -0
- package/src/services/ivld/v20210903/ivld_models.ts +973 -0
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +0 -1
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +6 -35
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +1 -1
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +5 -1
- package/tencentcloud/services/apm/v20210622/apm_client.js +6 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +145 -8
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/ivld/index.d.ts +6 -0
- package/tencentcloud/services/ivld/index.js +7 -0
- package/tencentcloud/services/ivld/v20210903/index.d.ts +6 -0
- package/tencentcloud/services/ivld/v20210903/index.js +9 -0
- package/tencentcloud/services/ivld/v20210903/ivld_client.d.ts +66 -0
- package/tencentcloud/services/ivld/v20210903/ivld_client.js +103 -0
- package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +831 -0
- package/tencentcloud/services/ivld/v20210903/ivld_models.js +18 -0
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +6 -29
- package/test/apm.v20210622.test.js +10 -0
- package/test/ivld.v20210903.test.js +101 -0
|
@@ -16,28 +16,114 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* apm实例信息
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ApmInstanceDetail {
|
|
22
|
+
/**
|
|
23
|
+
* 存储使用量(MB)
|
|
24
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25
|
+
*/
|
|
26
|
+
AmountOfUsedStorage: number
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 实例名
|
|
30
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31
|
+
*/
|
|
32
|
+
Name: string
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 实例所属tag列表
|
|
36
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
37
|
+
*/
|
|
38
|
+
Tags: Array<ApmTag>
|
|
39
|
+
|
|
22
40
|
/**
|
|
23
41
|
* 实例ID
|
|
24
42
|
*/
|
|
25
43
|
InstanceId: string
|
|
26
44
|
|
|
27
45
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
46
|
+
* 创建人Uin
|
|
47
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
48
|
+
*/
|
|
49
|
+
CreateUin: string
|
|
31
50
|
|
|
32
51
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
52
|
+
* 该实例已上报的服务数
|
|
53
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
54
|
+
*/
|
|
55
|
+
ServiceCount: number
|
|
36
56
|
|
|
37
57
|
/**
|
|
38
|
-
|
|
58
|
+
* 日均上报Span数
|
|
59
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
60
|
+
*/
|
|
61
|
+
CountOfReportSpanPerDay: number
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* AppId信息
|
|
39
65
|
*/
|
|
40
|
-
|
|
66
|
+
AppId: number
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Trace数据保存时长
|
|
70
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
71
|
+
*/
|
|
72
|
+
TraceDuration: number
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 实例描述信息
|
|
76
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
77
|
+
*/
|
|
78
|
+
Description: string
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 实例状态
|
|
82
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
83
|
+
*/
|
|
84
|
+
Status: number
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* 实例所属地域
|
|
88
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
89
|
+
*/
|
|
90
|
+
Region: string
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 实例上报额度
|
|
94
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
95
|
+
*/
|
|
96
|
+
SpanDailyCounters: number
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 实例是否开通计费
|
|
100
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
101
|
+
*/
|
|
102
|
+
BillingInstance: number
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 错误率阈值
|
|
106
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
107
|
+
*/
|
|
108
|
+
ErrRateThreshold: number
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 采样率阈值
|
|
112
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
113
|
+
*/
|
|
114
|
+
SampleRate: number
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* 是否开启错误采样 0 关 1 开
|
|
118
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
119
|
+
*/
|
|
120
|
+
ErrorSample: number
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* 慢调用保存阈值
|
|
124
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
125
|
+
*/
|
|
126
|
+
SlowRequestSavedThreshold: number
|
|
41
127
|
}
|
|
42
128
|
|
|
43
129
|
/**
|
|
@@ -56,6 +142,82 @@ export interface DescribeApmAgentResponse {
|
|
|
56
142
|
RequestId?: string
|
|
57
143
|
}
|
|
58
144
|
|
|
145
|
+
/**
|
|
146
|
+
* 维度(标签)对象
|
|
147
|
+
*/
|
|
148
|
+
export interface ApmTag {
|
|
149
|
+
/**
|
|
150
|
+
* 维度Key(列名,标签Key)
|
|
151
|
+
*/
|
|
152
|
+
Key: string
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 维度值(标签值)
|
|
156
|
+
*/
|
|
157
|
+
Value: string
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* DescribeApmInstances返回参数结构体
|
|
162
|
+
*/
|
|
163
|
+
export interface DescribeApmInstancesResponse {
|
|
164
|
+
/**
|
|
165
|
+
* apm实例列表
|
|
166
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
167
|
+
*/
|
|
168
|
+
Instances: Array<ApmInstanceDetail>
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
172
|
+
*/
|
|
173
|
+
RequestId?: string
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* DescribeApmInstances请求参数结构体
|
|
178
|
+
*/
|
|
179
|
+
export interface DescribeApmInstancesRequest {
|
|
180
|
+
/**
|
|
181
|
+
* Tag列表
|
|
182
|
+
*/
|
|
183
|
+
Tags?: Array<ApmTag>
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* 搜索实例名
|
|
187
|
+
*/
|
|
188
|
+
InstanceName?: string
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* 过滤实例ID
|
|
192
|
+
*/
|
|
193
|
+
InstanceIds?: Array<string>
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* DescribeApmAgent请求参数结构体
|
|
198
|
+
*/
|
|
199
|
+
export interface DescribeApmAgentRequest {
|
|
200
|
+
/**
|
|
201
|
+
* 实例ID
|
|
202
|
+
*/
|
|
203
|
+
InstanceId: string
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 接入方式
|
|
207
|
+
*/
|
|
208
|
+
AgentType?: string
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* 环境
|
|
212
|
+
*/
|
|
213
|
+
NetworkMode?: string
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* 语言
|
|
217
|
+
*/
|
|
218
|
+
LanguageEnvironment?: string
|
|
219
|
+
}
|
|
220
|
+
|
|
59
221
|
/**
|
|
60
222
|
* apm Agent信息
|
|
61
223
|
*/
|
package/src/services/index.ts
CHANGED
|
@@ -94,6 +94,7 @@ export { iotexplorer } from "./iotexplorer"
|
|
|
94
94
|
export { iottid } from "./iottid"
|
|
95
95
|
export { iotvideo } from "./iotvideo"
|
|
96
96
|
export { iotvideoindustry } from "./iotvideoindustry"
|
|
97
|
+
export { ivld } from "./ivld"
|
|
97
98
|
export { kms } from "./kms"
|
|
98
99
|
export { lighthouse } from "./lighthouse"
|
|
99
100
|
export { live } from "./live"
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
|
+
import { ClientConfig } from "../../../common/interface"
|
|
20
|
+
import {
|
|
21
|
+
DeleteMediaResponse,
|
|
22
|
+
ShowInfo,
|
|
23
|
+
MultiLevelTag,
|
|
24
|
+
DescribeTasksRequest,
|
|
25
|
+
L2Tag,
|
|
26
|
+
ImportMediaRequest,
|
|
27
|
+
DescribeMediasRequest,
|
|
28
|
+
VideoAppearInfo,
|
|
29
|
+
TextInfo,
|
|
30
|
+
DescribeTaskResponse,
|
|
31
|
+
AppearIndexPair,
|
|
32
|
+
DescribeTaskDetailResponse,
|
|
33
|
+
CreateTaskResponse,
|
|
34
|
+
DescribeTaskDetailRequest,
|
|
35
|
+
TaskFilter,
|
|
36
|
+
TextAppearInfo,
|
|
37
|
+
DescribeMediaResponse,
|
|
38
|
+
Data,
|
|
39
|
+
DescribeTaskRequest,
|
|
40
|
+
L1Tag,
|
|
41
|
+
DescribeTasksResponse,
|
|
42
|
+
AudioInfo,
|
|
43
|
+
CreateTaskRequest,
|
|
44
|
+
L3Tag,
|
|
45
|
+
MediaFilter,
|
|
46
|
+
MediaPreknownInfo,
|
|
47
|
+
AppearInfo,
|
|
48
|
+
DeleteMediaRequest,
|
|
49
|
+
ImportMediaResponse,
|
|
50
|
+
DescribeMediasResponse,
|
|
51
|
+
MediaInfo,
|
|
52
|
+
SortBy,
|
|
53
|
+
MediaMetadata,
|
|
54
|
+
DescribeMediaRequest,
|
|
55
|
+
TaskInfo,
|
|
56
|
+
} from "./ivld_models"
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* ivld client
|
|
60
|
+
* @class
|
|
61
|
+
*/
|
|
62
|
+
export class Client extends AbstractClient {
|
|
63
|
+
constructor(clientConfig: ClientConfig) {
|
|
64
|
+
super("ivld.tencentcloudapi.com", "2021-09-03", clientConfig)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 创建智能标签任务。
|
|
69
|
+
|
|
70
|
+
请注意,本接口为异步接口,**返回TaskId只代表任务创建成功,不代表任务执行成功**。
|
|
71
|
+
|
|
72
|
+
*/
|
|
73
|
+
async CreateTask(
|
|
74
|
+
req: CreateTaskRequest,
|
|
75
|
+
cb?: (error: string, rep: CreateTaskResponse) => void
|
|
76
|
+
): Promise<CreateTaskResponse> {
|
|
77
|
+
return this.request("CreateTask", req, cb)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 将URL指向的媒资视频文件导入系统之中。
|
|
82
|
+
|
|
83
|
+
**请注意,本接口为异步接口**。接口返回MediaId仅代表导入视频任务发起,不代表任务完成,您可调用读接口(DescribeMedia/DescribeMedias)接口查询MediaId对应的媒资文件的状态。
|
|
84
|
+
|
|
85
|
+
当前URL只支持COS地址,其形式为`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}`,其中`${Bucket}`为您的COS桶名称,Region为COS桶所在[可用区](https://cloud.tencent.com/document/product/213/6091),`${ObjectKey}`为指向存储在COS桶内的待分析的视频的[ObjectKey](https://cloud.tencent.com/document/product/436/13324)
|
|
86
|
+
|
|
87
|
+
分析完成后,本产品将在您的`${Bucket}`桶内创建名为`${ObjectKey}-${task-start-time}`的目录(`task-start-time`形式为1970-01-01T08:08:08)并将分析结果将回传回该目录,也即,结构化分析结果(包括图片,JSON等数据)将会写回`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}-${task-start-time}`目录
|
|
88
|
+
|
|
89
|
+
*/
|
|
90
|
+
async ImportMedia(
|
|
91
|
+
req: ImportMediaRequest,
|
|
92
|
+
cb?: (error: string, rep: ImportMediaResponse) => void
|
|
93
|
+
): Promise<ImportMediaResponse> {
|
|
94
|
+
return this.request("ImportMedia", req, cb)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* 依照输入条件,描述命中的媒资文件信息,包括媒资状态,分辨率,帧率等。
|
|
99
|
+
|
|
100
|
+
请注意,本接口最多支持同时描述**50**个媒资文件
|
|
101
|
+
|
|
102
|
+
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
|
|
103
|
+
*/
|
|
104
|
+
async DescribeMedias(
|
|
105
|
+
req: DescribeMediasRequest,
|
|
106
|
+
cb?: (error: string, rep: DescribeMediasResponse) => void
|
|
107
|
+
): Promise<DescribeMediasResponse> {
|
|
108
|
+
return this.request("DescribeMedias", req, cb)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 描述媒资文件信息,包括媒资状态,分辨率,帧率等。
|
|
113
|
+
|
|
114
|
+
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
|
|
115
|
+
*/
|
|
116
|
+
async DescribeMedia(
|
|
117
|
+
req: DescribeMediaRequest,
|
|
118
|
+
cb?: (error: string, rep: DescribeMediaResponse) => void
|
|
119
|
+
): Promise<DescribeMediaResponse> {
|
|
120
|
+
return this.request("DescribeMedia", req, cb)
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 描述任务信息,如果任务成功完成,还将返回任务结果
|
|
125
|
+
*/
|
|
126
|
+
async DescribeTaskDetail(
|
|
127
|
+
req: DescribeTaskDetailRequest,
|
|
128
|
+
cb?: (error: string, rep: DescribeTaskDetailResponse) => void
|
|
129
|
+
): Promise<DescribeTaskDetailResponse> {
|
|
130
|
+
return this.request("DescribeTaskDetail", req, cb)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 描述智能标签任务进度。
|
|
135
|
+
|
|
136
|
+
请注意,**此接口仅返回任务执行状态信息,不返回任务执行结果**
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
*/
|
|
140
|
+
async DescribeTask(
|
|
141
|
+
req: DescribeTaskRequest,
|
|
142
|
+
cb?: (error: string, rep: DescribeTaskResponse) => void
|
|
143
|
+
): Promise<DescribeTaskResponse> {
|
|
144
|
+
return this.request("DescribeTask", req, cb)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 依照输入条件,描述命中的任务信息,包括任务创建时间,处理时间信息等。
|
|
149
|
+
|
|
150
|
+
请注意,本接口最多支持同时描述**50**个任务信息
|
|
151
|
+
*/
|
|
152
|
+
async DescribeTasks(
|
|
153
|
+
req: DescribeTasksRequest,
|
|
154
|
+
cb?: (error: string, rep: DescribeTasksResponse) => void
|
|
155
|
+
): Promise<DescribeTasksResponse> {
|
|
156
|
+
return this.request("DescribeTasks", req, cb)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* 将MediaId对应的媒资文件从系统中删除。
|
|
161
|
+
|
|
162
|
+
**请注意,本接口仅删除媒资文件,媒资文件对应的视频分析结果不会被删除**。如您需要删除结构化分析结果,请调用DeleteTask接口。
|
|
163
|
+
*/
|
|
164
|
+
async DeleteMedia(
|
|
165
|
+
req: DeleteMediaRequest,
|
|
166
|
+
cb?: (error: string, rep: DeleteMediaResponse) => void
|
|
167
|
+
): Promise<DeleteMediaResponse> {
|
|
168
|
+
return this.request("DeleteMedia", req, cb)
|
|
169
|
+
}
|
|
170
|
+
}
|