blob: 2980dc0f21dfa0346a5b852790ad0eff4b775344 [file] [log] [blame]
{
"$id": "cper-json-header",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Common Platform Record Header as defined in UEFI Appendix N section 2.1",
"type": "object",
"required": [
"revision",
"sectionCount",
"severity",
"validationBits",
"recordLength",
"creatorID",
"notificationType",
"recordID",
"flags",
"persistenceInfo"
],
"additionalProperties": false,
"properties": {
"revision": {
"type": "object",
"description": "This is a 2-byte field representing a major and minor version number for the error record definition in BCD format. ",
"required": ["major", "minor"],
"properties": {
"major": {
"type": "integer",
"minimum": 0
},
"minor": {
"type": "integer",
"minimum": 0
}
}
},
"sectionCount": {
"type": "integer",
"description": "his field indicates the number of valid sections associated with the record, corresponding to each of the following section descriptors.",
"minimum": 0
},
"severity": {
"type": "object",
"description": "Indicates the severity of the error condition. The severity of the error record corresponds to the most severe error section.",
"required": ["name", "code"],
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "integer",
"minimum": 0
}
}
},
"validationBits": {
"type": "object",
"description": "This field indicates the validity of other header feilds.",
"required": [
"platformIDValid",
"timestampValid",
"partitionIDValid"
],
"properties": {
"platformIDValid": {
"type": "boolean"
},
"timestampValid": {
"type": "boolean"
},
"partitionIDValid": {
"type": "boolean"
}
}
},
"recordLength": {
"type": "integer",
"description": "Indicates the size of the actual error record, including the size of the record header, all section descriptors, and section bodies.",
"minimum": 0
},
"timestamp": {
"type": "string",
"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."
},
"timestampIsPrecise": {
"type": "boolean",
"description": "Timestamp is precise if this bit is set and correlates to the time of the error event."
},
"platformID": {
"type": "string",
"description": "This field uniquely identifies the platform with a GUID. The platform’s SMBIOS UUID should be used to populate this field."
},
"partitionID": {
"type": "string",
"description": "If the platform has multiple software partitions, system software may associate a GUID with the partition on which the error occurred."
},
"creatorID": {
"type": "string",
"description": "This field contains a GUID indicating the creator of the error record. This value may be overwritten by subsequent owners of the record."
},
"notificationType": {
"type": "object",
"description": "This field holds a pre-assigned GUID value indicating the record association with an error event notification type.",
"required": ["guid", "type"],
"properties": {
"guid": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{16}$"
},
"type": {
"type": "string"
}
}
},
"recordID": {
"type": "integer",
"description": "This value, when combined with the Creator ID, uniquely identifies the error record across other error records on a given system."
},
"flags": {
"type": "object",
"description": "Flags field contains information that describes the error record.",
"$ref": "./common/cper-json-nvp.json"
},
"persistenceInfo": {
"type": "integer",
"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"
}
}
}