-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathalert-schema.json
85 lines (84 loc) · 2.71 KB
/
alert-schema.json
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
{
"$schema": "http://json-schema.org/schema#",
"$id": "https://smart-data-models.github.io/data-models/specs/Alert/alert-schema.json",
"title": "Alert base schema",
"description": "Common definitions for Alert data model",
"definitions": {
"Common-Alert": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Alert"
],
"description": "Property. NGSI Entity type. It has to be Alert."
},
"description": {
"type": "string",
"description": "Property. Description of the Entity"
},
"dateIssued": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. The date and time the item was issued in ISO8601 UTC format."
},
"validFrom": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. The start of the validity period for this forecast as a ISO8601 format"
},
"validTo": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. The end of the validity period for this forecast as a ISO8601 format"
},
"severity": {
"type": "string",
"enum": [
"informational",
"low",
"medium",
"high",
"critical"
],
"description": "Property. Severity of the Alarm"
},
"category": {
"type": "string",
"enum": [
"traffic",
"naturalDisaster",
"weather",
"environment",
"health",
"security",
"agriculture"
],
"description": "Property. Category of the Alert. Enum:'traffic, naturalDisaster, weather, environment, health, security, agriculture'"
},
"alertSource": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$",
"description": "Property. Identifier format of any NGSI entity"
},
{
"type": "string",
"format": "uri",
"description": "Property. Identifier format of any NGSI entity"
}
],
"description": "Relationship. Source of the alert. Model:'http://schema.org/URL'."
},
"data": {
"type": "object",
"description": "Property. Payload containing the data retrieved."
}
}
}
}
}