@alicloud/cloud-siem20220616 6.1.0 → 6.2.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.
@@ -0,0 +1,436 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetDataStorageResponseBodyDataNormalizationLogStores extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the Logstore that stores normalized data.
9
+ *
10
+ * @example
11
+ * vulnerability-activity
12
+ */
13
+ logStoreName?: string;
14
+ /**
15
+ * @remarks
16
+ * The storage duration of normalized data.
17
+ *
18
+ * @example
19
+ * 180
20
+ */
21
+ logStoreTtl?: number;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ logStoreName: 'LogStoreName',
25
+ logStoreTtl: 'LogStoreTtl',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ logStoreName: 'string',
32
+ logStoreTtl: 'number',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class GetDataStorageResponseBodyDataNormalizationLogViews extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The log type of the normalized log.
49
+ *
50
+ * @example
51
+ * API security risk log
52
+ */
53
+ activityName?: string;
54
+ /**
55
+ * @remarks
56
+ * The category of the normalized log.
57
+ *
58
+ * @example
59
+ * Security Category
60
+ */
61
+ categoryName?: string;
62
+ /**
63
+ * @remarks
64
+ * The number of times the normalized dataset is referenced in the threat analysis access center.
65
+ *
66
+ * @example
67
+ * 3
68
+ */
69
+ detectionRuleReferenceCount?: number;
70
+ /**
71
+ * @remarks
72
+ * The product IDs in the threat analysis access center.
73
+ */
74
+ detectionRuleReferenceProductIds?: string[];
75
+ /**
76
+ * @remarks
77
+ * JSON Array ["key":"product_code", "value":"ctdr"]
78
+ *
79
+ * @example
80
+ * [{\\"SCHEMA\\":\\"AZURE_ACTIVE_DIRECTORY_AUDIT_ACTIVITY\\"}]
81
+ */
82
+ logSearchConditions?: string;
83
+ /**
84
+ * @remarks
85
+ * The Logstore where threat analysis stores normalized logs.
86
+ *
87
+ * @example
88
+ * risk-activity
89
+ */
90
+ logStoreName?: string;
91
+ /**
92
+ * @remarks
93
+ * Indicates whether the normalized dataset exists. Valid values:
94
+ * - true: The dataset exists.
95
+ * - false: The dataset does not exist.
96
+ *
97
+ * @example
98
+ * true
99
+ */
100
+ logViewExisted?: boolean;
101
+ /**
102
+ * @remarks
103
+ * The name of the normalized dataset.
104
+ *
105
+ * @example
106
+ * risk_activity
107
+ */
108
+ logViewName?: string;
109
+ static names(): { [key: string]: string } {
110
+ return {
111
+ activityName: 'ActivityName',
112
+ categoryName: 'CategoryName',
113
+ detectionRuleReferenceCount: 'DetectionRuleReferenceCount',
114
+ detectionRuleReferenceProductIds: 'DetectionRuleReferenceProductIds',
115
+ logSearchConditions: 'LogSearchConditions',
116
+ logStoreName: 'LogStoreName',
117
+ logViewExisted: 'LogViewExisted',
118
+ logViewName: 'LogViewName',
119
+ };
120
+ }
121
+
122
+ static types(): { [key: string]: any } {
123
+ return {
124
+ activityName: 'string',
125
+ categoryName: 'string',
126
+ detectionRuleReferenceCount: 'number',
127
+ detectionRuleReferenceProductIds: { 'type': 'array', 'itemType': 'string' },
128
+ logSearchConditions: 'string',
129
+ logStoreName: 'string',
130
+ logViewExisted: 'boolean',
131
+ logViewName: 'string',
132
+ };
133
+ }
134
+
135
+ validate() {
136
+ if(Array.isArray(this.detectionRuleReferenceProductIds)) {
137
+ $dara.Model.validateArray(this.detectionRuleReferenceProductIds);
138
+ }
139
+ super.validate();
140
+ }
141
+
142
+ constructor(map?: { [key: string]: any }) {
143
+ super(map);
144
+ }
145
+ }
146
+
147
+ export class GetDataStorageResponseBodyDataSasLogStores extends $dara.Model {
148
+ /**
149
+ * @remarks
150
+ * The log code.
151
+ *
152
+ * @example
153
+ * sas-net-block
154
+ */
155
+ logCode?: string;
156
+ /**
157
+ * @remarks
158
+ * The group to which the log belongs. Valid values:
159
+ * - host: host logs.
160
+ * - security: security logs.
161
+ *
162
+ * @example
163
+ * host
164
+ */
165
+ logDeliveryGroup?: string;
166
+ /**
167
+ * @remarks
168
+ * Indicates whether log delivery is allowed. Log delivery is not available if the service is not purchased. Valid values:
169
+ * - allow: Allowed.
170
+ * - deny: Not allowed.
171
+ *
172
+ * @example
173
+ * deny
174
+ */
175
+ logDeliveryPermission?: string;
176
+ /**
177
+ * @remarks
178
+ * The log delivery status. Valid values:
179
+ * - enable: Log delivery is enabled.
180
+ * - disable: Log delivery is disabled.
181
+ *
182
+ * @example
183
+ * enable
184
+ */
185
+ logDeliveryStatus?: string;
186
+ /**
187
+ * @remarks
188
+ * The time of the most recent log delivery operation.
189
+ *
190
+ * @example
191
+ * 2025-07-16T15:10:29
192
+ */
193
+ logDeliveryUpdateTime?: string;
194
+ /**
195
+ * @remarks
196
+ * The log name.
197
+ *
198
+ * @example
199
+ * Process Snapshot
200
+ */
201
+ logName?: string;
202
+ /**
203
+ * @remarks
204
+ * JSON Array ["key":"product_code", "value":"ctdr"]
205
+ *
206
+ * @example
207
+ * [{\\"__topic__\\":\\"sas-net-block\\"}]
208
+ */
209
+ logSearchConditions?: string;
210
+ /**
211
+ * @remarks
212
+ * Indicates whether the Logstore where the log resides exists. Valid values:
213
+ * - true: The Logstore exists.
214
+ * - false: The Logstore does not exist.
215
+ *
216
+ * @example
217
+ * true
218
+ */
219
+ logStoreExisted?: boolean;
220
+ /**
221
+ * @remarks
222
+ * The name of the Logstore where the log resides.
223
+ *
224
+ * @example
225
+ * sas-security-log
226
+ */
227
+ logStoreName?: string;
228
+ /**
229
+ * @remarks
230
+ * The storage duration of the Logstore where the log resides. Logs are stored for at least 30 days.
231
+ *
232
+ * @example
233
+ * 180
234
+ */
235
+ logStoreTtl?: number;
236
+ static names(): { [key: string]: string } {
237
+ return {
238
+ logCode: 'LogCode',
239
+ logDeliveryGroup: 'LogDeliveryGroup',
240
+ logDeliveryPermission: 'LogDeliveryPermission',
241
+ logDeliveryStatus: 'LogDeliveryStatus',
242
+ logDeliveryUpdateTime: 'LogDeliveryUpdateTime',
243
+ logName: 'LogName',
244
+ logSearchConditions: 'LogSearchConditions',
245
+ logStoreExisted: 'LogStoreExisted',
246
+ logStoreName: 'LogStoreName',
247
+ logStoreTtl: 'LogStoreTtl',
248
+ };
249
+ }
250
+
251
+ static types(): { [key: string]: any } {
252
+ return {
253
+ logCode: 'string',
254
+ logDeliveryGroup: 'string',
255
+ logDeliveryPermission: 'string',
256
+ logDeliveryStatus: 'string',
257
+ logDeliveryUpdateTime: 'string',
258
+ logName: 'string',
259
+ logSearchConditions: 'string',
260
+ logStoreExisted: 'boolean',
261
+ logStoreName: 'string',
262
+ logStoreTtl: 'number',
263
+ };
264
+ }
265
+
266
+ validate() {
267
+ super.validate();
268
+ }
269
+
270
+ constructor(map?: { [key: string]: any }) {
271
+ super(map);
272
+ }
273
+ }
274
+
275
+ export class GetDataStorageResponseBodyData extends $dara.Model {
276
+ /**
277
+ * @remarks
278
+ * The cold storage capacity used by user logs.
279
+ *
280
+ * @example
281
+ * 100.0
282
+ */
283
+ coldStorageUsedCapacity?: number;
284
+ /**
285
+ * @remarks
286
+ * The storage region of user-side logs.
287
+ *
288
+ * @example
289
+ * cn-shanghai
290
+ */
291
+ dataStorageRegionId?: string;
292
+ /**
293
+ * @remarks
294
+ * Indicates whether the storage region can be modified. By default, the storage region cannot be modified. Contact your product manager to reset the region. The region can be reset only once. Valid values:
295
+ * - allow: The storage region can be modified.
296
+ * - deny: The storage region cannot be modified.
297
+ *
298
+ * @example
299
+ * deny
300
+ */
301
+ dataStorageRegionPermission?: string;
302
+ /**
303
+ * @remarks
304
+ * The storage capacity purchased in the upfront billing scenario.
305
+ *
306
+ * @example
307
+ * 100
308
+ */
309
+ dataStorageTotalCapacity?: number;
310
+ /**
311
+ * @remarks
312
+ * The storage capacity used in user log management.
313
+ *
314
+ * @example
315
+ * 100.0
316
+ */
317
+ dataStorageUsedCapacity?: number;
318
+ /**
319
+ * @remarks
320
+ * The storage usage details for log management users.
321
+ *
322
+ * @example
323
+ * {\\"purchasedHotStorageCapacity\\":1000,\\"usedHotStorageCapacity\\":4.2,\\"usedHotStorageCapacityDetail\\":{\\"ap-southeast-1\\":4.2,\\"cn-shenzhen\\":0.0,\\"cn-shanghai\\":0.0}}
324
+ */
325
+ dataStorageUsedCapacityDetail?: string;
326
+ /**
327
+ * @remarks
328
+ * The name of the Simple Log Service (SLS) project that stores user logs.
329
+ *
330
+ * @example
331
+ * aliyun-cloudsiem-data-171835723111****-cn-shanghai
332
+ */
333
+ logProject?: string;
334
+ /**
335
+ * @remarks
336
+ * The details of Logstores for normalized data.
337
+ */
338
+ normalizationLogStores?: GetDataStorageResponseBodyDataNormalizationLogStores[];
339
+ /**
340
+ * @remarks
341
+ * The details of normalized datasets.
342
+ */
343
+ normalizationLogViews?: GetDataStorageResponseBodyDataNormalizationLogViews[];
344
+ /**
345
+ * @remarks
346
+ * The details of raw log storage for Security Center.
347
+ */
348
+ sasLogStores?: GetDataStorageResponseBodyDataSasLogStores[];
349
+ static names(): { [key: string]: string } {
350
+ return {
351
+ coldStorageUsedCapacity: 'ColdStorageUsedCapacity',
352
+ dataStorageRegionId: 'DataStorageRegionId',
353
+ dataStorageRegionPermission: 'DataStorageRegionPermission',
354
+ dataStorageTotalCapacity: 'DataStorageTotalCapacity',
355
+ dataStorageUsedCapacity: 'DataStorageUsedCapacity',
356
+ dataStorageUsedCapacityDetail: 'DataStorageUsedCapacityDetail',
357
+ logProject: 'LogProject',
358
+ normalizationLogStores: 'NormalizationLogStores',
359
+ normalizationLogViews: 'NormalizationLogViews',
360
+ sasLogStores: 'SasLogStores',
361
+ };
362
+ }
363
+
364
+ static types(): { [key: string]: any } {
365
+ return {
366
+ coldStorageUsedCapacity: 'number',
367
+ dataStorageRegionId: 'string',
368
+ dataStorageRegionPermission: 'string',
369
+ dataStorageTotalCapacity: 'number',
370
+ dataStorageUsedCapacity: 'number',
371
+ dataStorageUsedCapacityDetail: 'string',
372
+ logProject: 'string',
373
+ normalizationLogStores: { 'type': 'array', 'itemType': GetDataStorageResponseBodyDataNormalizationLogStores },
374
+ normalizationLogViews: { 'type': 'array', 'itemType': GetDataStorageResponseBodyDataNormalizationLogViews },
375
+ sasLogStores: { 'type': 'array', 'itemType': GetDataStorageResponseBodyDataSasLogStores },
376
+ };
377
+ }
378
+
379
+ validate() {
380
+ if(Array.isArray(this.normalizationLogStores)) {
381
+ $dara.Model.validateArray(this.normalizationLogStores);
382
+ }
383
+ if(Array.isArray(this.normalizationLogViews)) {
384
+ $dara.Model.validateArray(this.normalizationLogViews);
385
+ }
386
+ if(Array.isArray(this.sasLogStores)) {
387
+ $dara.Model.validateArray(this.sasLogStores);
388
+ }
389
+ super.validate();
390
+ }
391
+
392
+ constructor(map?: { [key: string]: any }) {
393
+ super(map);
394
+ }
395
+ }
396
+
397
+ export class GetDataStorageResponseBody extends $dara.Model {
398
+ /**
399
+ * @remarks
400
+ * The returned details.
401
+ */
402
+ data?: GetDataStorageResponseBodyData;
403
+ /**
404
+ * @remarks
405
+ * The request ID.
406
+ *
407
+ * @example
408
+ * 81FB0DEA-52C1-55A0-8631-8E1B9A9D****
409
+ */
410
+ requestId?: string;
411
+ static names(): { [key: string]: string } {
412
+ return {
413
+ data: 'Data',
414
+ requestId: 'RequestId',
415
+ };
416
+ }
417
+
418
+ static types(): { [key: string]: any } {
419
+ return {
420
+ data: GetDataStorageResponseBodyData,
421
+ requestId: 'string',
422
+ };
423
+ }
424
+
425
+ validate() {
426
+ if(this.data && typeof (this.data as any).validate === 'function') {
427
+ (this.data as any).validate();
428
+ }
429
+ super.validate();
430
+ }
431
+
432
+ constructor(map?: { [key: string]: any }) {
433
+ super(map);
434
+ }
435
+ }
436
+
@@ -76,6 +76,10 @@ export { DescribeWhiteRuleListResponseBodyDataResponseDataExpression } from './D
76
76
  export { DescribeWhiteRuleListResponseBodyDataResponseData } from './DescribeWhiteRuleListResponseBody';
