1*28cfceb2SGunnar Mills{
2*28cfceb2SGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/MetricReport.v1_5_2.json",
3*28cfceb2SGunnar Mills    "$ref": "#/definitions/MetricReport",
4*28cfceb2SGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*28cfceb2SGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*28cfceb2SGunnar Mills    "definitions": {
7*28cfceb2SGunnar Mills        "Actions": {
8*28cfceb2SGunnar Mills            "additionalProperties": false,
9*28cfceb2SGunnar Mills            "description": "The available actions for this resource.",
10*28cfceb2SGunnar Mills            "longDescription": "This type shall contain the available actions for this resource.",
11*28cfceb2SGunnar Mills            "patternProperties": {
12*28cfceb2SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*28cfceb2SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*28cfceb2SGunnar Mills                    "type": [
15*28cfceb2SGunnar Mills                        "array",
16*28cfceb2SGunnar Mills                        "boolean",
17*28cfceb2SGunnar Mills                        "integer",
18*28cfceb2SGunnar Mills                        "number",
19*28cfceb2SGunnar Mills                        "null",
20*28cfceb2SGunnar Mills                        "object",
21*28cfceb2SGunnar Mills                        "string"
22*28cfceb2SGunnar Mills                    ]
23*28cfceb2SGunnar Mills                }
24*28cfceb2SGunnar Mills            },
25*28cfceb2SGunnar Mills            "properties": {
26*28cfceb2SGunnar Mills                "Oem": {
27*28cfceb2SGunnar Mills                    "$ref": "#/definitions/OemActions",
28*28cfceb2SGunnar Mills                    "description": "The available OEM-specific actions for this resource.",
29*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
30*28cfceb2SGunnar Mills                }
31*28cfceb2SGunnar Mills            },
32*28cfceb2SGunnar Mills            "type": "object"
33*28cfceb2SGunnar Mills        },
34*28cfceb2SGunnar Mills        "MetricReport": {
35*28cfceb2SGunnar Mills            "additionalProperties": false,
36*28cfceb2SGunnar Mills            "description": "The `MetricReport` schema represents a set of collected metrics.",
37*28cfceb2SGunnar Mills            "longDescription": "This resource shall represent a metric report in a Redfish implementation.  When a metric report is deleted, the historic metric data used to generate the report shall be deleted as well unless other metric reports are consuming the data.",
38*28cfceb2SGunnar Mills            "patternProperties": {
39*28cfceb2SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
40*28cfceb2SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
41*28cfceb2SGunnar Mills                    "type": [
42*28cfceb2SGunnar Mills                        "array",
43*28cfceb2SGunnar Mills                        "boolean",
44*28cfceb2SGunnar Mills                        "integer",
45*28cfceb2SGunnar Mills                        "number",
46*28cfceb2SGunnar Mills                        "null",
47*28cfceb2SGunnar Mills                        "object",
48*28cfceb2SGunnar Mills                        "string"
49*28cfceb2SGunnar Mills                    ]
50*28cfceb2SGunnar Mills                }
51*28cfceb2SGunnar Mills            },
52*28cfceb2SGunnar Mills            "properties": {
53*28cfceb2SGunnar Mills                "@odata.context": {
54*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
55*28cfceb2SGunnar Mills                },
56*28cfceb2SGunnar Mills                "@odata.etag": {
57*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
58*28cfceb2SGunnar Mills                },
59*28cfceb2SGunnar Mills                "@odata.id": {
60*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
61*28cfceb2SGunnar Mills                },
62*28cfceb2SGunnar Mills                "@odata.type": {
63*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
64*28cfceb2SGunnar Mills                },
65*28cfceb2SGunnar Mills                "Actions": {
66*28cfceb2SGunnar Mills                    "$ref": "#/definitions/Actions",
67*28cfceb2SGunnar Mills                    "description": "The available actions for this resource.",
68*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the available actions for this resource."
69*28cfceb2SGunnar Mills                },
70*28cfceb2SGunnar Mills                "Context": {
71*28cfceb2SGunnar Mills                    "description": "A context can be supplied at subscription time.  This property is the context value supplied by the subscriber.",
72*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain a client supplied context for the event destination to which this event is being sent.  This property shall only be present when sent as a payload in an event.",
73*28cfceb2SGunnar Mills                    "readonly": true,
74*28cfceb2SGunnar Mills                    "type": "string",
75*28cfceb2SGunnar Mills                    "versionAdded": "v1_4_0"
76*28cfceb2SGunnar Mills                },
77*28cfceb2SGunnar Mills                "Description": {
78*28cfceb2SGunnar Mills                    "anyOf": [
79*28cfceb2SGunnar Mills                        {
80*28cfceb2SGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
81*28cfceb2SGunnar Mills                        },
82*28cfceb2SGunnar Mills                        {
83*28cfceb2SGunnar Mills                            "type": "null"
84*28cfceb2SGunnar Mills                        }
85*28cfceb2SGunnar Mills                    ],
86*28cfceb2SGunnar Mills                    "readonly": true
87*28cfceb2SGunnar Mills                },
88*28cfceb2SGunnar Mills                "Id": {
89*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
90*28cfceb2SGunnar Mills                    "readonly": true
91*28cfceb2SGunnar Mills                },
92*28cfceb2SGunnar Mills                "MetricReportDefinition": {
93*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/MetricReportDefinition.json#/definitions/MetricReportDefinition",
94*28cfceb2SGunnar Mills                    "description": "The link to the definition of this metric report.",
95*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain a link to a resource of type `MetricReportDefinition`.",
96*28cfceb2SGunnar Mills                    "readonly": true
97*28cfceb2SGunnar Mills                },
98*28cfceb2SGunnar Mills                "MetricValues": {
99*28cfceb2SGunnar Mills                    "description": "An array of metric values for the metered items of this metric report.",
100*28cfceb2SGunnar Mills                    "items": {
101*28cfceb2SGunnar Mills                        "$ref": "#/definitions/MetricValue"
102*28cfceb2SGunnar Mills                    },
103*28cfceb2SGunnar Mills                    "longDescription": "The values shall be metric values for this metric report.",
104*28cfceb2SGunnar Mills                    "type": "array"
105*28cfceb2SGunnar Mills                },
106*28cfceb2SGunnar Mills                "Name": {
107*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
108*28cfceb2SGunnar Mills                    "readonly": true
109*28cfceb2SGunnar Mills                },
110*28cfceb2SGunnar Mills                "Oem": {
111*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
112*28cfceb2SGunnar Mills                    "description": "The OEM extension property.",
113*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
114*28cfceb2SGunnar Mills                },
115*28cfceb2SGunnar Mills                "ReportSequence": {
116*28cfceb2SGunnar Mills                    "deprecated": "This property has been deprecated due to specification changes with regards to Server-Sent Events.",
117*28cfceb2SGunnar Mills                    "description": "The current sequence identifier for this metric report.",
118*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the current sequence identifier for this metric report.  The sequence identifier is a unique identifier assigned by the service for serializing metric reports as they are produced.",
119*28cfceb2SGunnar Mills                    "readonly": true,
120*28cfceb2SGunnar Mills                    "type": "string",
121*28cfceb2SGunnar Mills                    "versionDeprecated": "v1_3_0"
122*28cfceb2SGunnar Mills                },
123*28cfceb2SGunnar Mills                "Timestamp": {
124*28cfceb2SGunnar Mills                    "description": "The time associated with the metric report in its entirety.  The time of the metric report can be relevant when the time of individual metrics are minimally different.",
125*28cfceb2SGunnar Mills                    "format": "date-time",
126*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the time when the metric report was generated.",
127*28cfceb2SGunnar Mills                    "readonly": true,
128*28cfceb2SGunnar Mills                    "type": [
129*28cfceb2SGunnar Mills                        "string",
130*28cfceb2SGunnar Mills                        "null"
131*28cfceb2SGunnar Mills                    ],
132*28cfceb2SGunnar Mills                    "versionAdded": "v1_1_0"
133*28cfceb2SGunnar Mills                }
134*28cfceb2SGunnar Mills            },
135*28cfceb2SGunnar Mills            "required": [
136*28cfceb2SGunnar Mills                "@odata.id",
137*28cfceb2SGunnar Mills                "@odata.type",
138*28cfceb2SGunnar Mills                "Id",
139*28cfceb2SGunnar Mills                "Name"
140*28cfceb2SGunnar Mills            ],
141*28cfceb2SGunnar Mills            "type": "object"
142*28cfceb2SGunnar Mills        },
143*28cfceb2SGunnar Mills        "MetricValue": {
144*28cfceb2SGunnar Mills            "additionalProperties": false,
145*28cfceb2SGunnar Mills            "description": "Properties that capture a metric value and other associated information.",
146*28cfceb2SGunnar Mills            "longDescription": "This type shall contain properties that capture a metric value and other associated information.",
147*28cfceb2SGunnar Mills            "patternProperties": {
148*28cfceb2SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
149*28cfceb2SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
150*28cfceb2SGunnar Mills                    "type": [
151*28cfceb2SGunnar Mills                        "array",
152*28cfceb2SGunnar Mills                        "boolean",
153*28cfceb2SGunnar Mills                        "integer",
154*28cfceb2SGunnar Mills                        "number",
155*28cfceb2SGunnar Mills                        "null",
156*28cfceb2SGunnar Mills                        "object",
157*28cfceb2SGunnar Mills                        "string"
158*28cfceb2SGunnar Mills                    ]
159*28cfceb2SGunnar Mills                }
160*28cfceb2SGunnar Mills            },
161*28cfceb2SGunnar Mills            "properties": {
162*28cfceb2SGunnar Mills                "MetricDefinition": {
163*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/MetricDefinition.json#/definitions/MetricDefinition",
164*28cfceb2SGunnar Mills                    "deprecated": "This property has been deprecated in favor of the `MetricId` property.",
165*28cfceb2SGunnar Mills                    "description": "The link to the metric definition for this metric.",
166*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain a link to a resource of type `MetricDefinition` that describes what this metric value captures.",
167*28cfceb2SGunnar Mills                    "readonly": true,
168*28cfceb2SGunnar Mills                    "versionDeprecated": "v1_5_0"
169*28cfceb2SGunnar Mills                },
170*28cfceb2SGunnar Mills                "MetricId": {
171*28cfceb2SGunnar Mills                    "description": "The metric definitions identifier that contains additional information for the source metric.",
172*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the value of the `Id` property of the `MetricDefinition` resource that contains additional information for the source metric.",
173*28cfceb2SGunnar Mills                    "readonly": true,
174*28cfceb2SGunnar Mills                    "type": [
175*28cfceb2SGunnar Mills                        "string",
176*28cfceb2SGunnar Mills                        "null"
177*28cfceb2SGunnar Mills                    ]
178*28cfceb2SGunnar Mills                },
179*28cfceb2SGunnar Mills                "MetricProperty": {
180*28cfceb2SGunnar Mills                    "description": "The URI for the property from which this metric is derived.",
181*28cfceb2SGunnar Mills                    "format": "uri-reference",
182*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain a URI following RFC6901-specified JSON pointer notation to the property from which this metric is derived.  The value of `MetricValue` may contain additional calculations performed on the property based upon the configuration of the `MetricReportDefinition`.",
183*28cfceb2SGunnar Mills                    "readonly": true,
184*28cfceb2SGunnar Mills                    "type": [
185*28cfceb2SGunnar Mills                        "string",
186*28cfceb2SGunnar Mills                        "null"
187*28cfceb2SGunnar Mills                    ]
188*28cfceb2SGunnar Mills                },
189*28cfceb2SGunnar Mills                "MetricValue": {
190*28cfceb2SGunnar Mills                    "description": "The metric value, as a string.",
191*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the metric value, as a string.  For numeric metrics, the service shall convert the number to a string representation of the number.  For array metrics, the service shall convert the array to an RFC8259-defined JSON string.  For boolean metrics, this property shall contain the strings `true` or `false`.  If the metric value is `null`, this property shall contain `null`.",
192*28cfceb2SGunnar Mills                    "readonly": true,
193*28cfceb2SGunnar Mills                    "type": [
194*28cfceb2SGunnar Mills                        "string",
195*28cfceb2SGunnar Mills                        "null"
196*28cfceb2SGunnar Mills                    ]
197*28cfceb2SGunnar Mills                },
198*28cfceb2SGunnar Mills                "Oem": {
199*28cfceb2SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
200*28cfceb2SGunnar Mills                    "description": "The OEM extension property.",
201*28cfceb2SGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements.",
202*28cfceb2SGunnar Mills                    "versionAdded": "v1_2_0"
203*28cfceb2SGunnar Mills                },
204*28cfceb2SGunnar Mills                "Timestamp": {
205*28cfceb2SGunnar Mills                    "description": "The date and time when the metric is obtained.  A management application can establish a time series of metric data by retrieving the instances of metric value and sorting them according to their timestamp.",
206*28cfceb2SGunnar Mills                    "format": "date-time",
207*28cfceb2SGunnar Mills                    "longDescription": "The value shall time when the metric value was obtained.  Note that this value may be different from the time when this instance is created.",
208*28cfceb2SGunnar Mills                    "readonly": true,
209*28cfceb2SGunnar Mills                    "type": [
210*28cfceb2SGunnar Mills                        "string",
211*28cfceb2SGunnar Mills                        "null"
212*28cfceb2SGunnar Mills                    ]
213*28cfceb2SGunnar Mills                }
214*28cfceb2SGunnar Mills            },
215*28cfceb2SGunnar Mills            "type": "object"
216*28cfceb2SGunnar Mills        },
217*28cfceb2SGunnar Mills        "OemActions": {
218*28cfceb2SGunnar Mills            "additionalProperties": true,
219*28cfceb2SGunnar Mills            "description": "The available OEM-specific actions for this resource.",
220*28cfceb2SGunnar Mills            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
221*28cfceb2SGunnar Mills            "patternProperties": {
222*28cfceb2SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
223*28cfceb2SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
224*28cfceb2SGunnar Mills                    "type": [
225*28cfceb2SGunnar Mills                        "array",
226*28cfceb2SGunnar Mills                        "boolean",
227*28cfceb2SGunnar Mills                        "integer",
228*28cfceb2SGunnar Mills                        "number",
229*28cfceb2SGunnar Mills                        "null",
230*28cfceb2SGunnar Mills                        "object",
231*28cfceb2SGunnar Mills                        "string"
232*28cfceb2SGunnar Mills                    ]
233*28cfceb2SGunnar Mills                }
234*28cfceb2SGunnar Mills            },
235*28cfceb2SGunnar Mills            "properties": {},
236*28cfceb2SGunnar Mills            "type": "object"
237*28cfceb2SGunnar Mills        }
238*28cfceb2SGunnar Mills    },
239*28cfceb2SGunnar Mills    "language": "en",
240*28cfceb2SGunnar Mills    "owningEntity": "DMTF",
241*28cfceb2SGunnar Mills    "release": "2022.2",
242*28cfceb2SGunnar Mills    "title": "#MetricReport.v1_5_2.MetricReport"
243*28cfceb2SGunnar Mills}