Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 1 | { |
| 2 | "$id": "cper-json-header", |
| 3 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 4 | "description": "Common Platform Record Header as defined in UEFI Appendix N section 2.1", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 5 | "type": "object", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 6 | "required": [ |
| 7 | "revision", |
| 8 | "sectionCount", |
| 9 | "severity", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 10 | "recordLength", |
| 11 | "creatorID", |
| 12 | "notificationType", |
| 13 | "recordID", |
| 14 | "flags", |
| 15 | "persistenceInfo" |
| 16 | ], |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 17 | "additionalProperties": false, |
| 18 | "properties": { |
| 19 | "revision": { |
| 20 | "type": "object", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 21 | "description": "This is a 2-byte field representing a major and minor version number for the error record definition in BCD format. ", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 22 | "required": ["major", "minor"], |
| 23 | "properties": { |
| 24 | "major": { |
| 25 | "type": "integer", |
| 26 | "minimum": 0 |
| 27 | }, |
| 28 | "minor": { |
| 29 | "type": "integer", |
| 30 | "minimum": 0 |
| 31 | } |
| 32 | } |
| 33 | }, |
| 34 | "sectionCount": { |
| 35 | "type": "integer", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 36 | "description": "his field indicates the number of valid sections associated with the record, corresponding to each of the following section descriptors.", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 37 | "minimum": 0 |
| 38 | }, |
| 39 | "severity": { |
| 40 | "type": "object", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 41 | "description": "Indicates the severity of the error condition. The severity of the error record corresponds to the most severe error section.", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 42 | "required": ["name", "code"], |
| 43 | "properties": { |
| 44 | "name": { |
| 45 | "type": "string" |
| 46 | }, |
| 47 | "code": { |
| 48 | "type": "integer", |
| 49 | "minimum": 0 |
| 50 | } |
| 51 | } |
| 52 | }, |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 53 | "recordLength": { |
| 54 | "type": "integer", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 55 | "description": "Indicates the size of the actual error record, including the size of the record header, all section descriptors, and section bodies.", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 56 | "minimum": 0 |
| 57 | }, |
| 58 | "timestamp": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 59 | "type": "string", |
| 60 | "description": "The timestamp correlates to the time when the error information was collected by the system software and may not necessarily represent the time of the error event." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 61 | }, |
| 62 | "timestampIsPrecise": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 63 | "type": "boolean", |
| 64 | "description": "Timestamp is precise if this bit is set and correlates to the time of the error event." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 65 | }, |
| 66 | "platformID": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 67 | "type": "string", |
| 68 | "description": "This field uniquely identifies the platform with a GUID. The platform’s SMBIOS UUID should be used to populate this field." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 69 | }, |
| 70 | "partitionID": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 71 | "type": "string", |
| 72 | "description": "If the platform has multiple software partitions, system software may associate a GUID with the partition on which the error occurred." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 73 | }, |
| 74 | "creatorID": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 75 | "type": "string", |
| 76 | "description": "This field contains a GUID indicating the creator of the error record. This value may be overwritten by subsequent owners of the record." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 77 | }, |
| 78 | "notificationType": { |
| 79 | "type": "object", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 80 | "description": "This field holds a pre-assigned GUID value indicating the record association with an error event notification type.", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 81 | "required": ["guid", "type"], |
| 82 | "properties": { |
| 83 | "guid": { |
| 84 | "type": "string", |
Aushim Nagarkatti | 466ecd9 | 2025-02-22 20:52:50 -0800 | [diff] [blame] | 85 | "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 86 | }, |
| 87 | "type": { |
| 88 | "type": "string" |
| 89 | } |
| 90 | } |
| 91 | }, |
| 92 | "recordID": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 93 | "type": "integer", |
| 94 | "description": "This value, when combined with the Creator ID, uniquely identifies the error record across other error records on a given system." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 95 | }, |
| 96 | "flags": { |
| 97 | "type": "object", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 98 | "description": "Flags field contains information that describes the error record.", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 99 | "$ref": "./common/cper-json-nvp.json" |
| 100 | }, |
| 101 | "persistenceInfo": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame] | 102 | "type": "integer", |
| 103 | "description": "This field is produced and consumed by the creator of the error record identified in the Creator ID field. The format of this field is defined by the creator" |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 104 | } |
| 105 | } |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 106 | } |