Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 1 | { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 2 | "$id": "http://redfish.dmtf.org/schemas/v1/TelemetryService.v1_1_2.json", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 3 | "$ref": "#/definitions/TelemetryService", |
| 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 | 530520e | 2019-01-02 13:41:37 -0800 | [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 | 530520e | 2019-01-02 13:41:37 -0800 | [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 | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 13 | "description": "This property shall specify a valid odata or Redfish property.", |
| 14 | "type": [ |
| 15 | "array", |
| 16 | "boolean", |
| 17 | "integer", |
| 18 | "number", |
| 19 | "null", |
| 20 | "object", |
| 21 | "string" |
| 22 | ] |
| 23 | } |
| 24 | }, |
| 25 | "properties": { |
| 26 | "#TelemetryService.SubmitTestMetricReport": { |
| 27 | "$ref": "#/definitions/SubmitTestMetricReport" |
| 28 | }, |
| 29 | "Oem": { |
| 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 | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 33 | } |
| 34 | }, |
| 35 | "type": "object" |
| 36 | }, |
| 37 | "CollectionFunction": { |
| 38 | "description": "An operation to perform over the sample.", |
| 39 | "enum": [ |
| 40 | "Average", |
| 41 | "Maximum", |
| 42 | "Minimum", |
| 43 | "Summation" |
| 44 | ], |
| 45 | "enumDescriptions": { |
| 46 | "Average": "An averaging function.", |
| 47 | "Maximum": "A maximum function.", |
| 48 | "Minimum": "A minimum function.", |
| 49 | "Summation": "A summation function." |
| 50 | }, |
| 51 | "longDescription": "If present, the metric value shall be computed according to this function.", |
| 52 | "type": "string" |
| 53 | }, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 54 | "MetricValue": { |
| 55 | "additionalProperties": false, |
| 56 | "description": "A metric value.", |
| 57 | "longDescription": "A metric value in the context of a Metric.", |
| 58 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 59 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 60 | "description": "This property shall specify a valid odata or Redfish property.", |
| 61 | "type": [ |
| 62 | "array", |
| 63 | "boolean", |
| 64 | "integer", |
| 65 | "number", |
| 66 | "null", |
| 67 | "object", |
| 68 | "string" |
| 69 | ] |
| 70 | } |
| 71 | }, |
| 72 | "properties": { |
| 73 | "MetricDefinition": { |
| 74 | "$ref": "http://redfish.dmtf.org/schemas/v1/MetricDefinition.json#/definitions/MetricDefinition", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 75 | "description": "The link to the metric.", |
| 76 | "longDescription": "The link to the Metric Definition Resource that describes what this metric report captures.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 77 | "readonly": true, |
| 78 | "versionAdded": "v1_1_0" |
| 79 | }, |
| 80 | "MetricId": { |
| 81 | "description": "The metric definitions identifier for this metric.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 82 | "longDescription": "This property shall contain the same as the Id property of the source metric within the associated MetricDefinition.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 83 | "readonly": true, |
| 84 | "type": [ |
| 85 | "string", |
| 86 | "null" |
| 87 | ], |
| 88 | "versionAdded": "v1_1_0" |
| 89 | }, |
| 90 | "MetricProperty": { |
| 91 | "description": "The URI for the property from which this metric is derived.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 92 | "format": "uri-reference", |
| 93 | "longDescription": "This property shall contain the URI to the property, which follows the RFC6901-defined JSON fragment notation, to identify an individual property in a Redfish Resource.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 94 | "readonly": true, |
| 95 | "type": [ |
| 96 | "string", |
| 97 | "null" |
| 98 | ], |
| 99 | "versionAdded": "v1_1_0" |
| 100 | }, |
| 101 | "MetricValue": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 102 | "description": "The metric value, as a string.", |
| 103 | "longDescription": "This property shall contain the metric value, as a string.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 104 | "readonly": true, |
| 105 | "type": [ |
| 106 | "string", |
| 107 | "null" |
| 108 | ], |
| 109 | "versionAdded": "v1_1_0" |
| 110 | }, |
| 111 | "Timestamp": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 112 | "description": "The time when the metric value is obtained. A management application may establish a time series of metric data by retrieving the instances of metric value and sorting them according to their Timestamp.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 113 | "format": "date-time", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 114 | "longDescription": "This property shall contain the time when the metric value was obtained. Note that this may be different from the time when this instance is created.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 115 | "readonly": true, |
| 116 | "type": [ |
| 117 | "string", |
| 118 | "null" |
| 119 | ], |
| 120 | "versionAdded": "v1_1_0" |
| 121 | } |
| 122 | }, |
| 123 | "type": "object" |
| 124 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 125 | "OemActions": { |
| 126 | "additionalProperties": true, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 127 | "description": "The available OEM-specific actions for this Resource.", |
| 128 | "longDescription": "This type shall contain the available OEM-specific actions for this Resource.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 129 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 130 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 131 | "description": "This property shall specify a valid odata or Redfish property.", |
| 132 | "type": [ |
| 133 | "array", |
| 134 | "boolean", |
| 135 | "integer", |
| 136 | "number", |
| 137 | "null", |
| 138 | "object", |
| 139 | "string" |
| 140 | ] |
| 141 | } |
| 142 | }, |
| 143 | "properties": {}, |
| 144 | "type": "object" |
| 145 | }, |
| 146 | "SubmitTestMetricReport": { |
| 147 | "additionalProperties": false, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 148 | "description": "This action generates a metric report.", |
| 149 | "longDescription": "This action shall cause the Event Service to immediately generate the metric report as an alert event. Then, this message should be sent to any appropriate event destinations.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 150 | "parameters": { |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 151 | "GeneratedMetricReportValues": { |
| 152 | "description": "The content of the MetricReportValues in the generated metric report.", |
| 153 | "items": { |
| 154 | "$ref": "#/definitions/MetricValue" |
| 155 | }, |
| 156 | "longDescription": "This parameter shall contain the contents of the MetricReportValues array property in the generated metric report.", |
| 157 | "requiredParameter": true, |
| 158 | "type": "array", |
| 159 | "versionAdded": "v1_1_0" |
| 160 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 161 | "MetricReportName": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 162 | "description": "The name of the metric report in generated metric report.", |
| 163 | "longDescription": "This parameter shall contain the name of the generated metric report.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 164 | "requiredParameter": true, |
| 165 | "type": "string" |
| 166 | }, |
| 167 | "MetricReportValues": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 168 | "deprecated": "This property has been deprecated in favor of using the property 'GeneratedMetricReportValues'.", |
| 169 | "description": "The contents of MetricReportValues array in the generated metric report.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 170 | "longDescription": "This parameter shall contain the contents of the MetricReportValues array property in the generated metric report.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 171 | "type": "string", |
| 172 | "versionDeprecated": "v1_1_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 173 | } |
| 174 | }, |
| 175 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 176 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 177 | "description": "This property shall specify a valid odata or Redfish property.", |
| 178 | "type": [ |
| 179 | "array", |
| 180 | "boolean", |
| 181 | "integer", |
| 182 | "number", |
| 183 | "null", |
| 184 | "object", |
| 185 | "string" |
| 186 | ] |
| 187 | } |
| 188 | }, |
| 189 | "properties": { |
| 190 | "target": { |
| 191 | "description": "Link to invoke action", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 192 | "format": "uri-reference", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 193 | "type": "string" |
| 194 | }, |
| 195 | "title": { |
| 196 | "description": "Friendly action name", |
| 197 | "type": "string" |
| 198 | } |
| 199 | }, |
| 200 | "type": "object" |
| 201 | }, |
| 202 | "TelemetryService": { |
| 203 | "additionalProperties": false, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 204 | "description": "The TelemetryService schema describes a Telemetry Service. The Telemetry Service is used to for collecting and reporting metric data within the Redfish Service.", |
| 205 | "longDescription": "This Resource contains a Telemetry Service for a Redfish implementation.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 206 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 207 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 208 | "description": "This property shall specify a valid odata or Redfish property.", |
| 209 | "type": [ |
| 210 | "array", |
| 211 | "boolean", |
| 212 | "integer", |
| 213 | "number", |
| 214 | "null", |
| 215 | "object", |
| 216 | "string" |
| 217 | ] |
| 218 | } |
| 219 | }, |
| 220 | "properties": { |
| 221 | "@odata.context": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 222 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 223 | }, |
| 224 | "@odata.etag": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 225 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 226 | }, |
| 227 | "@odata.id": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 228 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 229 | }, |
| 230 | "@odata.type": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 231 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 232 | }, |
| 233 | "Actions": { |
| 234 | "$ref": "#/definitions/Actions", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 235 | "description": "The available actions for this Resource.", |
| 236 | "longDescription": "This property shall contain the available actions for this Resource." |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 237 | }, |
| 238 | "Description": { |
| 239 | "anyOf": [ |
| 240 | { |
| 241 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 242 | }, |
| 243 | { |
| 244 | "type": "null" |
| 245 | } |
| 246 | ], |
| 247 | "readonly": true |
| 248 | }, |
| 249 | "Id": { |
| 250 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 251 | "readonly": true |
| 252 | }, |
| 253 | "LogService": { |
| 254 | "$ref": "http://redfish.dmtf.org/schemas/v1/LogService.json#/definitions/LogService", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 255 | "description": "The link to a Log Service that the Telemetry Service uses. This service may be a dedicated Log Service or a pointer a Log Service under another entity, such as Manager.", |
| 256 | "longDescription": "This property shall contain a link to a Log Service that this Telemetry Service uses.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 257 | "readonly": true |
| 258 | }, |
| 259 | "MaxReports": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 260 | "description": "The maximum number of metric reports that this service supports.", |
| 261 | "longDescription": "This property shall contain the maximum number of metric reports that this service supports.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 262 | "readonly": true, |
| 263 | "type": [ |
| 264 | "integer", |
| 265 | "null" |
| 266 | ] |
| 267 | }, |
| 268 | "MetricDefinitions": { |
| 269 | "$ref": "http://redfish.dmtf.org/schemas/v1/MetricDefinitionCollection.json#/definitions/MetricDefinitionCollection", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 270 | "description": "The link to the collection of metric definitions.", |
| 271 | "longDescription": "This property shall contain a link to a Resource Collection of type MetricDefinitionCollection.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 272 | "readonly": true |
| 273 | }, |
| 274 | "MetricReportDefinitions": { |
| 275 | "$ref": "http://redfish.dmtf.org/schemas/v1/MetricReportDefinitionCollection.json#/definitions/MetricReportDefinitionCollection", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 276 | "description": "The link to the collection of metric report definitions.", |
| 277 | "longDescription": "This property shall contain a link to a Resource Collection of type MetricReportDefinitionCollection.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 278 | "readonly": true |
| 279 | }, |
| 280 | "MetricReports": { |
| 281 | "$ref": "http://redfish.dmtf.org/schemas/v1/MetricReportCollection.json#/definitions/MetricReportCollection", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 282 | "description": "The link to the collection of metric reports.", |
| 283 | "longDescription": "This property shall contain a link to a Resource Collection of type MetricReportCollection.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 284 | "readonly": true |
| 285 | }, |
| 286 | "MinCollectionInterval": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 287 | "description": "The minimum time interval between gathering metric data that this service allows.", |
| 288 | "longDescription": "This property shall contain the minimum time interval between gathering metric data that this service allows.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 289 | "pattern": "-?P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?", |
| 290 | "readonly": true, |
| 291 | "type": [ |
| 292 | "string", |
| 293 | "null" |
| 294 | ] |
| 295 | }, |
| 296 | "Name": { |
| 297 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 298 | "readonly": true |
| 299 | }, |
| 300 | "Oem": { |
| 301 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 302 | "description": "The OEM extension property.", |
| 303 | "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 | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 304 | }, |
| 305 | "Status": { |
| 306 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 307 | "description": "The status and health of the Resource and its subordinate or dependent Resources.", |
| 308 | "longDescription": "This property shall contain any status or health properties of the Resource." |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 309 | }, |
| 310 | "SupportedCollectionFunctions": { |
| 311 | "description": "The functions that can be performed over each metric.", |
| 312 | "items": { |
| 313 | "anyOf": [ |
| 314 | { |
| 315 | "$ref": "#/definitions/CollectionFunction" |
| 316 | }, |
| 317 | { |
| 318 | "type": "null" |
| 319 | } |
| 320 | ] |
| 321 | }, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 322 | "longDescription": "This property shall contain the function to apply over the collection duration.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 323 | "readonly": false, |
| 324 | "type": "array" |
| 325 | }, |
| 326 | "Triggers": { |
| 327 | "$ref": "http://redfish.dmtf.org/schemas/v1/TriggersCollection.json#/definitions/TriggersCollection", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 328 | "description": "The link to the collection of triggers, which apply to metrics.", |
| 329 | "longDescription": "This property shall contain a link to a Resource Collection of type TriggersCollection.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 330 | "readonly": true |
| 331 | } |
| 332 | }, |
| 333 | "required": [ |
| 334 | "@odata.id", |
| 335 | "@odata.type", |
| 336 | "Id", |
| 337 | "Name" |
| 338 | ], |
| 339 | "type": "object" |
| 340 | } |
| 341 | }, |
| 342 | "owningEntity": "DMTF", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 343 | "release": "2018.3", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 344 | "title": "#TelemetryService.v1_1_2.TelemetryService" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 345 | } |