Skip to content

Commit 1cf4919

Browse files
Fix schemas
Signed-off-by: Antoine Sauzeau <[email protected]>
1 parent d5e0881 commit 1cf4919

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

spec/schemas/security_analytics.alerts.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ components:
1414
total_alerts:
1515
type: integer
1616
format: int64
17-
detectorType:
18-
type: string
1917
required:
2018
- alerts
21-
- detectorType
2219
- total_alerts
2320

2421
Alerts:
@@ -55,7 +52,7 @@ components:
5552
type: string
5653
enum: [ACKNOWLEDGED,ACTIVE, COMPLETED, DELETED, ERROR]
5754
error_message:
58-
type: string
55+
type: ['null', string]
5956
alert_history:
6057
type: array
6158
items:
@@ -71,9 +68,9 @@ components:
7168
last_notification_time:
7269
type: string
7370
end_time:
74-
type: string
71+
type: ['null', string]
7572
acknowledged_time:
76-
type: string
73+
type: ['null', string]
7774

7875
AlertError:
7976
type: object

spec/schemas/security_analytics.findings.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ components:
4141
items:
4242
$ref: '#/components/schemas/Query'
4343
timestamp:
44-
type: string
44+
type: integer
45+
format: int64
4546
document_list:
4647
type: array
4748
items:
@@ -101,4 +102,7 @@ components:
101102
score:
102103
type: number
103104
format: float
104-
105+
rules:
106+
type: array
107+
items:
108+
type: string

0 commit comments

Comments
 (0)