@alicloud/das20200116 3.0.0 → 3.1.1
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 +15 -0
- package/dist/client.js +114 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateSqlLogTaskRequest.d.ts +4 -0
- package/dist/models/CreateSqlLogTaskRequest.js.map +1 -1
- package/dist/models/DescribeAuditLogsRequest.d.ts +139 -0
- package/dist/models/DescribeAuditLogsRequest.js +108 -0
- package/dist/models/DescribeAuditLogsRequest.js.map +1 -0
- package/dist/models/DescribeAuditLogsResponse.d.ts +19 -0
- package/dist/models/DescribeAuditLogsResponse.js +69 -0
- package/dist/models/DescribeAuditLogsResponse.js.map +1 -0
- package/dist/models/DescribeAuditLogsResponseBody.d.ts +199 -0
- package/dist/models/DescribeAuditLogsResponseBody.js +152 -0
- package/dist/models/DescribeAuditLogsResponseBody.js.map +1 -0
- package/dist/models/DescribeSlowLogRecordsResponseBody.d.ts +1 -0
- package/dist/models/DescribeSlowLogRecordsResponseBody.js +2 -0
- package/dist/models/DescribeSlowLogRecordsResponseBody.js.map +1 -1
- package/dist/models/DescribeSqlLogRecordsRequest.d.ts +4 -0
- package/dist/models/DescribeSqlLogRecordsRequest.js.map +1 -1
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +20 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +142 -0
- package/src/models/CreateSqlLogTaskRequest.ts +4 -0
- package/src/models/DescribeAuditLogsRequest.ts +202 -0
- package/src/models/DescribeAuditLogsResponse.ts +40 -0
- package/src/models/DescribeAuditLogsResponseBody.ts +297 -0
- package/src/models/DescribeSlowLogRecordsResponseBody.ts +3 -0
- package/src/models/DescribeSqlLogRecordsRequest.ts +4 -0
- package/src/models/model.ts +4 -0
package/src/client.ts
CHANGED
|
@@ -1225,6 +1225,148 @@ export default class Client extends OpenApi {
|
|
|
1225
1225
|
return await this.deleteStopGatewayWithOptions(request, runtime);
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* 获取审计告警日志
|
|
1230
|
+
*
|
|
1231
|
+
* @param request - DescribeAuditLogsRequest
|
|
1232
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1233
|
+
* @returns DescribeAuditLogsResponse
|
|
1234
|
+
*/
|
|
1235
|
+
async describeAuditLogsWithOptions(request: $_model.DescribeAuditLogsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAuditLogsResponse> {
|
|
1236
|
+
request.validate();
|
|
1237
|
+
let query = { };
|
|
1238
|
+
if (!$dara.isNull(request.asyncRequestId)) {
|
|
1239
|
+
query["AsyncRequestId"] = request.asyncRequestId;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
if (!$dara.isNull(request.clientIp)) {
|
|
1243
|
+
query["ClientIp"] = request.clientIp;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
if (!$dara.isNull(request.clientUa)) {
|
|
1247
|
+
query["ClientUa"] = request.clientUa;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
if (!$dara.isNull(request.currentPage)) {
|
|
1251
|
+
query["CurrentPage"] = request.currentPage;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
if (!$dara.isNull(request.databaseName)) {
|
|
1255
|
+
query["DatabaseName"] = request.databaseName;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
if (!$dara.isNull(request.effectRowRange)) {
|
|
1259
|
+
query["EffectRowRange"] = request.effectRowRange;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
if (!$dara.isNull(request.endTime)) {
|
|
1263
|
+
query["EndTime"] = request.endTime;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
if (!$dara.isNull(request.executeTimeRange)) {
|
|
1267
|
+
query["ExecuteTimeRange"] = request.executeTimeRange;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
if (!$dara.isNull(request.instanceName)) {
|
|
1271
|
+
query["InstanceName"] = request.instanceName;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
if (!$dara.isNull(request.ipType)) {
|
|
1275
|
+
query["IpType"] = request.ipType;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
if (!$dara.isNull(request.lang)) {
|
|
1279
|
+
query["Lang"] = request.lang;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
if (!$dara.isNull(request.loadWhiteList)) {
|
|
1283
|
+
query["LoadWhiteList"] = request.loadWhiteList;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
if (!$dara.isNull(request.logSource)) {
|
|
1287
|
+
query["LogSource"] = request.logSource;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
if (!$dara.isNull(request.operateType)) {
|
|
1291
|
+
query["OperateType"] = request.operateType;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
if (!$dara.isNull(request.ossObjectKey)) {
|
|
1295
|
+
query["OssObjectKey"] = request.ossObjectKey;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
1299
|
+
query["PageSize"] = request.pageSize;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
if (!$dara.isNull(request.productCode)) {
|
|
1303
|
+
query["ProductCode"] = request.productCode;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
if (!$dara.isNull(request.productId)) {
|
|
1307
|
+
query["ProductId"] = request.productId;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
if (!$dara.isNull(request.ruleAggQuery)) {
|
|
1311
|
+
query["RuleAggQuery"] = request.ruleAggQuery;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
if (!$dara.isNull(request.ruleCategory)) {
|
|
1315
|
+
query["RuleCategory"] = request.ruleCategory;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
if (!$dara.isNull(request.ruleID)) {
|
|
1319
|
+
query["RuleID"] = request.ruleID;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
if (!$dara.isNull(request.ruleId)) {
|
|
1323
|
+
query["RuleId"] = request.ruleId;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
if (!$dara.isNull(request.ruleName)) {
|
|
1327
|
+
query["RuleName"] = request.ruleName;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
if (!$dara.isNull(request.sqlText)) {
|
|
1331
|
+
query["SqlText"] = request.sqlText;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
if (!$dara.isNull(request.startTime)) {
|
|
1335
|
+
query["StartTime"] = request.startTime;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
if (!$dara.isNull(request.userName)) {
|
|
1339
|
+
query["UserName"] = request.userName;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1343
|
+
query: OpenApiUtil.query(query),
|
|
1344
|
+
});
|
|
1345
|
+
let params = new $OpenApiUtil.Params({
|
|
1346
|
+
action: "DescribeAuditLogs",
|
|
1347
|
+
version: "2020-01-16",
|
|
1348
|
+
protocol: "HTTPS",
|
|
1349
|
+
pathname: "/",
|
|
1350
|
+
method: "POST",
|
|
1351
|
+
authType: "AK",
|
|
1352
|
+
style: "RPC",
|
|
1353
|
+
reqBodyType: "formData",
|
|
1354
|
+
bodyType: "json",
|
|
1355
|
+
});
|
|
1356
|
+
return $dara.cast<$_model.DescribeAuditLogsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAuditLogsResponse({}));
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* 获取审计告警日志
|
|
1361
|
+
*
|
|
1362
|
+
* @param request - DescribeAuditLogsRequest
|
|
1363
|
+
* @returns DescribeAuditLogsResponse
|
|
1364
|
+
*/
|
|
1365
|
+
async describeAuditLogs(request: $_model.DescribeAuditLogsRequest): Promise<$_model.DescribeAuditLogsResponse> {
|
|
1366
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1367
|
+
return await this.describeAuditLogsWithOptions(request, runtime);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1228
1370
|
/**
|
|
1229
1371
|
* Queries the configurations of the auto scaling feature for an instance.
|
|
1230
1372
|
*
|
|
@@ -49,6 +49,8 @@ export class CreateSqlLogTaskRequest extends $dara.Model {
|
|
|
49
49
|
* @remarks
|
|
50
50
|
* The end of the time range to query. Specify the time in the UNIX timestamp format. Unit: milliseconds.
|
|
51
51
|
*
|
|
52
|
+
* This parameter is required.
|
|
53
|
+
*
|
|
52
54
|
* @example
|
|
53
55
|
* 1608888296000
|
|
54
56
|
*/
|
|
@@ -99,6 +101,8 @@ export class CreateSqlLogTaskRequest extends $dara.Model {
|
|
|
99
101
|
* @remarks
|
|
100
102
|
* The beginning of the time range to query. Specify the time in the UNIX timestamp format. Unit: milliseconds.
|
|
101
103
|
*
|
|
104
|
+
* This parameter is required.
|
|
105
|
+
*
|
|
102
106
|
* @example
|
|
103
107
|
* 1596177993000
|
|
104
108
|
*/
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAuditLogsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 2c548e83-1473-4fda-b3dc-5a189074ead5
|
|
9
|
+
*/
|
|
10
|
+
asyncRequestId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 11.26.118.7
|
|
14
|
+
*/
|
|
15
|
+
clientIp?: string;
|
|
16
|
+
clientUa?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* 3
|
|
20
|
+
*/
|
|
21
|
+
currentPage?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* TestDB
|
|
25
|
+
*/
|
|
26
|
+
databaseName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* in[1 33]
|
|
30
|
+
*/
|
|
31
|
+
effectRowRange?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @example
|
|
34
|
+
* 15682887991222
|
|
35
|
+
*/
|
|
36
|
+
endTime?: number;
|
|
37
|
+
/**
|
|
38
|
+
* @example
|
|
39
|
+
* in[1000 2000]
|
|
40
|
+
*/
|
|
41
|
+
executeTimeRange?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* rm-t4ni1cezz5y3xxxx
|
|
45
|
+
*/
|
|
46
|
+
instanceName?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* aliyun
|
|
50
|
+
*/
|
|
51
|
+
ipType?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* zh-CN
|
|
55
|
+
*/
|
|
56
|
+
lang?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* false
|
|
60
|
+
*/
|
|
61
|
+
loadWhiteList?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* SLOW_SQL
|
|
65
|
+
*/
|
|
66
|
+
logSource?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @example
|
|
69
|
+
* Insert
|
|
70
|
+
*/
|
|
71
|
+
operateType?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @example
|
|
74
|
+
* N.A
|
|
75
|
+
*/
|
|
76
|
+
ossObjectKey?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @example
|
|
79
|
+
* 30
|
|
80
|
+
*/
|
|
81
|
+
pageSize?: number;
|
|
82
|
+
/**
|
|
83
|
+
* @example
|
|
84
|
+
* RDS
|
|
85
|
+
*/
|
|
86
|
+
productCode?: string;
|
|
87
|
+
/**
|
|
88
|
+
* @example
|
|
89
|
+
* 5
|
|
90
|
+
*/
|
|
91
|
+
productId?: number;
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* true
|
|
95
|
+
*/
|
|
96
|
+
ruleAggQuery?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* @example
|
|
99
|
+
* 10
|
|
100
|
+
*/
|
|
101
|
+
ruleCategory?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* 9953411
|
|
105
|
+
*/
|
|
106
|
+
ruleID?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @example
|
|
109
|
+
* 867028
|
|
110
|
+
*/
|
|
111
|
+
ruleId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @example
|
|
114
|
+
* test_rule
|
|
115
|
+
*/
|
|
116
|
+
ruleName?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @example
|
|
119
|
+
* SELECT * FROM test where name = \\"das\\"
|
|
120
|
+
*/
|
|
121
|
+
sqlText?: string;
|
|
122
|
+
/**
|
|
123
|
+
* @example
|
|
124
|
+
* 1608888296000
|
|
125
|
+
*/
|
|
126
|
+
startTime?: number;
|
|
127
|
+
/**
|
|
128
|
+
* @example
|
|
129
|
+
* admin
|
|
130
|
+
*/
|
|
131
|
+
userName?: string;
|
|
132
|
+
static names(): { [key: string]: string } {
|
|
133
|
+
return {
|
|
134
|
+
asyncRequestId: 'AsyncRequestId',
|
|
135
|
+
clientIp: 'ClientIp',
|
|
136
|
+
clientUa: 'ClientUa',
|
|
137
|
+
currentPage: 'CurrentPage',
|
|
138
|
+
databaseName: 'DatabaseName',
|
|
139
|
+
effectRowRange: 'EffectRowRange',
|
|
140
|
+
endTime: 'EndTime',
|
|
141
|
+
executeTimeRange: 'ExecuteTimeRange',
|
|
142
|
+
instanceName: 'InstanceName',
|
|
143
|
+
ipType: 'IpType',
|
|
144
|
+
lang: 'Lang',
|
|
145
|
+
loadWhiteList: 'LoadWhiteList',
|
|
146
|
+
logSource: 'LogSource',
|
|
147
|
+
operateType: 'OperateType',
|
|
148
|
+
ossObjectKey: 'OssObjectKey',
|
|
149
|
+
pageSize: 'PageSize',
|
|
150
|
+
productCode: 'ProductCode',
|
|
151
|
+
productId: 'ProductId',
|
|
152
|
+
ruleAggQuery: 'RuleAggQuery',
|
|
153
|
+
ruleCategory: 'RuleCategory',
|
|
154
|
+
ruleID: 'RuleID',
|
|
155
|
+
ruleId: 'RuleId',
|
|
156
|
+
ruleName: 'RuleName',
|
|
157
|
+
sqlText: 'SqlText',
|
|
158
|
+
startTime: 'StartTime',
|
|
159
|
+
userName: 'UserName',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
static types(): { [key: string]: any } {
|
|
164
|
+
return {
|
|
165
|
+
asyncRequestId: 'string',
|
|
166
|
+
clientIp: 'string',
|
|
167
|
+
clientUa: 'string',
|
|
168
|
+
currentPage: 'number',
|
|
169
|
+
databaseName: 'string',
|
|
170
|
+
effectRowRange: 'string',
|
|
171
|
+
endTime: 'number',
|
|
172
|
+
executeTimeRange: 'string',
|
|
173
|
+
instanceName: 'string',
|
|
174
|
+
ipType: 'string',
|
|
175
|
+
lang: 'string',
|
|
176
|
+
loadWhiteList: 'boolean',
|
|
177
|
+
logSource: 'string',
|
|
178
|
+
operateType: 'string',
|
|
179
|
+
ossObjectKey: 'string',
|
|
180
|
+
pageSize: 'number',
|
|
181
|
+
productCode: 'string',
|
|
182
|
+
productId: 'number',
|
|
183
|
+
ruleAggQuery: 'boolean',
|
|
184
|
+
ruleCategory: 'string',
|
|
185
|
+
ruleID: 'string',
|
|
186
|
+
ruleId: 'string',
|
|
187
|
+
ruleName: 'string',
|
|
188
|
+
sqlText: 'string',
|
|
189
|
+
startTime: 'number',
|
|
190
|
+
userName: 'string',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
validate() {
|
|
195
|
+
super.validate();
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
constructor(map?: { [key: string]: any }) {
|
|
199
|
+
super(map);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAuditLogsResponseBody } from "./DescribeAuditLogsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAuditLogsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeAuditLogsResponseBody;
|
|
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: DescribeAuditLogsResponseBody,
|
|
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,297 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAuditLogsResponseBodyItems extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 100.104.16.251
|
|
9
|
+
*/
|
|
10
|
+
clientIp?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 53815
|
|
14
|
+
*/
|
|
15
|
+
clientPort?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* mysql
|
|
19
|
+
*/
|
|
20
|
+
clientUa?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* ds
|
|
24
|
+
*/
|
|
25
|
+
columnName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 1536751124000
|
|
29
|
+
*/
|
|
30
|
+
creationTime?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* chngc_b2b_migration_sh
|
|
34
|
+
*/
|
|
35
|
+
databaseName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* 10
|
|
39
|
+
*/
|
|
40
|
+
effectRow?: number;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* 1
|
|
44
|
+
*/
|
|
45
|
+
executeStatus?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* 1751870592000
|
|
49
|
+
*/
|
|
50
|
+
executeTime?: number;
|
|
51
|
+
id?: number;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* True
|
|
55
|
+
*/
|
|
56
|
+
inWhiteList?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* 2
|
|
60
|
+
*/
|
|
61
|
+
instanceAuditStatus?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* instance dscription
|
|
65
|
+
*/
|
|
66
|
+
instanceDescription?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @example
|
|
69
|
+
* test-instance-003
|
|
70
|
+
*/
|
|
71
|
+
instanceName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @example
|
|
74
|
+
* aliyun
|
|
75
|
+
*/
|
|
76
|
+
ipType?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @example
|
|
79
|
+
* SLOW_SQL
|
|
80
|
+
*/
|
|
81
|
+
logSource?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @example
|
|
84
|
+
* 1751870592000
|
|
85
|
+
*/
|
|
86
|
+
logTime?: number;
|
|
87
|
+
/**
|
|
88
|
+
* @example
|
|
89
|
+
* success
|
|
90
|
+
*/
|
|
91
|
+
message?: string;
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* Drop
|
|
95
|
+
*/
|
|
96
|
+
operateType?: string;
|
|
97
|
+
ossObjectKey?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @example
|
|
100
|
+
* test01
|
|
101
|
+
*/
|
|
102
|
+
packageName?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @example
|
|
105
|
+
* RDS
|
|
106
|
+
*/
|
|
107
|
+
productCode?: string;
|
|
108
|
+
/**
|
|
109
|
+
* @example
|
|
110
|
+
* 5
|
|
111
|
+
*/
|
|
112
|
+
productId?: number;
|
|
113
|
+
/**
|
|
114
|
+
* @example
|
|
115
|
+
* 10
|
|
116
|
+
*/
|
|
117
|
+
ruleCategory?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @example
|
|
120
|
+
* 9953411
|
|
121
|
+
*/
|
|
122
|
+
ruleId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @example
|
|
125
|
+
* name
|
|
126
|
+
*/
|
|
127
|
+
ruleName?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @example
|
|
130
|
+
* select * from test03
|
|
131
|
+
*/
|
|
132
|
+
sqlText?: string;
|
|
133
|
+
/**
|
|
134
|
+
* @example
|
|
135
|
+
* it_table
|
|
136
|
+
*/
|
|
137
|
+
tableName?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @example
|
|
140
|
+
* 19********94
|
|
141
|
+
*/
|
|
142
|
+
userId?: string;
|
|
143
|
+
/**
|
|
144
|
+
* @example
|
|
145
|
+
* admin
|
|
146
|
+
*/
|
|
147
|
+
userName?: string;
|
|
148
|
+
/**
|
|
149
|
+
* @example
|
|
150
|
+
* 1
|
|
151
|
+
*/
|
|
152
|
+
warnLevel?: string;
|
|
153
|
+
warnLevelName?: string;
|
|
154
|
+
static names(): { [key: string]: string } {
|
|
155
|
+
return {
|
|
156
|
+
clientIp: 'ClientIp',
|
|
157
|
+
clientPort: 'ClientPort',
|
|
158
|
+
clientUa: 'ClientUa',
|
|
159
|
+
columnName: 'ColumnName',
|
|
160
|
+
creationTime: 'CreationTime',
|
|
161
|
+
databaseName: 'DatabaseName',
|
|
162
|
+
effectRow: 'EffectRow',
|
|
163
|
+
executeStatus: 'ExecuteStatus',
|
|
164
|
+
executeTime: 'ExecuteTime',
|
|
165
|
+
id: 'Id',
|
|
166
|
+
inWhiteList: 'InWhiteList',
|
|
167
|
+
instanceAuditStatus: 'InstanceAuditStatus',
|
|
168
|
+
instanceDescription: 'InstanceDescription',
|
|
169
|
+
instanceName: 'InstanceName',
|
|
170
|
+
ipType: 'IpType',
|
|
171
|
+
logSource: 'LogSource',
|
|
172
|
+
logTime: 'LogTime',
|
|
173
|
+
message: 'Message',
|
|
174
|
+
operateType: 'OperateType',
|
|
175
|
+
ossObjectKey: 'OssObjectKey',
|
|
176
|
+
packageName: 'PackageName',
|
|
177
|
+
productCode: 'ProductCode',
|
|
178
|
+
productId: 'ProductId',
|
|
179
|
+
ruleCategory: 'RuleCategory',
|
|
180
|
+
ruleId: 'RuleId',
|
|
181
|
+
ruleName: 'RuleName',
|
|
182
|
+
sqlText: 'SqlText',
|
|
183
|
+
tableName: 'TableName',
|
|
184
|
+
userId: 'UserId',
|
|
185
|
+
userName: 'UserName',
|
|
186
|
+
warnLevel: 'WarnLevel',
|
|
187
|
+
warnLevelName: 'WarnLevelName',
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
static types(): { [key: string]: any } {
|
|
192
|
+
return {
|
|
193
|
+
clientIp: 'string',
|
|
194
|
+
clientPort: 'string',
|
|
195
|
+
clientUa: 'string',
|
|
196
|
+
columnName: 'string',
|
|
197
|
+
creationTime: 'number',
|
|
198
|
+
databaseName: 'string',
|
|
199
|
+
effectRow: 'number',
|
|
200
|
+
executeStatus: 'number',
|
|
201
|
+
executeTime: 'number',
|
|
202
|
+
id: 'number',
|
|
203
|
+
inWhiteList: 'boolean',
|
|
204
|
+
instanceAuditStatus: 'string',
|
|
205
|
+
instanceDescription: 'string',
|
|
206
|
+
instanceName: 'string',
|
|
207
|
+
ipType: 'string',
|
|
208
|
+
logSource: 'string',
|
|
209
|
+
logTime: 'number',
|
|
210
|
+
message: 'string',
|
|
211
|
+
operateType: 'string',
|
|
212
|
+
ossObjectKey: 'string',
|
|
213
|
+
packageName: 'string',
|
|
214
|
+
productCode: 'string',
|
|
215
|
+
productId: 'number',
|
|
216
|
+
ruleCategory: 'string',
|
|
217
|
+
ruleId: 'string',
|
|
218
|
+
ruleName: 'string',
|
|
219
|
+
sqlText: 'string',
|
|
220
|
+
tableName: 'string',
|
|
221
|
+
userId: 'string',
|
|
222
|
+
userName: 'string',
|
|
223
|
+
warnLevel: 'string',
|
|
224
|
+
warnLevelName: 'string',
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
validate() {
|
|
229
|
+
super.validate();
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
constructor(map?: { [key: string]: any }) {
|
|
233
|
+
super(map);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export class DescribeAuditLogsResponseBody extends $dara.Model {
|
|
238
|
+
/**
|
|
239
|
+
* @example
|
|
240
|
+
* 3926fba5-1774-44f4-af2d-ac7b33e86c3b
|
|
241
|
+
*/
|
|
242
|
+
asyncRequestId?: string;
|
|
243
|
+
/**
|
|
244
|
+
* @example
|
|
245
|
+
* 1
|
|
246
|
+
*/
|
|
247
|
+
currentPage?: number;
|
|
248
|
+
items?: DescribeAuditLogsResponseBodyItems[];
|
|
249
|
+
/**
|
|
250
|
+
* @example
|
|
251
|
+
* 10
|
|
252
|
+
*/
|
|
253
|
+
pageSize?: number;
|
|
254
|
+
/**
|
|
255
|
+
* @example
|
|
256
|
+
* A7021857-AFD9-5AD6-979D-AA7DFC5AFADF
|
|
257
|
+
*/
|
|
258
|
+
requestId?: string;
|
|
259
|
+
/**
|
|
260
|
+
* @example
|
|
261
|
+
* 12
|
|
262
|
+
*/
|
|
263
|
+
totalCount?: number;
|
|
264
|
+
static names(): { [key: string]: string } {
|
|
265
|
+
return {
|
|
266
|
+
asyncRequestId: 'AsyncRequestId',
|
|
267
|
+
currentPage: 'CurrentPage',
|
|
268
|
+
items: 'Items',
|
|
269
|
+
pageSize: 'PageSize',
|
|
270
|
+
requestId: 'RequestId',
|
|
271
|
+
totalCount: 'TotalCount',
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
static types(): { [key: string]: any } {
|
|
276
|
+
return {
|
|
277
|
+
asyncRequestId: 'string',
|
|
278
|
+
currentPage: 'number',
|
|
279
|
+
items: { 'type': 'array', 'itemType': DescribeAuditLogsResponseBodyItems },
|
|
280
|
+
pageSize: 'number',
|
|
281
|
+
requestId: 'string',
|
|
282
|
+
totalCount: 'number',
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
validate() {
|
|
287
|
+
if(Array.isArray(this.items)) {
|
|
288
|
+
$dara.Model.validateArray(this.items);
|
|
289
|
+
}
|
|
290
|
+
super.validate();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
constructor(map?: { [key: string]: any }) {
|
|
294
|
+
super(map);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|