Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 1 | { |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 2 | "$id": "http://redfish.dmtf.org/schemas/v1/TelemetryService.v1_1_0.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", |
| 5 | "copyright": "Copyright 2014-2018 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
| 6 | "definitions": { |
| 7 | "Actions": { |
| 8 | "additionalProperties": false, |
| 9 | "description": "The available actions for this resource.", |
| 10 | "longDescription": "This type shall contain the available actions for this resource.", |
| 11 | "patternProperties": { |
| 12 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 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", |
| 31 | "description": "This property contains the available OEM specific actions for this resource.", |
| 32 | "longDescription": "This property shall contain any additional OEM actions for this resource." |
| 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": { |
| 59 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 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", |
| 75 | "description": "A link to the Metric Definition.", |
| 76 | "longDescription": "The value shall be reference to the Metric Definition resource that describes what this Metric Report is capturing.", |
| 77 | "readonly": true, |
| 78 | "versionAdded": "v1_1_0" |
| 79 | }, |
| 80 | "MetricId": { |
| 81 | "description": "The metric definitions identifier for this metric.", |
| 82 | "longDescription": "The value shall be the same as the Id property of the source metric within the associated MetricDefinition.", |
| 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.", |
| 92 | "format": "uri", |
| 93 | "longDescription": "The value shall be URI to the a property following the JSON fragment notation, as defined by RFC6901, to identify an individual property in a Redfish resource.", |
| 94 | "readonly": true, |
| 95 | "type": [ |
| 96 | "string", |
| 97 | "null" |
| 98 | ], |
| 99 | "versionAdded": "v1_1_0" |
| 100 | }, |
| 101 | "MetricValue": { |
| 102 | "description": "The value identifies this resource.", |
| 103 | "longDescription": "The value of the metric represented as a string.", |
| 104 | "readonly": true, |
| 105 | "type": [ |
| 106 | "string", |
| 107 | "null" |
| 108 | ], |
| 109 | "versionAdded": "v1_1_0" |
| 110 | }, |
| 111 | "Timestamp": { |
| 112 | "description": "The time when the value of the metric 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.", |
| 113 | "format": "date-time", |
| 114 | "longDescription": "The value shall time when the metric value was obtained. Note that this may be different from the time when this instance is created.", |
| 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, |
| 127 | "description": "The available OEM specific actions for this resource.", |
| 128 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 129 | "patternProperties": { |
| 130 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 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, |
| 148 | "description": "This action is used to generate a metric report.", |
| 149 | "longDescription": "This action shall cause the event service to immediately generate the metric report, as an Alert Event. This message should then be sent to any appropriate ListenerDestination targets.", |
| 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": { |
| 162 | "description": "The Name property of the metric report in generated metric report.", |
| 163 | "longDescription": "This parameter shall be the value of the Name property in the generated metric report.", |
| 164 | "requiredParameter": true, |
| 165 | "type": "string" |
| 166 | }, |
| 167 | "MetricReportValues": { |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 168 | "deprecated": "This property has been Deprecated in favor of using the property 'GeneratedMetricReportValues'.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 169 | "description": "The content of MetricReportValues array in generated metric report.", |
| 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": { |
| 176 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 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", |
| 192 | "format": "uri", |
| 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, |
| 204 | "description": "This is the schema definition for the Metrics Service. It represents the properties for the service itself and has links to collections of metric definitions and metric report definitions.", |
| 205 | "longDescription": "This resource shall be used to represent an Metrics Service for a Redfish implementation. It represents the properties that affect the service itself.", |
| 206 | "patternProperties": { |
| 207 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 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": { |
| 222 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/context" |
| 223 | }, |
| 224 | "@odata.etag": { |
| 225 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/etag" |
| 226 | }, |
| 227 | "@odata.id": { |
| 228 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/id" |
| 229 | }, |
| 230 | "@odata.type": { |
| 231 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/type" |
| 232 | }, |
| 233 | "Actions": { |
| 234 | "$ref": "#/definitions/Actions", |
| 235 | "description": "The available actions for this resource.", |
| 236 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 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", |
| 255 | "description": "This is a reference to a Log Service used by the Telemetry Service.", |
| 256 | "longDescription": "The value of this property shall contain a reference to a LogService for the use by this Telemetry Service.", |
| 257 | "readonly": true |
| 258 | }, |
| 259 | "MaxReports": { |
| 260 | "description": "The maximum number of metric reports supported by this service.", |
| 261 | "longDescription": "The value shall be the maximum number of metric reports supported by this service.", |
| 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", |
| 270 | "description": "A link to the collection of Metric Definitions.", |
| 271 | "longDescription": "The entries of shall be resources of type MetricDefinitionCollection.", |
| 272 | "readonly": true |
| 273 | }, |
| 274 | "MetricReportDefinitions": { |
| 275 | "$ref": "http://redfish.dmtf.org/schemas/v1/MetricReportDefinitionCollection.json#/definitions/MetricReportDefinitionCollection", |
| 276 | "description": "A link to the collection of Metric Report Definitions.", |
| 277 | "longDescription": "The value shall be a link to a resource of type MetricReportDefinitionCollection.", |
| 278 | "readonly": true |
| 279 | }, |
| 280 | "MetricReports": { |
| 281 | "$ref": "http://redfish.dmtf.org/schemas/v1/MetricReportCollection.json#/definitions/MetricReportCollection", |
| 282 | "description": "A link to the collection of Metric Reports.", |
| 283 | "longDescription": "The value shall be a link to a resource of type MetricReportCollection.", |
| 284 | "readonly": true |
| 285 | }, |
| 286 | "MinCollectionInterval": { |
| 287 | "description": "The minimum time interval between collections supported by this service.", |
| 288 | "longDescription": "The value shall be the minimum time interval between collections supported by this service. The value shall conform to the Duration format.", |
| 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", |
| 302 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 303 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 304 | }, |
| 305 | "Status": { |
| 306 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status", |
| 307 | "description": "This property describes the status and health of the resource and its children.", |
| 308 | "longDescription": "This property shall contain any status or health properties of the resource." |
| 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 | }, |
| 322 | "longDescription": "The value shall define the function to apply over the collection duration.", |
| 323 | "readonly": false, |
| 324 | "type": "array" |
| 325 | }, |
| 326 | "Triggers": { |
| 327 | "$ref": "http://redfish.dmtf.org/schemas/v1/TriggersCollection.json#/definitions/TriggersCollection", |
| 328 | "description": "A link to the collection of Triggers, which apply to metrics.", |
| 329 | "longDescription": "The value shall be a link to a resource of type TriggersCollection.", |
| 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", |
| 344 | "title": "#TelemetryService.v1_1_0.TelemetryService" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 345 | } |