blob: c933052b4cbf0b8a94876d51740ed30660ded257 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanouscb103132019-10-08 11:34:22 -07002 "$id": "http://redfish.dmtf.org/schemas/v1/LogService.v1_1_3.json",
Ed Tanous118b1c72018-09-13 13:45:51 -07003 "$ref": "#/definitions/LogService",
Ed Tanous530520e2019-01-02 13:41:37 -08004 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Ed Tanouscb103132019-10-08 11:34:22 -07005 "copyright": "Copyright 2014-2019 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,
Ed Tanouscb103132019-10-08 11:34:22 -07009 "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 "#LogService.ClearLog": {
27 "$ref": "#/definitions/ClearLog"
28 },
29 "Oem": {
Ed Tanous530520e2019-01-02 13:41:37 -080030 "$ref": "#/definitions/OemActions",
Ed Tanouscb103132019-10-08 11:34:22 -070031 "description": "The available OEM-specific actions for this Resource.",
32 "longDescription": "This property shall contain the available OEM-specific actions for this Resource."
Ed Tanous118b1c72018-09-13 13:45:51 -070033 }
34 },
35 "type": "object"
36 },
37 "ClearLog": {
38 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -070039 "description": "The action to clear the log for this Log Service.",
Ed Tanous118b1c72018-09-13 13:45:51 -070040 "longDescription": "This action shall delete all entries found in the Entries collection for this Log Service.",
41 "parameters": {},
42 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070043 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070044 "description": "This property shall specify a valid odata or Redfish property.",
45 "type": [
46 "array",
47 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080048 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070049 "number",
50 "null",
51 "object",
52 "string"
53 ]
54 }
55 },
56 "properties": {
57 "target": {
58 "description": "Link to invoke action",
Ed Tanouscb103132019-10-08 11:34:22 -070059 "format": "uri-reference",
Ed Tanous118b1c72018-09-13 13:45:51 -070060 "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 Tanouscb103132019-10-08 11:34:22 -070077 "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 Tanous118b1c72018-09-13 13:45:51 -070079 "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 Tanouscb103132019-10-08 11:34:22 -070086 "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 Tanous118b1c72018-09-13 13:45:51 -070088 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070089 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070090 "description": "This property shall specify a valid odata or Redfish property.",
91 "type": [
92 "array",
93 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080094 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070095 "number",
96 "null",
97 "object",
98 "string"
99 ]
100 }
101 },
102 "properties": {
103 "@odata.context": {
Ed Tanouscb103132019-10-08 11:34:22 -0700104 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
Ed Tanous530520e2019-01-02 13:41:37 -0800105 },
106 "@odata.etag": {
Ed Tanouscb103132019-10-08 11:34:22 -0700107 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -0700108 },
109 "@odata.id": {
Ed Tanouscb103132019-10-08 11:34:22 -0700110 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -0700111 },
112 "@odata.type": {
Ed Tanouscb103132019-10-08 11:34:22 -0700113 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -0700114 },
115 "Actions": {
116 "$ref": "#/definitions/Actions",
Ed Tanouscb103132019-10-08 11:34:22 -0700117 "description": "The available actions for this Resource.",
118 "longDescription": "This property shall contain the available actions for this Resource."
Ed Tanous118b1c72018-09-13 13:45:51 -0700119 },
120 "DateTime": {
Ed Tanouscb103132019-10-08 11:34:22 -0700121 "description": "The current date and time, with UTC offset, that the Log Service uses to set or read time.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700122 "format": "date-time",
Ed Tanouscb103132019-10-08 11:34:22 -0700123 "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 Tanous118b1c72018-09-13 13:45:51 -0700124 "readonly": false,
125 "type": [
126 "string",
127 "null"
128 ]
129 },
130 "DateTimeLocalOffset": {
Ed Tanouscb103132019-10-08 11:34:22 -0700131 "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 Tanous118b1c72018-09-13 13:45:51 -0700134 "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 Tanouscb103132019-10-08 11:34:22 -0700153 "description": "The link to the log entry collection.",
154 "longDescription": "This property shall contain a link to a Resource Collection of type LogEntryCollection.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700155 "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 Tanouscb103132019-10-08 11:34:22 -0700170 "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 Tanous118b1c72018-09-13 13:45:51 -0700174 },
175 "MaxNumberOfRecords": {
Ed Tanouscb103132019-10-08 11:34:22 -0700176 "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 Tanous118b1c72018-09-13 13:45:51 -0700178 "minimum": 0,
179 "readonly": true,
Ed Tanous530520e2019-01-02 13:41:37 -0800180 "type": "integer"
Ed Tanous118b1c72018-09-13 13:45:51 -0700181 },
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 Tanouscb103132019-10-08 11:34:22 -0700188 "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 Tanous118b1c72018-09-13 13:45:51 -0700190 },
191 "OverWritePolicy": {
192 "$ref": "#/definitions/OverWritePolicy",
193 "description": "The overwrite policy for this service that takes place when the log is full.",
Ed Tanouscb103132019-10-08 11:34:22 -0700194 "longDescription": "This property shall indicate the policy of the Log Service when the MaxNumberOfRecords has been reached.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700195 "readonly": true
196 },
197 "ServiceEnabled": {
Ed Tanouscb103132019-10-08 11:34:22 -0700198 "description": "An indication of whether this service is enabled.",
199 "longDescription": "This property shall indicate whether this service is enabled.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700200 "readonly": false,
201 "type": [
202 "boolean",
203 "null"
204 ]
205 },
206 "Status": {
Ed Tanous530520e2019-01-02 13:41:37 -0800207 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
Ed Tanouscb103132019-10-08 11:34:22 -0700208 "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 Tanous118b1c72018-09-13 13:45:51 -0700210 }
211 },
212 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800213 "@odata.id",
214 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700215 "Id",
216 "Name"
217 ],
218 "type": "object"
219 },
220 "OemActions": {
221 "additionalProperties": true,
Ed Tanouscb103132019-10-08 11:34:22 -0700222 "description": "The available OEM-specific actions for this Resource.",
223 "longDescription": "This type shall contain the available OEM-specific actions for this Resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700224 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700225 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700226 "description": "This property shall specify a valid odata or Redfish property.",
227 "type": [
228 "array",
229 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800230 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700231 "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 Tanouscb103132019-10-08 11:34:22 -0700248 "NeverOverWrites": "When full, new entries to the log are discarded.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700249 "Unknown": "The overwrite policy is not known or is undefined.",
Ed Tanouscb103132019-10-08 11:34:22 -0700250 "WrapsWhenFull": "When full, new entries to the log overwrite earlier entries."
Ed Tanous118b1c72018-09-13 13:45:51 -0700251 },
252 "type": "string"
253 }
254 },
Ed Tanous530520e2019-01-02 13:41:37 -0800255 "owningEntity": "DMTF",
Ed Tanouscb103132019-10-08 11:34:22 -0700256 "release": "2017.3",
257 "title": "#LogService.v1_1_3.LogService"
Ed Tanous118b1c72018-09-13 13:45:51 -0700258}