@alicloud/adb20211201 5.0.1 → 5.0.2
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 +6 -6
- package/dist/client.js +9 -6
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeAuditLogRecordsRequest.d.ts +37 -70
- package/dist/models/DescribeAuditLogRecordsRequest.js +2 -0
- package/dist/models/DescribeAuditLogRecordsRequest.js.map +1 -1
- package/dist/models/DescribeAuditLogRecordsResponseBody.d.ts +17 -19
- package/dist/models/DescribeAuditLogRecordsResponseBody.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -6
- package/src/models/DescribeAuditLogRecordsRequest.ts +39 -70
- package/src/models/DescribeAuditLogRecordsResponseBody.ts +17 -19
|
@@ -2,10 +2,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* <props="china">The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
5
|
+
* <props="china">The cluster ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
6
6
|
* <props="intl">The ID of the Data Lakehouse Edition cluster.
|
|
7
|
-
*
|
|
8
|
-
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/454250.html) operation to query the IDs of all clusters in a region.
|
|
7
|
+
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/454250.html) operation to query the cluster IDs of all clusters in a region.
|
|
9
8
|
*
|
|
10
9
|
* This parameter is required.
|
|
11
10
|
*
|
|
@@ -23,19 +22,18 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
23
22
|
DBName?: string;
|
|
24
23
|
/**
|
|
25
24
|
* @remarks
|
|
26
|
-
* The end of the time range to query.
|
|
27
|
-
*
|
|
25
|
+
* The end of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format.
|
|
28
26
|
* > - The end time must be later than the start time.
|
|
29
|
-
* >
|
|
30
|
-
* > - The time range cannot exceed 24 hours.
|
|
27
|
+
* > - The interval between the start time and the end time cannot exceed 24 hours.
|
|
31
28
|
*
|
|
32
29
|
* @example
|
|
33
30
|
* 2022-08-12T17:08Z
|
|
34
31
|
*/
|
|
35
32
|
endTime?: string;
|
|
33
|
+
engineType?: string;
|
|
36
34
|
/**
|
|
37
35
|
* @remarks
|
|
38
|
-
* The
|
|
36
|
+
* The IP address and port number of the client that executed the SQL statement.
|
|
39
37
|
*
|
|
40
38
|
* @example
|
|
41
39
|
* 100.104.XX.XX:43908
|
|
@@ -43,37 +41,23 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
43
41
|
hostAddress?: string;
|
|
44
42
|
/**
|
|
45
43
|
* @remarks
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* - **ScanTime**: the time taken for the data scan.
|
|
65
|
-
*
|
|
66
|
-
* - **PlanningTime**: the time taken to generate the execution plan.
|
|
67
|
-
*
|
|
68
|
-
* - **WallTime**: the total CPU time of all operators on all nodes.
|
|
69
|
-
*
|
|
70
|
-
* - **ProcessID**: the process ID.
|
|
71
|
-
*
|
|
72
|
-
* - `Type`: the sort order. Valid values:
|
|
73
|
-
*
|
|
74
|
-
* - **Desc**: descending order.
|
|
75
|
-
*
|
|
76
|
-
* - **Asc**: ascending order.
|
|
44
|
+
* The sorting order based on specified fields. The value is in JSON format and is an ordered JSON array. Compound sorting is performed in the order of the input array. The array contains the `Field` and `Type` fields. Example: `[{"Field":"ExecutionStartTime","Type":"Desc"},{"Field":"ScanRows","Type":"Asc"}]`.
|
|
45
|
+
* * `Field` specifies the field name for sorting. Valid values:
|
|
46
|
+
* * **HostAddress**: the address of the client that connects to the database.
|
|
47
|
+
* * **UserName**: the username.
|
|
48
|
+
* * **ExecutionStartTime**: the execution start time of the SQL statement.
|
|
49
|
+
* * **QueryTime**: the execution duration of the SQL statement.
|
|
50
|
+
* * **PeakMemoryUsage**: the peak memory usage during the execution of the SQL statement.
|
|
51
|
+
* * **ScanRows**: the number of rows scanned by the task with a data source.
|
|
52
|
+
* * **ScanSize**: the amount of scanned data.
|
|
53
|
+
* * **ScanTime**: the total time consumed for scanning data.
|
|
54
|
+
* * **PlanningTime**: the time consumed for generating the execution plan.
|
|
55
|
+
* * **WallTime**: the cumulative CPU time of all operators across all nodes in the query.
|
|
56
|
+
* * **ProcessID**: the process ID.
|
|
57
|
+
*
|
|
58
|
+
* * `Type` specifies the sorting type. Valid values:
|
|
59
|
+
* * **Desc**: descending order.
|
|
60
|
+
* * **Asc**: ascending order.
|
|
77
61
|
*
|
|
78
62
|
* @example
|
|
79
63
|
* [{"Field":"ExecuteTime","Type":"Desc"},{"Field":"HostAddress","Type":"Asc"}]
|
|
@@ -81,11 +65,9 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
81
65
|
order?: string;
|
|
82
66
|
/**
|
|
83
67
|
* @remarks
|
|
84
|
-
* The
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* - **desc**: descending order.
|
|
68
|
+
* The order in which the results are sorted by SQL execution time. Valid values:
|
|
69
|
+
* * **asc**: ascending order.
|
|
70
|
+
* * **desc**: descending order.
|
|
89
71
|
*
|
|
90
72
|
* @example
|
|
91
73
|
* asc
|
|
@@ -95,7 +77,7 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
95
77
|
ownerId?: number;
|
|
96
78
|
/**
|
|
97
79
|
* @remarks
|
|
98
|
-
* The page number. The value must be
|
|
80
|
+
* The page number. The value must be a positive integer that does not exceed the maximum value of the Integer data type. Default value: **1**.
|
|
99
81
|
*
|
|
100
82
|
* @example
|
|
101
83
|
* 1
|
|
@@ -103,14 +85,10 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
103
85
|
pageNumber?: number;
|
|
104
86
|
/**
|
|
105
87
|
* @remarks
|
|
106
|
-
* The page
|
|
107
|
-
*
|
|
88
|
+
* The number of entries per page. Valid values:
|
|
108
89
|
* - **10** (default)
|
|
109
|
-
*
|
|
110
90
|
* - **30**
|
|
111
|
-
*
|
|
112
91
|
* - **50**
|
|
113
|
-
*
|
|
114
92
|
* - **100**
|
|
115
93
|
*
|
|
116
94
|
* @example
|
|
@@ -122,12 +100,12 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
122
100
|
* A reserved parameter.
|
|
123
101
|
*
|
|
124
102
|
* @example
|
|
125
|
-
*
|
|
103
|
+
* None
|
|
126
104
|
*/
|
|
127
105
|
proxyUser?: string;
|
|
128
106
|
/**
|
|
129
107
|
* @remarks
|
|
130
|
-
*
|
|
108
|
+
* The keyword used to filter the returned results.
|
|
131
109
|
*
|
|
132
110
|
* @example
|
|
133
111
|
* adb
|
|
@@ -136,8 +114,7 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
136
114
|
/**
|
|
137
115
|
* @remarks
|
|
138
116
|
* The region ID.
|
|
139
|
-
*
|
|
140
|
-
* > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query available regions.
|
|
117
|
+
* > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query the region ID of the cluster.
|
|
141
118
|
*
|
|
142
119
|
* This parameter is required.
|
|
143
120
|
*
|
|
@@ -150,22 +127,15 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
150
127
|
/**
|
|
151
128
|
* @remarks
|
|
152
129
|
* The type of the SQL statement. Valid values:
|
|
153
|
-
*
|
|
154
130
|
* - **DELETE**
|
|
155
|
-
*
|
|
156
131
|
* - **SELECT**
|
|
157
|
-
*
|
|
158
132
|
* - **UPDATE**
|
|
159
|
-
*
|
|
160
133
|
* - **INSERT INTO SELECT**
|
|
161
|
-
*
|
|
162
134
|
* - **ALTER**
|
|
163
|
-
*
|
|
164
135
|
* - **DROP**
|
|
165
|
-
*
|
|
166
136
|
* - **CREATE**
|
|
167
137
|
*
|
|
168
|
-
* >
|
|
138
|
+
* > Only one type can be specified per request. If this parameter is left empty, all types are queried by default.
|
|
169
139
|
*
|
|
170
140
|
* @example
|
|
171
141
|
* SELECT
|
|
@@ -173,9 +143,8 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
173
143
|
sqlType?: string;
|
|
174
144
|
/**
|
|
175
145
|
* @remarks
|
|
176
|
-
* The
|
|
177
|
-
*
|
|
178
|
-
* > You can query SQL audit logs only when this feature is enabled. Logs are available for the last 30 days. If you disable and then re-enable SQL audit, only logs generated after the feature was re-enabled are returned.
|
|
146
|
+
* The beginning of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format.
|
|
147
|
+
* > SQL Audit Log entries can be queried only when SQL audit is enabled, and only entries from the last 30 days are supported. If SQL audit is disabled and then re-enabled, only entries recorded after re-enabling are available.
|
|
179
148
|
*
|
|
180
149
|
* @example
|
|
181
150
|
* 2022-08-12T04:17Z
|
|
@@ -183,11 +152,9 @@ export declare class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
183
152
|
startTime?: string;
|
|
184
153
|
/**
|
|
185
154
|
* @remarks
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* - **false**: The SQL statement failed.
|
|
155
|
+
* Specifies whether the SQL statement was executed successfully. Valid values:
|
|
156
|
+
* * **true**: The SQL statement was executed successfully.
|
|
157
|
+
* * **false**: The SQL statement failed to be executed.
|
|
191
158
|
*
|
|
192
159
|
* @example
|
|
193
160
|
* true
|
|
@@ -42,6 +42,7 @@ class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
42
42
|
DBClusterId: 'DBClusterId',
|
|
43
43
|
DBName: 'DBName',
|
|
44
44
|
endTime: 'EndTime',
|
|
45
|
+
engineType: 'EngineType',
|
|
45
46
|
hostAddress: 'HostAddress',
|
|
46
47
|
order: 'Order',
|
|
47
48
|
orderType: 'OrderType',
|
|
@@ -65,6 +66,7 @@ class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
65
66
|
DBClusterId: 'string',
|
|
66
67
|
DBName: 'string',
|
|
67
68
|
endTime: 'string',
|
|
69
|
+
engineType: 'string',
|
|
68
70
|
hostAddress: 'string',
|
|
69
71
|
order: 'string',
|
|
70
72
|
orderType: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescribeAuditLogRecordsRequest.js","sourceRoot":"","sources":["../../src/models/DescribeAuditLogRecordsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"DescribeAuditLogRecordsRequest.js","sourceRoot":"","sources":["../../src/models/DescribeAuditLogRecordsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAyK7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,aAAa;YAC1B,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,cAAc;YAC5B,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,cAAc;YAC5B,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,eAAe,EAAE,iBAAiB;YAClC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;YACtB,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;YACtB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,QAAQ;YAC9B,eAAe,EAAE,QAAQ;YACzB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlOD,wEAkOC"}
|
|
@@ -10,7 +10,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
10
10
|
connId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The name of the database on which the SQL statement
|
|
13
|
+
* The name of the database on which the SQL statement was executed.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* adb_demo
|
|
@@ -18,7 +18,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
18
18
|
DBName?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The execution start time of the SQL statement. The time is in the
|
|
21
|
+
* The execution start time of the SQL statement in local time. The time is in the yyyy-MM-dd HH:mm:ss format.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* 2022-08-12 10:10:00
|
|
@@ -26,7 +26,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
26
26
|
executeTime?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* The execution start time of the SQL statement,
|
|
29
|
+
* The execution start time of the SQL statement, in millisecond-precision UNIX timestamp.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* 1774600396584
|
|
@@ -34,7 +34,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
34
34
|
executeTimestamp?: number;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
*
|
|
37
|
+
* Indicates whether diagnostic information is included.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* true
|
|
@@ -45,7 +45,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
45
45
|
hasDiagnosticInfo?: boolean;
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The IP address and port of the client that
|
|
48
|
+
* The IP address and port number of the client that executed the SQL statement.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* 100.104.XX.XX:43908
|
|
@@ -53,7 +53,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
53
53
|
hostAddress?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The
|
|
56
|
+
* The task ID.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* 202106081752021720161662490345362390
|
|
@@ -61,7 +61,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
61
61
|
processID?: string;
|
|
62
62
|
/**
|
|
63
63
|
* @remarks
|
|
64
|
-
* The SQL statement.
|
|
64
|
+
* The details of the SQL statement.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* SELECT * FROM adb_hdfs_import_source
|
|
@@ -69,7 +69,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
69
69
|
SQLText?: string;
|
|
70
70
|
/**
|
|
71
71
|
* @remarks
|
|
72
|
-
* The SQL
|
|
72
|
+
* The type of the SQL statement.
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* SELECT
|
|
@@ -77,11 +77,9 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
77
77
|
SQLType?: string;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* Indicates whether the SQL statement
|
|
81
|
-
*
|
|
82
|
-
* - **
|
|
83
|
-
*
|
|
84
|
-
* - **false**: The SQL statement failed.
|
|
80
|
+
* Indicates whether the SQL statement was executed successfully. Valid values:
|
|
81
|
+
* - **true**: The SQL statement was executed successfully.
|
|
82
|
+
* - **false**: The SQL statement failed to be executed.
|
|
85
83
|
*
|
|
86
84
|
* @example
|
|
87
85
|
* true
|
|
@@ -89,7 +87,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
89
87
|
succeed?: string;
|
|
90
88
|
/**
|
|
91
89
|
* @remarks
|
|
92
|
-
* The execution duration of the SQL statement
|
|
90
|
+
* The execution duration of the SQL statement. Unit: milliseconds (ms).
|
|
93
91
|
*
|
|
94
92
|
* @example
|
|
95
93
|
* 216
|
|
@@ -97,7 +95,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
97
95
|
totalTime?: string;
|
|
98
96
|
/**
|
|
99
97
|
* @remarks
|
|
100
|
-
* The username
|
|
98
|
+
* The username that executed the SQL statement.
|
|
101
99
|
*
|
|
102
100
|
* @example
|
|
103
101
|
* test
|
|
@@ -117,7 +115,7 @@ export declare class DescribeAuditLogRecordsResponseBodyItems extends $dara.Mode
|
|
|
117
115
|
export declare class DescribeAuditLogRecordsResponseBody extends $dara.Model {
|
|
118
116
|
/**
|
|
119
117
|
* @remarks
|
|
120
|
-
* <props="china">The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
118
|
+
* <props="china">The cluster ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
121
119
|
* <props="intl">The ID of the Data Lakehouse Edition cluster.
|
|
122
120
|
*
|
|
123
121
|
* @example
|
|
@@ -126,7 +124,7 @@ export declare class DescribeAuditLogRecordsResponseBody extends $dara.Model {
|
|
|
126
124
|
DBClusterId?: string;
|
|
127
125
|
/**
|
|
128
126
|
* @remarks
|
|
129
|
-
*
|
|
127
|
+
* The list.
|
|
130
128
|
*/
|
|
131
129
|
items?: DescribeAuditLogRecordsResponseBodyItems[];
|
|
132
130
|
/**
|
|
@@ -139,7 +137,7 @@ export declare class DescribeAuditLogRecordsResponseBody extends $dara.Model {
|
|
|
139
137
|
pageNumber?: string;
|
|
140
138
|
/**
|
|
141
139
|
* @remarks
|
|
142
|
-
* The number of
|
|
140
|
+
* The number of entries per page.
|
|
143
141
|
*
|
|
144
142
|
* @example
|
|
145
143
|
* 10
|
|
@@ -155,7 +153,7 @@ export declare class DescribeAuditLogRecordsResponseBody extends $dara.Model {
|
|
|
155
153
|
requestId?: string;
|
|
156
154
|
/**
|
|
157
155
|
* @remarks
|
|
158
|
-
* The total number of
|
|
156
|
+
* The total number of entries.
|
|
159
157
|
*
|
|
160
158
|
* @example
|
|
161
159
|
* 6974
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescribeAuditLogRecordsResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeAuditLogRecordsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"DescribeAuditLogRecordsResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeAuditLogRecordsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAsGvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;YAC1B,gBAAgB,EAAE,kBAAkB;YACpC,iBAAiB,EAAE,mBAAmB;YACtC,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,QAAQ;YACrB,gBAAgB,EAAE,QAAQ;YAC1B,iBAAiB,EAAE,SAAS;YAC5B,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/ID,4FA+IC;AAED,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA+ClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,wCAAwC,EAAE;YAChF,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/ED,kFA+EC"}
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -4997,11 +4997,11 @@ export default class Client extends OpenApi {
|
|
|
4997
4997
|
}
|
|
4998
4998
|
|
|
4999
4999
|
/**
|
|
5000
|
-
*
|
|
5000
|
+
* Queries the SQL Audit Log of a cluster.
|
|
5001
5001
|
*
|
|
5002
5002
|
* @remarks
|
|
5003
|
-
* -
|
|
5004
|
-
* - For
|
|
5003
|
+
* - SQL Audit Log entries can be queried only when SQL audit is enabled, and only entries from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only entries recorded after re-enabling are available. SQL Audit Log does not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
|
|
5004
|
+
* - For the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
|
|
5005
5005
|
*
|
|
5006
5006
|
* @param request - DescribeAuditLogRecordsRequest
|
|
5007
5007
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5022,6 +5022,10 @@ export default class Client extends OpenApi {
|
|
|
5022
5022
|
query["EndTime"] = request.endTime;
|
|
5023
5023
|
}
|
|
5024
5024
|
|
|
5025
|
+
if (!$dara.isNull(request.engineType)) {
|
|
5026
|
+
query["EngineType"] = request.engineType;
|
|
5027
|
+
}
|
|
5028
|
+
|
|
5025
5029
|
if (!$dara.isNull(request.hostAddress)) {
|
|
5026
5030
|
query["HostAddress"] = request.hostAddress;
|
|
5027
5031
|
}
|
|
@@ -5104,11 +5108,11 @@ export default class Client extends OpenApi {
|
|
|
5104
5108
|
}
|
|
5105
5109
|
|
|
5106
5110
|
/**
|
|
5107
|
-
*
|
|
5111
|
+
* Queries the SQL Audit Log of a cluster.
|
|
5108
5112
|
*
|
|
5109
5113
|
* @remarks
|
|
5110
|
-
* -
|
|
5111
|
-
* - For
|
|
5114
|
+
* - SQL Audit Log entries can be queried only when SQL audit is enabled, and only entries from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only entries recorded after re-enabling are available. SQL Audit Log does not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
|
|
5115
|
+
* - For the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
|
|
5112
5116
|
*
|
|
5113
5117
|
* @param request - DescribeAuditLogRecordsRequest
|
|
5114
5118
|
* @returns DescribeAuditLogRecordsResponse
|
|
@@ -5,10 +5,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* <props="china">The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
8
|
+
* <props="china">The cluster ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
9
9
|
* <props="intl">The ID of the Data Lakehouse Edition cluster.
|
|
10
|
-
*
|
|
11
|
-
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/454250.html) operation to query the IDs of all clusters in a region.
|
|
10
|
+
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/454250.html) operation to query the cluster IDs of all clusters in a region.
|
|
12
11
|
*
|
|
13
12
|
* This parameter is required.
|
|
14
13
|
*
|
|
@@ -26,19 +25,18 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
26
25
|
DBName?: string;
|
|
27
26
|
/**
|
|
28
27
|
* @remarks
|
|
29
|
-
* The end of the time range to query.
|
|
30
|
-
*
|
|
28
|
+
* The end of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format.
|
|
31
29
|
* > - The end time must be later than the start time.
|
|
32
|
-
* >
|
|
33
|
-
* > - The time range cannot exceed 24 hours.
|
|
30
|
+
* > - The interval between the start time and the end time cannot exceed 24 hours.
|
|
34
31
|
*
|
|
35
32
|
* @example
|
|
36
33
|
* 2022-08-12T17:08Z
|
|
37
34
|
*/
|
|
38
35
|
endTime?: string;
|
|
36
|
+
engineType?: string;
|
|
39
37
|
/**
|
|
40
38
|
* @remarks
|
|
41
|
-
* The
|
|
39
|
+
* The IP address and port number of the client that executed the SQL statement.
|
|
42
40
|
*
|
|
43
41
|
* @example
|
|
44
42
|
* 100.104.XX.XX:43908
|
|
@@ -46,37 +44,23 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
46
44
|
hostAddress?: string;
|
|
47
45
|
/**
|
|
48
46
|
* @remarks
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* - **ScanTime**: the time taken for the data scan.
|
|
68
|
-
*
|
|
69
|
-
* - **PlanningTime**: the time taken to generate the execution plan.
|
|
70
|
-
*
|
|
71
|
-
* - **WallTime**: the total CPU time of all operators on all nodes.
|
|
72
|
-
*
|
|
73
|
-
* - **ProcessID**: the process ID.
|
|
74
|
-
*
|
|
75
|
-
* - `Type`: the sort order. Valid values:
|
|
76
|
-
*
|
|
77
|
-
* - **Desc**: descending order.
|
|
78
|
-
*
|
|
79
|
-
* - **Asc**: ascending order.
|
|
47
|
+
* The sorting order based on specified fields. The value is in JSON format and is an ordered JSON array. Compound sorting is performed in the order of the input array. The array contains the `Field` and `Type` fields. Example: `[{"Field":"ExecutionStartTime","Type":"Desc"},{"Field":"ScanRows","Type":"Asc"}]`.
|
|
48
|
+
* * `Field` specifies the field name for sorting. Valid values:
|
|
49
|
+
* * **HostAddress**: the address of the client that connects to the database.
|
|
50
|
+
* * **UserName**: the username.
|
|
51
|
+
* * **ExecutionStartTime**: the execution start time of the SQL statement.
|
|
52
|
+
* * **QueryTime**: the execution duration of the SQL statement.
|
|
53
|
+
* * **PeakMemoryUsage**: the peak memory usage during the execution of the SQL statement.
|
|
54
|
+
* * **ScanRows**: the number of rows scanned by the task with a data source.
|
|
55
|
+
* * **ScanSize**: the amount of scanned data.
|
|
56
|
+
* * **ScanTime**: the total time consumed for scanning data.
|
|
57
|
+
* * **PlanningTime**: the time consumed for generating the execution plan.
|
|
58
|
+
* * **WallTime**: the cumulative CPU time of all operators across all nodes in the query.
|
|
59
|
+
* * **ProcessID**: the process ID.
|
|
60
|
+
*
|
|
61
|
+
* * `Type` specifies the sorting type. Valid values:
|
|
62
|
+
* * **Desc**: descending order.
|
|
63
|
+
* * **Asc**: ascending order.
|
|
80
64
|
*
|
|
81
65
|
* @example
|
|
82
66
|
* [{"Field":"ExecuteTime","Type":"Desc"},{"Field":"HostAddress","Type":"Asc"}]
|
|
@@ -84,11 +68,9 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
84
68
|
order?: string;
|
|
85
69
|
/**
|
|
86
70
|
* @remarks
|
|
87
|
-
* The
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* - **desc**: descending order.
|
|
71
|
+
* The order in which the results are sorted by SQL execution time. Valid values:
|
|
72
|
+
* * **asc**: ascending order.
|
|
73
|
+
* * **desc**: descending order.
|
|
92
74
|
*
|
|
93
75
|
* @example
|
|
94
76
|
* asc
|
|
@@ -98,7 +80,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
98
80
|
ownerId?: number;
|
|
99
81
|
/**
|
|
100
82
|
* @remarks
|
|
101
|
-
* The page number. The value must be
|
|
83
|
+
* The page number. The value must be a positive integer that does not exceed the maximum value of the Integer data type. Default value: **1**.
|
|
102
84
|
*
|
|
103
85
|
* @example
|
|
104
86
|
* 1
|
|
@@ -106,14 +88,10 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
106
88
|
pageNumber?: number;
|
|
107
89
|
/**
|
|
108
90
|
* @remarks
|
|
109
|
-
* The page
|
|
110
|
-
*
|
|
91
|
+
* The number of entries per page. Valid values:
|
|
111
92
|
* - **10** (default)
|
|
112
|
-
*
|
|
113
93
|
* - **30**
|
|
114
|
-
*
|
|
115
94
|
* - **50**
|
|
116
|
-
*
|
|
117
95
|
* - **100**
|
|
118
96
|
*
|
|
119
97
|
* @example
|
|
@@ -125,12 +103,12 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
125
103
|
* A reserved parameter.
|
|
126
104
|
*
|
|
127
105
|
* @example
|
|
128
|
-
*
|
|
106
|
+
* None
|
|
129
107
|
*/
|
|
130
108
|
proxyUser?: string;
|
|
131
109
|
/**
|
|
132
110
|
* @remarks
|
|
133
|
-
*
|
|
111
|
+
* The keyword used to filter the returned results.
|
|
134
112
|
*
|
|
135
113
|
* @example
|
|
136
114
|
* adb
|
|
@@ -139,8 +117,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
139
117
|
/**
|
|
140
118
|
* @remarks
|
|
141
119
|
* The region ID.
|
|
142
|
-
*
|
|
143
|
-
* > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query available regions.
|
|
120
|
+
* > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query the region ID of the cluster.
|
|
144
121
|
*
|
|
145
122
|
* This parameter is required.
|
|
146
123
|
*
|
|
@@ -153,22 +130,15 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
153
130
|
/**
|
|
154
131
|
* @remarks
|
|
155
132
|
* The type of the SQL statement. Valid values:
|
|
156
|
-
*
|
|
157
133
|
* - **DELETE**
|
|
158
|
-
*
|
|
159
134
|
* - **SELECT**
|
|
160
|
-
*
|
|
161
135
|
* - **UPDATE**
|
|
162
|
-
*
|
|
163
136
|
* - **INSERT INTO SELECT**
|
|
164
|
-
*
|
|
165
137
|
* - **ALTER**
|
|
166
|
-
*
|
|
167
138
|
* - **DROP**
|
|
168
|
-
*
|
|
169
139
|
* - **CREATE**
|
|
170
140
|
*
|
|
171
|
-
* >
|
|
141
|
+
* > Only one type can be specified per request. If this parameter is left empty, all types are queried by default.
|
|
172
142
|
*
|
|
173
143
|
* @example
|
|
174
144
|
* SELECT
|
|
@@ -176,9 +146,8 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
176
146
|
sqlType?: string;
|
|
177
147
|
/**
|
|
178
148
|
* @remarks
|
|
179
|
-
* The
|
|
180
|
-
*
|
|
181
|
-
* > You can query SQL audit logs only when this feature is enabled. Logs are available for the last 30 days. If you disable and then re-enable SQL audit, only logs generated after the feature was re-enabled are returned.
|
|
149
|
+
* The beginning of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format.
|
|
150
|
+
* > SQL Audit Log entries can be queried only when SQL audit is enabled, and only entries from the last 30 days are supported. If SQL audit is disabled and then re-enabled, only entries recorded after re-enabling are available.
|
|
182
151
|
*
|
|
183
152
|
* @example
|
|
184
153
|
* 2022-08-12T04:17Z
|
|
@@ -186,11 +155,9 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
186
155
|
startTime?: string;
|
|
187
156
|
/**
|
|
188
157
|
* @remarks
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* - **false**: The SQL statement failed.
|
|
158
|
+
* Specifies whether the SQL statement was executed successfully. Valid values:
|
|
159
|
+
* * **true**: The SQL statement was executed successfully.
|
|
160
|
+
* * **false**: The SQL statement failed to be executed.
|
|
194
161
|
*
|
|
195
162
|
* @example
|
|
196
163
|
* true
|
|
@@ -209,6 +176,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
209
176
|
DBClusterId: 'DBClusterId',
|
|
210
177
|
DBName: 'DBName',
|
|
211
178
|
endTime: 'EndTime',
|
|
179
|
+
engineType: 'EngineType',
|
|
212
180
|
hostAddress: 'HostAddress',
|
|
213
181
|
order: 'Order',
|
|
214
182
|
orderType: 'OrderType',
|
|
@@ -233,6 +201,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
|
|
|
233
201
|
DBClusterId: 'string',
|
|
234
202
|
DBName: 'string',
|
|
235
203
|
endTime: 'string',
|
|
204
|
+
engineType: 'string',
|
|
236
205
|
hostAddress: 'string',
|
|
237
206
|
order: 'string',
|
|
238
207
|
orderType: 'string',
|