blob: a2265ae678f00170f21e85ba4dcb575ad32c6d0b [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Gunnar Mills9d424662021-09-22 21:56:16 -05002 "$id": "http://redfish.dmtf.org/schemas/v1/Event.v1_7_0.json",
Ed Tanous118b1c72018-09-13 13:45:51 -07003 "$ref": "#/definitions/Event",
Ed Tanous530520e2019-01-02 13:41:37 -08004 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Gunnar Mills9d424662021-09-22 21:56:16 -05005 "copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07006 "definitions": {
7 "Actions": {
8 "additionalProperties": false,
Gunnar Millsa778c022020-05-12 12:20:36 -05009 "description": "The available actions for this resource.",
10 "longDescription": "This type shall contain the available actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070011 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070012 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070013 "description": "This property shall specify a valid odata or Redfish property.",
14 "type": [
15 "array",
16 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080017 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070018 "number",
19 "null",
20 "object",
21 "string"
22 ]
23 }
24 },
25 "properties": {
26 "Oem": {
Ed Tanous530520e2019-01-02 13:41:37 -080027 "$ref": "#/definitions/OemActions",
Gunnar Millsa778c022020-05-12 12:20:36 -050028 "description": "The available OEM-specific actions for this resource.",
29 "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -060030 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070031 }
32 },
33 "type": "object"
34 },
35 "Event": {
36 "additionalProperties": false,
Gunnar Millsa778c022020-05-12 12:20:36 -050037 "description": "The Event schema describes the JSON payload received by an event destination, which has subscribed to event notification, when events occur. This resource contains data about events, including descriptions, severity, and a message identifier to a message registry that can be accessed for further information.",
38 "longDescription": "This resource contains an event for a Redfish implementation.",
Ed Tanous118b1c72018-09-13 13:45:51 -070039 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070040 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070041 "description": "This property shall specify a valid odata or Redfish property.",
42 "type": [
43 "array",
44 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080045 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070046 "number",
47 "null",
48 "object",
49 "string"
50 ]
51 }
52 },
53 "properties": {
54 "@odata.context": {
Ed Tanouscb103132019-10-08 11:34:22 -070055 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
Ed Tanous118b1c72018-09-13 13:45:51 -070056 },
57 "@odata.type": {
Ed Tanouscb103132019-10-08 11:34:22 -070058 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -070059 },
60 "Actions": {
61 "$ref": "#/definitions/Actions",
Gunnar Millsa778c022020-05-12 12:20:36 -050062 "description": "The available actions for this resource.",
63 "longDescription": "This property shall contain the available actions for this resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -060064 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070065 },
66 "Context": {
67 "description": "A context can be supplied at subscription time. This property is the context value supplied by the subscriber.",
Ed Tanouscb103132019-10-08 11:34:22 -070068 "longDescription": "This property shall contain a client supplied context for the event destination to which this event is being sent.",
Ed Tanous118b1c72018-09-13 13:45:51 -070069 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -060070 "type": "string",
71 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070072 },
73 "Description": {
74 "anyOf": [
75 {
76 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
77 },
78 {
79 "type": "null"
80 }
81 ],
82 "readonly": true
83 },
84 "Events": {
Ed Tanous530520e2019-01-02 13:41:37 -080085 "autoExpand": true,
Ed Tanouscb103132019-10-08 11:34:22 -070086 "description": "Each event in this array has a set of properties that describe the event. Because this is an array, more than one event can be sent simultaneously.",
Ed Tanous118b1c72018-09-13 13:45:51 -070087 "items": {
88 "$ref": "#/definitions/EventRecord"
89 },
Gunnar Millsa778c022020-05-12 12:20:36 -050090 "longDescription": "This property shall contain an array of objects that represent the occurrence of one or more events.",
Ed Tanous118b1c72018-09-13 13:45:51 -070091 "type": "array"
92 },
93 "Events@odata.count": {
Ed Tanouscb103132019-10-08 11:34:22 -070094 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
Ed Tanous118b1c72018-09-13 13:45:51 -070095 },
96 "Id": {
97 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
98 "readonly": true
99 },
100 "Name": {
101 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
102 "readonly": true
103 },
104 "Oem": {
105 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700106 "description": "The OEM extension property.",
107 "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
Ed Tanous118b1c72018-09-13 13:45:51 -0700108 }
109 },
110 "required": [
111 "Events",
Ed Tanous530520e2019-01-02 13:41:37 -0800112 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700113 "Id",
114 "Name"
115 ],
116 "type": "object"
117 },
118 "EventRecord": {
119 "additionalProperties": false,
120 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700121 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700122 "description": "This property shall specify a valid odata or Redfish property.",
123 "type": [
124 "array",
125 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800126 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700127 "number",
128 "null",
129 "object",
130 "string"
131 ]
132 }
133 },
134 "properties": {
135 "Actions": {
136 "$ref": "#/definitions/EventRecordActions",
Gunnar Millsa778c022020-05-12 12:20:36 -0500137 "description": "The available actions for this resource.",
138 "longDescription": "This property shall contain the available actions for this resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600139 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700140 },
141 "Context": {
Gunnar Millsa778c022020-05-12 12:20:36 -0500142 "deprecated": "Events are triggered independently from subscriptions to those events. This property has been deprecated in favor of the Context property found at the root level of the object.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700143 "description": "A context can be supplied at subscription time. This property is the context value supplied by the subscriber.",
Ed Tanouscb103132019-10-08 11:34:22 -0700144 "longDescription": "This property shall contain a client supplied context for the event destination to which this event is being sent.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700145 "readonly": true,
Ed Tanouscb103132019-10-08 11:34:22 -0700146 "type": "string",
147 "versionDeprecated": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700148 },
Ed Tanous530520e2019-01-02 13:41:37 -0800149 "EventGroupId": {
Ed Tanouscb103132019-10-08 11:34:22 -0700150 "description": "The identifier that correlates events with the same root cause. If `0`, no other event is related to this event.",
151 "longDescription": "This property shall indicate that events are related and shall have the same value when multiple event messages are produced by the same root cause. Implementations shall use separate values for events with a separate root cause. This property value shall not imply an ordering of events. The `0` value shall indicate that this event is not grouped with any other event.",
Ed Tanous530520e2019-01-02 13:41:37 -0800152 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600153 "type": "integer",
154 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800155 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700156 "EventId": {
Ed Tanouscb103132019-10-08 11:34:22 -0700157 "description": "The unique instance identifier of an event.",
Gunnar Mills262d7d42021-01-20 16:28:41 -0600158 "longDescription": "This property shall contain a service-defined unique identifier for the event.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700159 "readonly": true,
160 "type": "string"
161 },
162 "EventTimestamp": {
Ed Tanouscb103132019-10-08 11:34:22 -0700163 "description": "The time the event occurred.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700164 "format": "date-time",
Gunnar Millsa778c022020-05-12 12:20:36 -0500165 "longDescription": "This property shall indicate the time the event occurred where the value shall be consistent with the Redfish service time that is also used for the values of the Modified property.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700166 "readonly": true,
167 "type": "string"
168 },
169 "EventType": {
170 "$ref": "http://redfish.dmtf.org/schemas/v1/Event.json#/definitions/EventType",
Ed Tanouscb103132019-10-08 11:34:22 -0700171 "deprecated": "This property has been deprecated. Starting with Redfish Specification v1.6 (Event v1.3), subscriptions are based on the RegistryPrefix and ResourceType properties and not on the EventType property.",
172 "description": "The type of event.",
Gunnar Millsa778c022020-05-12 12:20:36 -0500173 "longDescription": "This property shall indicate the type of event.",
Ed Tanouscb103132019-10-08 11:34:22 -0700174 "readonly": true,
175 "versionDeprecated": "v1_3_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700176 },
Gunnar Mills9d424662021-09-22 21:56:16 -0500177 "LogEntry": {
178 "$ref": "http://redfish.dmtf.org/schemas/v1/LogEntry.json#/definitions/LogEntry",
179 "description": "The link to a log entry if an entry was created for this event.",
180 "longDescription": "This property shall contain a link to a resource of type LogEntry that represents the log entry created for this event.",
181 "readonly": true,
182 "versionAdded": "v1_7_0"
183 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700184 "MemberId": {
Gunnar Mills9d424662021-09-22 21:56:16 -0500185 "description": "The unique identifier for the member within an array.",
186 "longDescription": "This property shall contain the unique identifier for this member within an array. For services supporting Redfish v1.6 or higher, this value shall contain the zero-based array index.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700187 "readonly": true,
188 "type": "string"
189 },
190 "Message": {
Ed Tanouscb103132019-10-08 11:34:22 -0700191 "description": "The human-readable event message.",
192 "longDescription": "This property shall contain a human-readable event message.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700193 "readonly": true,
194 "type": "string"
195 },
196 "MessageArgs": {
Gunnar Millsa778c022020-05-12 12:20:36 -0500197 "description": "An array of message arguments that are substituted for the arguments in the message when looked up in the message registry.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700198 "items": {
199 "type": "string"
200 },
Gunnar Millsa778c022020-05-12 12:20:36 -0500201 "longDescription": "This property shall contain an array of message arguments that are substituted for the arguments in the message when looked up in the message registry. It has the same semantics as the MessageArgs property in the Redfish MessageRegistry schema.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700202 "readonly": true,
203 "type": "array"
204 },
205 "MessageId": {
Gunnar Mills262d7d42021-01-20 16:28:41 -0600206 "description": "The identifier for the message.",
207 "longDescription": "This property shall contain a MessageId, as defined in the 'MessageId format' clause of the Redfish Specification.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700208 "pattern": "^[A-Za-z0-9]+\\.\\d+\\.\\d+\\.[A-Za-z0-9.]+$",
209 "readonly": true,
210 "type": "string"
211 },
Gunnar Mills844b4152020-06-22 12:44:09 -0500212 "MessageSeverity": {
Gunnar Mills262d7d42021-01-20 16:28:41 -0600213 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health",
Gunnar Mills844b4152020-06-22 12:44:09 -0500214 "description": "The severity of the message in this event.",
Asmitha Karunanithic8ccb772020-09-22 10:56:46 -0500215 "longDescription": "This property shall contain the severity of the message in this event. Services can replace the value defined in the message registry with a value more applicable to the implementation.",
Gunnar Mills844b4152020-06-22 12:44:09 -0500216 "readonly": true,
217 "versionAdded": "v1_5_0"
218 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700219 "Oem": {
220 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700221 "description": "The OEM extension property.",
222 "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
Ed Tanous118b1c72018-09-13 13:45:51 -0700223 },
224 "OriginOfCondition": {
Ed Tanouscb103132019-10-08 11:34:22 -0700225 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef",
Gunnar Millsa778c022020-05-12 12:20:36 -0500226 "description": "A link to the resource or object that originated the condition that caused the event to be generated.",
227 "longDescription": "This property shall contain a link to the resource or object that originated the condition that caused the event to be generated. If the event subscription has the IncludeOriginOfCondition property set to `true`, it shall include the entire resource or object referenced by the link.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700228 "readonly": true
229 },
230 "Severity": {
Gunnar Mills844b4152020-06-22 12:44:09 -0500231 "deprecated": "This property has been deprecated in favor of MessageSeverity, which ties the values to the enumerations defined for the Health property within Status.",
Ed Tanouscb103132019-10-08 11:34:22 -0700232 "description": "The severity of the event.",
Gunnar Mills262d7d42021-01-20 16:28:41 -0600233 "longDescription": "This property shall contain the severity of the event, as defined in the 'Status' clause of the Redfish Specification. Services can replace the value defined in the message registry with a value more applicable to the implementation.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700234 "readonly": true,
Gunnar Mills844b4152020-06-22 12:44:09 -0500235 "type": "string",
236 "versionDeprecated": "v1_5_0"
Asmitha Karunanithic8ccb772020-09-22 10:56:46 -0500237 },
238 "SpecificEventExistsInGroup": {
239 "description": "Indicates this event is equivalent to a more specific event in this Event Group.",
240 "longDescription": "This property shall indicate that the event is equivalent to another event, with a more specific definition, within the same EventGroupId. For example, the `DriveFailed` message from the Storage Device Message Registry is more specific than the `ResourceStatusChangedCritical` message from the Resource Event Message Registry, when both occur with the same EventGroupId. This property shall contain `true` if a more specific event is available, and shall contain `false` if no equivalent event exists in the same EventGroupId. If this property is absent, the value shall be assumed to be `false`.",
241 "readonly": true,
242 "type": "boolean",
243 "versionAdded": "v1_6_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700244 }
245 },
246 "required": [
247 "EventType",
Ed Tanous530520e2019-01-02 13:41:37 -0800248 "MessageId",
Ed Tanous530520e2019-01-02 13:41:37 -0800249 "MemberId"
Ed Tanous118b1c72018-09-13 13:45:51 -0700250 ],
251 "type": "object"
252 },
253 "EventRecordActions": {
254 "additionalProperties": false,
Gunnar Millsa778c022020-05-12 12:20:36 -0500255 "description": "The available actions for this resource.",
256 "longDescription": "This type shall contain the available actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700257 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700258 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700259 "description": "This property shall specify a valid odata or Redfish property.",
260 "type": [
261 "array",
262 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800263 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700264 "number",
265 "null",
266 "object",
267 "string"
268 ]
269 }
270 },
271 "properties": {
272 "Oem": {
Ed Tanous530520e2019-01-02 13:41:37 -0800273 "$ref": "#/definitions/EventRecordOemActions",
Gunnar Millsa778c022020-05-12 12:20:36 -0500274 "description": "The available OEM-specific actions for this resource.",
275 "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600276 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700277 }
278 },
279 "type": "object"
280 },
281 "EventRecordOemActions": {
282 "additionalProperties": true,
Gunnar Millsa778c022020-05-12 12:20:36 -0500283 "description": "The available OEM-specific actions for this resource.",
284 "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700285 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700286 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700287 "description": "This property shall specify a valid odata or Redfish property.",
288 "type": [
289 "array",
290 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800291 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700292 "number",
293 "null",
294 "object",
295 "string"
296 ]
297 }
298 },
299 "properties": {},
300 "type": "object"
301 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700302 "OemActions": {
303 "additionalProperties": true,
Gunnar Millsa778c022020-05-12 12:20:36 -0500304 "description": "The available OEM-specific actions for this resource.",
305 "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700306 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700307 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700308 "description": "This property shall specify a valid odata or Redfish property.",
309 "type": [
310 "array",
311 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800312 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700313 "number",
314 "null",
315 "object",
316 "string"
317 ]
318 }
319 },
320 "properties": {},
321 "type": "object"
322 }
323 },
Ed Tanous530520e2019-01-02 13:41:37 -0800324 "owningEntity": "DMTF",
Gunnar Mills9d424662021-09-22 21:56:16 -0500325 "release": "2021.2",
326 "title": "#Event.v1_7_0.Event"
Ed Tanous118b1c72018-09-13 13:45:51 -0700327}