77
77
  export { DescribeWhiteRuleListResponseBodyData } from './DescribeWhiteRuleListResponseBody';
78
78
  export { GetCapacityResponseBodyData } from './GetCapacityResponseBody';
79
+ export { GetDataStorageResponseBodyDataNormalizationLogStores } from './GetDataStorageResponseBody';
80
+ export { GetDataStorageResponseBodyDataNormalizationLogViews } from './GetDataStorageResponseBody';
81
+ export { GetDataStorageResponseBodyDataSasLogStores } from './GetDataStorageResponseBody';
82
+ export { GetDataStorageResponseBodyData } from './GetDataStorageResponseBody';
79
83
  export { GetEntitiyStatResponseBodyData } from './GetEntitiyStatResponseBody';
80
84
  export { GetStorageResponseBodyData } from './GetStorageResponseBody';
81
85
  export { ListAccountAccessIdResponseBodyData } from './ListAccountAccessIdResponseBody';
@@ -279,6 +283,9 @@ export { EnableServiceForCloudSiemResponse } from './EnableServiceForCloudSiemRe
279
283
  export { GetCapacityRequest } from './GetCapacityRequest';
280
284
  export { GetCapacityResponseBody } from './GetCapacityResponseBody';
281
285
  export { GetCapacityResponse } from './GetCapacityResponse';
286
+ export { GetDataStorageRequest } from './GetDataStorageRequest';
287
+ export { GetDataStorageResponseBody } from './GetDataStorageResponseBody';
288
+ export { GetDataStorageResponse } from './GetDataStorageResponse';
282
289
  export { GetEntitiyStatRequest } from './GetEntitiyStatRequest';
283
290
  export { GetEntitiyStatResponseBody } from './GetEntitiyStatResponseBody';
284
291
  export { GetEntitiyStatResponse } from './GetEntitiyStatResponse';