-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathalert-model.yaml
93 lines (86 loc) · 2.24 KB
/
alert-model.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
# Copyright (c) 2020 Contributors to Smart-Data-Models
# see https://github.com/smart-data-models/dataModel.Alert
AlertCommons:
type: object
properties:
alertSource:
description: Reference to the source of the Alert. For example, it could be a user of an application, a device, or a service.
format: uri
type: string
x-ngsi:
model:
- "http://schema.org/Text"
- "http://schema.org/URL"
category:
$ref: >-
https://smart-data-models.github.io/dataModel.Alert/alert-model.yaml#/AlertCategory
dateIssued:
x-ngsi:
type: Property
model: 'https://schema.org/DateTime'
description: The date and time the Alert was issued by the Alert generator in ISO8601 UTC format.
type: string
format: date-time
description:
$ref: >-
https://smart-data-models.github.io/data-models/ngsi-ld.yaml#/description
validFrom:
x-ngsi:
type: Property
model: 'https://schema.org/DateTime'
type: string
format: date-time
description: The start date of validity of the Alert in ISO8601 UTC format.
validTo:
x-ngsi:
type: Property
model: 'https://schema.org/DateTime'
type: string
format: date-time
description: The end date of validity of the Alert in ISO8601 UTC format.
severity:
$ref: >-
https://smart-data-models.github.io/dataModel.Alert/alert-model.yaml#/AlertSeverity
data:
type: object
description: used to carry additional data for the Alert
AlertCategory:
x-ngsi:
type: Property
model: 'https://schema.org/Text'
type: string
enum:
- traffic
- naturalDisaster
- weather
- environment
- health
- security
- agriculture
description: |
- `traffic`
- `naturalDisaster`
- `weather`
- `environment`
- `health`
- `security`
- `agriculture`
AlertSeverity:
x-ngsi:
type: Property
model: 'https://schema.org/Text'
type: string
enum:
- informational
- low
- medium
- high
- critical
description: |
define the level of gravity of a given alert.
- `informational`
- `low`
- `medium`
- `high`
- `critical`