@alicloud/dms20250414 4.0.0 → 4.1.0
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/dist/client.d.ts +38 -8
- package/dist/client.js +119 -8
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +71 -43
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +58 -29
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +51 -37
- package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -1
- package/dist/models/DescribeCustomAgentMonitorMetricsRequest.d.ts +69 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js +68 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js.map +1 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsResponse.d.ts +19 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js +69 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js.map +1 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.d.ts +194 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js +136 -0
- package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js.map +1 -0
- package/dist/models/DescribeCustomAgentResponseBody.d.ts +84 -25
- package/dist/models/DescribeCustomAgentResponseBody.js.map +1 -1
- package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +94 -54
- package/dist/models/DescribeDataAgentSessionResponseBody.js +31 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/ListCustomAgentMonitorSessionsRequest.d.ts +75 -0
- package/dist/models/ListCustomAgentMonitorSessionsRequest.js +70 -0
- package/dist/models/ListCustomAgentMonitorSessionsRequest.js.map +1 -0
- package/dist/models/ListCustomAgentMonitorSessionsResponse.d.ts +19 -0
- package/dist/models/ListCustomAgentMonitorSessionsResponse.js +69 -0
- package/dist/models/ListCustomAgentMonitorSessionsResponse.js.map +1 -0
- package/dist/models/ListCustomAgentMonitorSessionsResponseBody.d.ts +208 -0
- package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js +138 -0
- package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js.map +1 -0
- package/dist/models/ListCustomAgentRequest.d.ts +4 -4
- package/dist/models/ListCustomAgentResponseBody.d.ts +138 -28
- package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentWorkspaceRequest.d.ts +13 -6
- package/dist/models/ListDataAgentWorkspaceRequest.js.map +1 -1
- package/dist/models/ListDataAgentWorkspaceResponseBody.d.ts +28 -7
- package/dist/models/ListDataAgentWorkspaceResponseBody.js.map +1 -1
- package/dist/models/ModifyCustomAgentRequest.d.ts +71 -38
- package/dist/models/ModifyCustomAgentRequest.js.map +1 -1
- package/dist/models/ModifyCustomAgentResponseBody.d.ts +63 -30
- package/dist/models/ModifyCustomAgentResponseBody.js.map +1 -1
- package/dist/models/ModifyCustomAgentShrinkRequest.d.ts +51 -32
- package/dist/models/ModifyCustomAgentShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +39 -17
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +136 -8
- package/src/models/CreateCustomAgentRequest.ts +71 -43
- package/src/models/CreateCustomAgentResponseBody.ts +58 -29
- package/src/models/CreateCustomAgentShrinkRequest.ts +51 -37
- package/src/models/DescribeCustomAgentMonitorMetricsRequest.ts +92 -0
- package/src/models/DescribeCustomAgentMonitorMetricsResponse.ts +40 -0
- package/src/models/DescribeCustomAgentMonitorMetricsResponseBody.ts +267 -0
- package/src/models/DescribeCustomAgentResponseBody.ts +84 -25
- package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
- package/src/models/DescribeDataAgentSessionResponseBody.ts +115 -54
- package/src/models/ListCustomAgentMonitorSessionsRequest.ts +100 -0
- package/src/models/ListCustomAgentMonitorSessionsResponse.ts +40 -0
- package/src/models/ListCustomAgentMonitorSessionsResponseBody.ts +283 -0
- package/src/models/ListCustomAgentRequest.ts +4 -4
- package/src/models/ListCustomAgentResponseBody.ts +138 -28
- package/src/models/ListDataAgentWorkspaceRequest.ts +13 -6
- package/src/models/ListDataAgentWorkspaceResponseBody.ts +28 -7
- package/src/models/ModifyCustomAgentRequest.ts +71 -38
- package/src/models/ModifyCustomAgentResponseBody.ts +63 -30
- package/src/models/ModifyCustomAgentShrinkRequest.ts +51 -32
- package/src/models/model.ts +11 -0
|
@@ -14,19 +14,19 @@ export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
|
14
14
|
DMSUnit?: string;
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* The specified data scope in **JSON character string format**.
|
|
18
|
-
* - Common
|
|
19
|
-
* - tableFlag: true
|
|
17
|
+
* The specified data scope, in **JSON character string format**.
|
|
18
|
+
* - Common parameter description
|
|
19
|
+
* - tableFlag: true specifies the data scope.
|
|
20
20
|
* - scope: personal is a fixed value.
|
|
21
|
-
* - personal:
|
|
21
|
+
* - personal: the parameters for file and database types.
|
|
22
22
|
*
|
|
23
|
-
* **File type
|
|
23
|
+
* **File type**: Pass parameters in the following format:
|
|
24
24
|
* - DataSourceType: remote_data_center is a fixed value.
|
|
25
|
-
* - FileId:
|
|
26
|
-
* - Database:
|
|
27
|
-
* - Tables:
|
|
28
|
-
* - TableIds:
|
|
29
|
-
* - RegionId:
|
|
25
|
+
* - FileId: The file ID.
|
|
26
|
+
* - Database: The database name returned by the ListDataCenterTable operation, which is usually the file name.
|
|
27
|
+
* - Tables: The table names returned by the ListDataCenterTable operation.
|
|
28
|
+
* - TableIds: The table IDs returned by the ListDataCenterTable operation.
|
|
29
|
+
* - RegionId: The current region.
|
|
30
30
|
* ```
|
|
31
31
|
* {
|
|
32
32
|
* "tableFlag": true,
|
|
@@ -46,17 +46,17 @@ export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
|
46
46
|
* }
|
|
47
47
|
* ```
|
|
48
48
|
*
|
|
49
|
-
* **Database type
|
|
49
|
+
* **Database type**: Pass parameters as follows:
|
|
50
50
|
* - DataSourceType: database is a fixed value.
|
|
51
|
-
* - DmsInstanceId:
|
|
52
|
-
* - DmsDatabaseId:
|
|
53
|
-
* - FileId:
|
|
54
|
-
* - DbName:
|
|
55
|
-
* - Database:
|
|
56
|
-
* - Tables:
|
|
57
|
-
* - TableIds:
|
|
58
|
-
* - Engine:
|
|
59
|
-
* - RegionId:
|
|
51
|
+
* - DmsInstanceId: The DMS instance ID returned by the Data Center API.
|
|
52
|
+
* - DmsDatabaseId: The DMS database ID returned by the Data Center API.
|
|
53
|
+
* - FileId: The instance name. **[Deprecated]**
|
|
54
|
+
* - DbName: The database name returned by the Data Center API.
|
|
55
|
+
* - Database: The database name returned by the Data Center API.
|
|
56
|
+
* - Tables: The table names returned by the Data Center API.
|
|
57
|
+
* - TableIds: The table IDs returned by the Data Center API.
|
|
58
|
+
* - Engine: The engine type, such as mysql or postgresql.
|
|
59
|
+
* - RegionId: The current region.
|
|
60
60
|
* ```
|
|
61
61
|
* {
|
|
62
62
|
* "tableFlag": true,
|
|
@@ -87,7 +87,7 @@ export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
|
87
87
|
* "personal" : {
|
|
88
88
|
* "DataSourceType" : "remote_data_center",
|
|
89
89
|
* "FileId" : "f-5qlrwaw10********s3gpw1z",
|
|
90
|
-
* "Database" : "
|
|
90
|
+
* "Database" : "TestTable******.xlsx",
|
|
91
91
|
* "Tables" : [ "Sheet1" ],
|
|
92
92
|
* "TableIds" : [ "******" ],
|
|
93
93
|
* "RegionId" : "cn-hangzhou"
|
|
@@ -100,7 +100,7 @@ export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
|
100
100
|
* The description of the custom agent.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
|
-
*
|
|
103
|
+
* Agent test description
|
|
104
104
|
*/
|
|
105
105
|
description?: string;
|
|
106
106
|
/**
|
|
@@ -110,33 +110,33 @@ export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
|
110
110
|
executionConfigShrink?: string;
|
|
111
111
|
/**
|
|
112
112
|
* @remarks
|
|
113
|
-
* The
|
|
114
|
-
* - Input limit:
|
|
113
|
+
* The instructions.
|
|
114
|
+
* - Input limit: A maximum of 10,000 characters.
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
117
|
* Core metric definitions:
|
|
118
|
-
* 1. GMV (Gross Merchandise Volume) refers to the total order amount, including paid and unpaid orders.
|
|
119
|
-
* 2. Order volume
|
|
120
|
-
* 3. UV (Unique Visitors) refers to the
|
|
121
|
-
* 4. Conversion rate =
|
|
118
|
+
* 1. GMV (Gross Merchandise Volume) refers to the total order amount, including both paid and unpaid orders.
|
|
119
|
+
* 2. Order volume refers to the number of valid orders placed per day.
|
|
120
|
+
* 3. UV (Unique Visitors) refers to the number of deduplicated users who visit the website or app.
|
|
121
|
+
* 4. Conversion rate = Number of paid orders / UV, which reflects the traffic conversion efficiency
|
|
122
122
|
*/
|
|
123
123
|
instruction?: string;
|
|
124
124
|
/**
|
|
125
125
|
* @remarks
|
|
126
126
|
* The knowledge.
|
|
127
|
-
* - Input limit:
|
|
127
|
+
* - Input limit: A maximum of 10,000 characters.
|
|
128
128
|
*
|
|
129
129
|
* @example
|
|
130
130
|
* Core metric definitions:
|
|
131
|
-
* 1. GMV (Gross Merchandise Volume) refers to the total order amount, including paid and unpaid orders.
|
|
132
|
-
* 2. Order volume
|
|
133
|
-
* 3. UV (Unique Visitors) refers to the
|
|
134
|
-
* 4. Conversion rate =
|
|
131
|
+
* 1. GMV (Gross Merchandise Volume) refers to the total order amount, including both paid and unpaid orders.
|
|
132
|
+
* 2. Order volume refers to the number of valid orders placed per day.
|
|
133
|
+
* 3. UV (Unique Visitors) refers to the number of deduplicated users who visit the website or app.
|
|
134
|
+
* 4. Conversion rate = Number of paid orders / UV, which reflects the traffic conversion efficiency
|
|
135
135
|
*/
|
|
136
136
|
knowledge?: string;
|
|
137
137
|
/**
|
|
138
138
|
* @remarks
|
|
139
|
-
* The external knowledge
|
|
139
|
+
* The external knowledge bases.
|
|
140
140
|
*/
|
|
141
141
|
knowledgeConfigListShrink?: string;
|
|
142
142
|
knowledgeSemanticConfigListShrink?: string;
|
|
@@ -145,12 +145,15 @@ export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
|
145
145
|
* The name of the custom agent.
|
|
146
146
|
*
|
|
147
147
|
* @example
|
|
148
|
-
*
|
|
148
|
+
* Agent test name
|
|
149
149
|
*/
|
|
150
150
|
name?: string;
|
|
151
151
|
/**
|
|
152
152
|
* @remarks
|
|
153
153
|
* The ID of the referenced historical session.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* 99crainsjnveo*******vynid
|
|
154
157
|
*/
|
|
155
158
|
relatedSessionId?: string;
|
|
156
159
|
/**
|
|
@@ -163,18 +166,29 @@ export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
|
163
166
|
* The text report format.
|
|
164
167
|
*
|
|
165
168
|
* @example
|
|
166
|
-
*
|
|
169
|
+
* All numbers in the text report must be written in Chinese characters instead of Arabic numerals
|
|
167
170
|
*/
|
|
168
171
|
textReportConfig?: string;
|
|
172
|
+
/**
|
|
173
|
+
* @remarks
|
|
174
|
+
* The list of user-specified skills.
|
|
175
|
+
*/
|
|
169
176
|
userSpecifiedSkillListShrink?: string;
|
|
170
177
|
/**
|
|
171
178
|
* @remarks
|
|
172
179
|
* The web report format.
|
|
173
180
|
*
|
|
174
181
|
* @example
|
|
175
|
-
*
|
|
182
|
+
* All numbers in the web report must be written in Chinese characters instead of Arabic numerals
|
|
176
183
|
*/
|
|
177
184
|
webReportConfig?: string;
|
|
185
|
+
/**
|
|
186
|
+
* @remarks
|
|
187
|
+
* The web report theme.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* Default
|
|
191
|
+
*/
|
|
178
192
|
webReportTheme?: string;
|
|
179
193
|
/**
|
|
180
194
|
* @remarks
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeCustomAgentMonitorMetricsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The custom agent ID.
|
|
9
|
+
* - Required only when QueryType is set to CustomAgent.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ca-a9fd******0lnq4g6c
|
|
13
|
+
*/
|
|
14
|
+
customAgentId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @remarks
|
|
17
|
+
* The end time of the statistical period (epoch millis).
|
|
18
|
+
* - Note: The maximum time range is 3 months.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* 1756742400000
|
|
22
|
+
*/
|
|
23
|
+
endTime?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The aggregation granularity. Valid values:
|
|
27
|
+
* - DAY: daily. The maximum supported time range is 3 months.
|
|
28
|
+
* - HOUR: hourly. The maximum supported time range is 72 hours.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* DAY
|
|
32
|
+
*/
|
|
33
|
+
granularity?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* The statistical scope. Default value: All. Valid values:
|
|
37
|
+
* - Default: default DataAgent sessions.
|
|
38
|
+
* - CustomAgent: specified custom agent sessions.
|
|
39
|
+
* - All: all sessions in the workspace.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* All
|
|
43
|
+
*/
|
|
44
|
+
queryType?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* The start time of the statistical period (epoch millis).
|
|
48
|
+
* - Note: The maximum time range is 3 months.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 1756656000000
|
|
52
|
+
*/
|
|
53
|
+
startTime?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The workspace ID.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* 99fad******qg6c0l4nlacu
|
|
60
|
+
*/
|
|
61
|
+
workspaceId?: string;
|
|
62
|
+
static names(): { [key: string]: string } {
|
|
63
|
+
return {
|
|
64
|
+
customAgentId: 'CustomAgentId',
|
|
65
|
+
endTime: 'EndTime',
|
|
66
|
+
granularity: 'Granularity',
|
|
67
|
+
queryType: 'QueryType',
|
|
68
|
+
startTime: 'StartTime',
|
|
69
|
+
workspaceId: 'WorkspaceId',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static types(): { [key: string]: any } {
|
|
74
|
+
return {
|
|
75
|
+
customAgentId: 'string',
|
|
76
|
+
endTime: 'number',
|
|
77
|
+
granularity: 'string',
|
|
78
|
+
queryType: 'string',
|
|
79
|
+
startTime: 'number',
|
|
80
|
+
workspaceId: 'string',
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
validate() {
|
|
85
|
+
super.validate();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
constructor(map?: { [key: string]: any }) {
|
|
89
|
+
super(map);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeCustomAgentMonitorMetricsResponseBody } from "./DescribeCustomAgentMonitorMetricsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeCustomAgentMonitorMetricsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeCustomAgentMonitorMetricsResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeCustomAgentMonitorMetricsResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeCustomAgentMonitorMetricsResponseBodyDataTrend extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The number of active users within the statistical period.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2
|
|
12
|
+
*/
|
|
13
|
+
activeUserCount?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The number of dislikes within the statistical period.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 0
|
|
20
|
+
*/
|
|
21
|
+
dislikeCount?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The number of likes within the statistical period.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 1
|
|
28
|
+
*/
|
|
29
|
+
likeCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The number of sessions within the statistical period.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 10
|
|
36
|
+
*/
|
|
37
|
+
sessionCount?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The statistical time. For daily granularity, the format is 2026-09-01. For hourly granularity, the format is 2026-09-01 13:00.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 2026-09-01
|
|
44
|
+
*/
|
|
45
|
+
statTime?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The start timestamp of the statistical period (epoch millis).
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 1782835200000
|
|
52
|
+
*/
|
|
53
|
+
timestamp?: number;
|
|
54
|
+
static names(): { [key: string]: string } {
|
|
55
|
+
return {
|
|
56
|
+
activeUserCount: 'ActiveUserCount',
|
|
57
|
+
dislikeCount: 'DislikeCount',
|
|
58
|
+
likeCount: 'LikeCount',
|
|
59
|
+
sessionCount: 'SessionCount',
|
|
60
|
+
statTime: 'StatTime',
|
|
61
|
+
timestamp: 'Timestamp',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
activeUserCount: 'number',
|
|
68
|
+
dislikeCount: 'number',
|
|
69
|
+
likeCount: 'number',
|
|
70
|
+
sessionCount: 'number',
|
|
71
|
+
statTime: 'string',
|
|
72
|
+
timestamp: 'number',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
validate() {
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class DescribeCustomAgentMonitorMetricsResponseBodyData extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The number of active users.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 6
|
|
92
|
+
*/
|
|
93
|
+
activeUserCount?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The custom agent ID.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ca-4y3ca4khkcu**********ysf
|
|
100
|
+
*/
|
|
101
|
+
customAgentId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* The total number of dislikes.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* 0
|
|
108
|
+
*/
|
|
109
|
+
dislikeCount?: number;
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* The end time of the statistical period (epoch millis).
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* 1756742400000
|
|
116
|
+
*/
|
|
117
|
+
endTime?: number;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* The aggregation granularity: DAY / HOUR.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* DAY
|
|
124
|
+
*/
|
|
125
|
+
granularity?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The total number of likes.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* 10
|
|
132
|
+
*/
|
|
133
|
+
likeCount?: number;
|
|
134
|
+
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* The total number of sessions.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* 102
|
|
140
|
+
*/
|
|
141
|
+
sessionCount?: number;
|
|
142
|
+
/**
|
|
143
|
+
* @remarks
|
|
144
|
+
* The start time of the statistical period (epoch millis).
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* 1782835200000
|
|
148
|
+
*/
|
|
149
|
+
startTime?: number;
|
|
150
|
+
/**
|
|
151
|
+
* @remarks
|
|
152
|
+
* The trend data aggregated by the specified granularity. Time points without data are filled with 0. The data is sorted in chronological order.
|
|
153
|
+
*/
|
|
154
|
+
trend?: DescribeCustomAgentMonitorMetricsResponseBodyDataTrend[];
|
|
155
|
+
static names(): { [key: string]: string } {
|
|
156
|
+
return {
|
|
157
|
+
activeUserCount: 'ActiveUserCount',
|
|
158
|
+
customAgentId: 'CustomAgentId',
|
|
159
|
+
dislikeCount: 'DislikeCount',
|
|
160
|
+
endTime: 'EndTime',
|
|
161
|
+
granularity: 'Granularity',
|
|
162
|
+
likeCount: 'LikeCount',
|
|
163
|
+
sessionCount: 'SessionCount',
|
|
164
|
+
startTime: 'StartTime',
|
|
165
|
+
trend: 'Trend',
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
static types(): { [key: string]: any } {
|
|
170
|
+
return {
|
|
171
|
+
activeUserCount: 'number',
|
|
172
|
+
customAgentId: 'string',
|
|
173
|
+
dislikeCount: 'number',
|
|
174
|
+
endTime: 'number',
|
|
175
|
+
granularity: 'string',
|
|
176
|
+
likeCount: 'number',
|
|
177
|
+
sessionCount: 'number',
|
|
178
|
+
startTime: 'number',
|
|
179
|
+
trend: { 'type': 'array', 'itemType': DescribeCustomAgentMonitorMetricsResponseBodyDataTrend },
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
validate() {
|
|
184
|
+
if(Array.isArray(this.trend)) {
|
|
185
|
+
$dara.Model.validateArray(this.trend);
|
|
186
|
+
}
|
|
187
|
+
super.validate();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
constructor(map?: { [key: string]: any }) {
|
|
191
|
+
super(map);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export class DescribeCustomAgentMonitorMetricsResponseBody extends $dara.Model {
|
|
196
|
+
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* The response struct.
|
|
199
|
+
*/
|
|
200
|
+
data?: DescribeCustomAgentMonitorMetricsResponseBodyData;
|
|
201
|
+
/**
|
|
202
|
+
* @remarks
|
|
203
|
+
* The error code returned when the request fails.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* InvalidTid
|
|
207
|
+
*/
|
|
208
|
+
errorCode?: string;
|
|
209
|
+
/**
|
|
210
|
+
* @remarks
|
|
211
|
+
* The error message returned when the call fails.
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* Specified parameter Tid is not valid.
|
|
215
|
+
*/
|
|
216
|
+
errorMessage?: string;
|
|
217
|
+
/**
|
|
218
|
+
* @remarks
|
|
219
|
+
* Id of the request
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* E0D21075-CD3E-4D98-8264-FD8AD04A63B6
|
|
223
|
+
*/
|
|
224
|
+
requestId?: string;
|
|
225
|
+
/**
|
|
226
|
+
* @remarks
|
|
227
|
+
* Indicates whether the request is successful. Valid values:
|
|
228
|
+
*
|
|
229
|
+
* - **true**: The request is successful.
|
|
230
|
+
* - **false**: The request fails.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* true
|
|
234
|
+
*/
|
|
235
|
+
success?: boolean;
|
|
236
|
+
static names(): { [key: string]: string } {
|
|
237
|
+
return {
|
|
238
|
+
data: 'Data',
|
|
239
|
+
errorCode: 'ErrorCode',
|
|
240
|
+
errorMessage: 'ErrorMessage',
|
|
241
|
+
requestId: 'RequestId',
|
|
242
|
+
success: 'Success',
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
static types(): { [key: string]: any } {
|
|
247
|
+
return {
|
|
248
|
+
data: DescribeCustomAgentMonitorMetricsResponseBodyData,
|
|
249
|
+
errorCode: 'string',
|
|
250
|
+
errorMessage: 'string',
|
|
251
|
+
requestId: 'string',
|
|
252
|
+
success: 'boolean',
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
validate() {
|
|
257
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
258
|
+
(this.data as any).validate();
|
|
259
|
+
}
|
|
260
|
+
super.validate();
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
constructor(map?: { [key: string]: any }) {
|
|
264
|
+
super(map);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|