Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 2 | "$id": "http://redfish.dmtf.org/schemas/v1/LogService.v1_1_3.json", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 3 | "$ref": "#/definitions/LogService", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 4 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 5 | "copyright": "Copyright 2014-2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 6 | "definitions": { |
| 7 | "Actions": { |
| 8 | "additionalProperties": false, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 9 | "description": "The available actions for this Resource.", |
| 10 | "longDescription": "This type shall contain the available actions for this Resource.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 11 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 12 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 13 | "description": "This property shall specify a valid odata or Redfish property.", |
| 14 | "type": [ |
| 15 | "array", |
| 16 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 17 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 18 | "number", |
| 19 | "null", |
| 20 | "object", |
| 21 | "string" |
| 22 | ] |
| 23 | } |
| 24 | }, |
| 25 | "properties": { |
| 26 | "#LogService.ClearLog": { |
| 27 | "$ref": "#/definitions/ClearLog" |
| 28 | }, |
| 29 | "Oem": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 30 | "$ref": "#/definitions/OemActions", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 31 | "description": "The available OEM-specific actions for this Resource.", |
| 32 | "longDescription": "This property shall contain the available OEM-specific actions for this Resource." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 33 | } |
| 34 | }, |
| 35 | "type": "object" |
| 36 | }, |
| 37 | "ClearLog": { |
| 38 | "additionalProperties": false, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 39 | "description": "The action to clear the log for this Log Service.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 40 | "longDescription": "This action shall delete all entries found in the Entries collection for this Log Service.", |
| 41 | "parameters": {}, |
| 42 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 43 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 44 | "description": "This property shall specify a valid odata or Redfish property.", |
| 45 | "type": [ |
| 46 | "array", |
| 47 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 48 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 49 | "number", |
| 50 | "null", |
| 51 | "object", |
| 52 | "string" |
| 53 | ] |
| 54 | } |
| 55 | }, |
| 56 | "properties": { |
| 57 | "target": { |
| 58 | "description": "Link to invoke action", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 59 | "format": "uri-reference", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 60 | "type": "string" |
| 61 | }, |
| 62 | "title": { |
| 63 | "description": "Friendly action name", |
| 64 | "type": "string" |
| 65 | } |
| 66 | }, |
| 67 | "type": "object" |
| 68 | }, |
| 69 | "LogEntryTypes": { |
| 70 | "enum": [ |
| 71 | "Event", |
| 72 | "SEL", |
| 73 | "Multiple", |
| 74 | "OEM" |
| 75 | ], |
| 76 | "enumDescriptions": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 77 | "Event": "The log contains Redfish-defined messages.", |
| 78 | "Multiple": "The log contains multiple log entry types and, therefore, the Log Service cannot guarantee a single entry type.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 79 | "OEM": "The log contains entries in an OEM-defined format.", |
| 80 | "SEL": "The log contains legacy IPMI System Event Log (SEL) entries." |
| 81 | }, |
| 82 | "type": "string" |
| 83 | }, |
| 84 | "LogService": { |
| 85 | "additionalProperties": false, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 86 | "description": "The LogService schema contains properties for monitoring and configuring a Log Service.", |
| 87 | "longDescription": "This Resource shall represent a Log Service for a Redfish implementation.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 88 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 89 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 90 | "description": "This property shall specify a valid odata or Redfish property.", |
| 91 | "type": [ |
| 92 | "array", |
| 93 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 94 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 95 | "number", |
| 96 | "null", |
| 97 | "object", |
| 98 | "string" |
| 99 | ] |
| 100 | } |
| 101 | }, |
| 102 | "properties": { |
| 103 | "@odata.context": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 104 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 105 | }, |
| 106 | "@odata.etag": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 107 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 108 | }, |
| 109 | "@odata.id": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 110 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 111 | }, |
| 112 | "@odata.type": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 113 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 114 | }, |
| 115 | "Actions": { |
| 116 | "$ref": "#/definitions/Actions", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 117 | "description": "The available actions for this Resource.", |
| 118 | "longDescription": "This property shall contain the available actions for this Resource." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 119 | }, |
| 120 | "DateTime": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 121 | "description": "The current date and time, with UTC offset, that the Log Service uses to set or read time.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 122 | "format": "date-time", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 123 | "longDescription": "This property shall represent the current DateTime value, with UTC offset, in Redfish Timestamp format that the Log Service uses to set or read time.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 124 | "readonly": false, |
| 125 | "type": [ |
| 126 | "string", |
| 127 | "null" |
| 128 | ] |
| 129 | }, |
| 130 | "DateTimeLocalOffset": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 131 | "description": "The UTC offset that the current DateTime property value contains in the `+HH:MM` format.", |
| 132 | "longDescription": "This property shall represent the UTC offset that the current DateTime property value contains.", |
| 133 | "pattern": "^([-+][0-1][0-9]:[0-5][0-9])$", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 134 | "readonly": false, |
| 135 | "type": [ |
| 136 | "string", |
| 137 | "null" |
| 138 | ] |
| 139 | }, |
| 140 | "Description": { |
| 141 | "anyOf": [ |
| 142 | { |
| 143 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 144 | }, |
| 145 | { |
| 146 | "type": "null" |
| 147 | } |
| 148 | ], |
| 149 | "readonly": true |
| 150 | }, |
| 151 | "Entries": { |
| 152 | "$ref": "http://redfish.dmtf.org/schemas/v1/LogEntryCollection.json#/definitions/LogEntryCollection", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 153 | "description": "The link to the log entry collection.", |
| 154 | "longDescription": "This property shall contain a link to a Resource Collection of type LogEntryCollection.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 155 | "readonly": true |
| 156 | }, |
| 157 | "Id": { |
| 158 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 159 | "readonly": true |
| 160 | }, |
| 161 | "LogEntryType": { |
| 162 | "anyOf": [ |
| 163 | { |
| 164 | "$ref": "#/definitions/LogEntryTypes" |
| 165 | }, |
| 166 | { |
| 167 | "type": "null" |
| 168 | } |
| 169 | ], |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 170 | "description": "The format of the log entries.", |
| 171 | "longDescription": "This property shall represent the EntryType of all LogEntry Resources contained in the Entries collection. If the service cannot determine or guarantee a single EntryType for all LogEntry Resources, this property's value shall be `Multiple`.", |
| 172 | "readonly": true, |
| 173 | "versionAdded": "v1_1_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 174 | }, |
| 175 | "MaxNumberOfRecords": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 176 | "description": "The maximum number of log entries that this service can have.", |
| 177 | "longDescription": "This property shall contain the maximum number of LogEntry Resources in the Entries collection for this service.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 178 | "minimum": 0, |
| 179 | "readonly": true, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 180 | "type": "integer" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 181 | }, |
| 182 | "Name": { |
| 183 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 184 | "readonly": true |
| 185 | }, |
| 186 | "Oem": { |
| 187 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 188 | "description": "The OEM extension property.", |
| 189 | "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 Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 190 | }, |
| 191 | "OverWritePolicy": { |
| 192 | "$ref": "#/definitions/OverWritePolicy", |
| 193 | "description": "The overwrite policy for this service that takes place when the log is full.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 194 | "longDescription": "This property shall indicate the policy of the Log Service when the MaxNumberOfRecords has been reached.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 195 | "readonly": true |
| 196 | }, |
| 197 | "ServiceEnabled": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 198 | "description": "An indication of whether this service is enabled.", |
| 199 | "longDescription": "This property shall indicate whether this service is enabled.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 200 | "readonly": false, |
| 201 | "type": [ |
| 202 | "boolean", |
| 203 | "null" |
| 204 | ] |
| 205 | }, |
| 206 | "Status": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 207 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 208 | "description": "The status and health of the Resource and its subordinate or dependent Resources.", |
| 209 | "longDescription": "This property shall contain any status or health properties of the Resource." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 210 | } |
| 211 | }, |
| 212 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 213 | "@odata.id", |
| 214 | "@odata.type", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 215 | "Id", |
| 216 | "Name" |
| 217 | ], |
| 218 | "type": "object" |
| 219 | }, |
| 220 | "OemActions": { |
| 221 | "additionalProperties": true, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 222 | "description": "The available OEM-specific actions for this Resource.", |
| 223 | "longDescription": "This type shall contain the available OEM-specific actions for this Resource.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 224 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 225 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 226 | "description": "This property shall specify a valid odata or Redfish property.", |
| 227 | "type": [ |
| 228 | "array", |
| 229 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 230 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 231 | "number", |
| 232 | "null", |
| 233 | "object", |
| 234 | "string" |
| 235 | ] |
| 236 | } |
| 237 | }, |
| 238 | "properties": {}, |
| 239 | "type": "object" |
| 240 | }, |
| 241 | "OverWritePolicy": { |
| 242 | "enum": [ |
| 243 | "Unknown", |
| 244 | "WrapsWhenFull", |
| 245 | "NeverOverWrites" |
| 246 | ], |
| 247 | "enumDescriptions": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 248 | "NeverOverWrites": "When full, new entries to the log are discarded.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 249 | "Unknown": "The overwrite policy is not known or is undefined.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 250 | "WrapsWhenFull": "When full, new entries to the log overwrite earlier entries." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 251 | }, |
| 252 | "type": "string" |
| 253 | } |
| 254 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 255 | "owningEntity": "DMTF", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 256 | "release": "2017.3", |
| 257 | "title": "#LogService.v1_1_3.LogService" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 258 | } |