xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/PowerDistributionMetrics.v1_4_0.json (revision d125652e8a30dfeaad88bbfa5b1e04a80610469c)
1*d125652eSGunnar Mills{
2*d125652eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/PowerDistributionMetrics.v1_4_0.json",
3*d125652eSGunnar Mills    "$ref": "#/definitions/PowerDistributionMetrics",
4*d125652eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*d125652eSGunnar Mills    "copyright": "Copyright 2014-2025 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*d125652eSGunnar Mills    "definitions": {
7*d125652eSGunnar Mills        "Actions": {
8*d125652eSGunnar Mills            "additionalProperties": false,
9*d125652eSGunnar Mills            "description": "The available actions for this resource.",
10*d125652eSGunnar Mills            "longDescription": "This type shall contain the available actions for this resource.",
11*d125652eSGunnar Mills            "patternProperties": {
12*d125652eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*d125652eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*d125652eSGunnar Mills                    "type": [
15*d125652eSGunnar Mills                        "array",
16*d125652eSGunnar Mills                        "boolean",
17*d125652eSGunnar Mills                        "integer",
18*d125652eSGunnar Mills                        "number",
19*d125652eSGunnar Mills                        "null",
20*d125652eSGunnar Mills                        "object",
21*d125652eSGunnar Mills                        "string"
22*d125652eSGunnar Mills                    ]
23*d125652eSGunnar Mills                }
24*d125652eSGunnar Mills            },
25*d125652eSGunnar Mills            "properties": {
26*d125652eSGunnar Mills                "#PowerDistributionMetrics.ResetMetrics": {
27*d125652eSGunnar Mills                    "$ref": "#/definitions/ResetMetrics"
28*d125652eSGunnar Mills                },
29*d125652eSGunnar Mills                "Oem": {
30*d125652eSGunnar Mills                    "$ref": "#/definitions/OemActions",
31*d125652eSGunnar Mills                    "description": "The available OEM-specific actions for this resource.",
32*d125652eSGunnar Mills                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
33*d125652eSGunnar Mills                }
34*d125652eSGunnar Mills            },
35*d125652eSGunnar Mills            "type": "object"
36*d125652eSGunnar Mills        },
37*d125652eSGunnar Mills        "OemActions": {
38*d125652eSGunnar Mills            "additionalProperties": true,
39*d125652eSGunnar Mills            "description": "The available OEM-specific actions for this resource.",
40*d125652eSGunnar Mills            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
41*d125652eSGunnar Mills            "patternProperties": {
42*d125652eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
43*d125652eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
44*d125652eSGunnar Mills                    "type": [
45*d125652eSGunnar Mills                        "array",
46*d125652eSGunnar Mills                        "boolean",
47*d125652eSGunnar Mills                        "integer",
48*d125652eSGunnar Mills                        "number",
49*d125652eSGunnar Mills                        "null",
50*d125652eSGunnar Mills                        "object",
51*d125652eSGunnar Mills                        "string"
52*d125652eSGunnar Mills                    ]
53*d125652eSGunnar Mills                }
54*d125652eSGunnar Mills            },
55*d125652eSGunnar Mills            "properties": {},
56*d125652eSGunnar Mills            "type": "object"
57*d125652eSGunnar Mills        },
58*d125652eSGunnar Mills        "PowerDistributionMetrics": {
59*d125652eSGunnar Mills            "additionalProperties": false,
60*d125652eSGunnar Mills            "description": "The `PowerDistributionMetrics` schema contains metrics of a power distribution component or unit, such as a floor power distribution unit (PDU) or switchgear.",
61*d125652eSGunnar Mills            "longDescription": "This resource shall represent the metrics of a power distribution component or unit for a Redfish implementation.",
62*d125652eSGunnar Mills            "patternProperties": {
63*d125652eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
64*d125652eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
65*d125652eSGunnar Mills                    "type": [
66*d125652eSGunnar Mills                        "array",
67*d125652eSGunnar Mills                        "boolean",
68*d125652eSGunnar Mills                        "integer",
69*d125652eSGunnar Mills                        "number",
70*d125652eSGunnar Mills                        "null",
71*d125652eSGunnar Mills                        "object",
72*d125652eSGunnar Mills                        "string"
73*d125652eSGunnar Mills                    ]
74*d125652eSGunnar Mills                }
75*d125652eSGunnar Mills            },
76*d125652eSGunnar Mills            "properties": {
77*d125652eSGunnar Mills                "@odata.context": {
78*d125652eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
79*d125652eSGunnar Mills                },
80*d125652eSGunnar Mills                "@odata.etag": {
81*d125652eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
82*d125652eSGunnar Mills                },
83*d125652eSGunnar Mills                "@odata.id": {
84*d125652eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
85*d125652eSGunnar Mills                },
86*d125652eSGunnar Mills                "@odata.type": {
87*d125652eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
88*d125652eSGunnar Mills                },
89*d125652eSGunnar Mills                "AbsoluteHumidity": {
90*d125652eSGunnar Mills                    "anyOf": [
91*d125652eSGunnar Mills                        {
92*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorExcerpt"
93*d125652eSGunnar Mills                        },
94*d125652eSGunnar Mills                        {
95*d125652eSGunnar Mills                            "type": "null"
96*d125652eSGunnar Mills                        }
97*d125652eSGunnar Mills                    ],
98*d125652eSGunnar Mills                    "description": "Absolute humidity (g/m^3).",
99*d125652eSGunnar Mills                    "excerptCopy": "SensorExcerpt",
100*d125652eSGunnar Mills                    "longDescription": "This property shall contain the absolute (volumetric) humidity sensor reading, in grams per cubic meter units, for this resource.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `AbsoluteHumidity`.",
101*d125652eSGunnar Mills                    "versionAdded": "v1_3_0"
102*d125652eSGunnar Mills                },
103*d125652eSGunnar Mills                "Actions": {
104*d125652eSGunnar Mills                    "$ref": "#/definitions/Actions",
105*d125652eSGunnar Mills                    "description": "The available actions for this resource.",
106*d125652eSGunnar Mills                    "longDescription": "This property shall contain the available actions for this resource."
107*d125652eSGunnar Mills                },
108*d125652eSGunnar Mills                "AmbientTemperatureCelsius": {
109*d125652eSGunnar Mills                    "anyOf": [
110*d125652eSGunnar Mills                        {
111*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorExcerpt"
112*d125652eSGunnar Mills                        },
113*d125652eSGunnar Mills                        {
114*d125652eSGunnar Mills                            "type": "null"
115*d125652eSGunnar Mills                        }
116*d125652eSGunnar Mills                    ],
117*d125652eSGunnar Mills                    "description": "Ambient temperature (Celsius).",
118*d125652eSGunnar Mills                    "excerptCopy": "SensorExcerpt",
119*d125652eSGunnar Mills                    "longDescription": "This property shall contain the ambient temperature, in degree Celsius units, for this resource.  The ambient temperature shall be the temperature measured at a point exterior to the `Chassis` containing this resource.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `Temperature`.  This property shall only be present, if supported, in resource instances subordinate to a `Chassis` or `CoolingUnit` resource.",
120*d125652eSGunnar Mills                    "versionAdded": "v1_4_0"
121*d125652eSGunnar Mills                },
122*d125652eSGunnar Mills                "Description": {
123*d125652eSGunnar Mills                    "anyOf": [
124*d125652eSGunnar Mills                        {
125*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
126*d125652eSGunnar Mills                        },
127*d125652eSGunnar Mills                        {
128*d125652eSGunnar Mills                            "type": "null"
129*d125652eSGunnar Mills                        }
130*d125652eSGunnar Mills                    ],
131*d125652eSGunnar Mills                    "readonly": true
132*d125652eSGunnar Mills                },
133*d125652eSGunnar Mills                "EnergykWh": {
134*d125652eSGunnar Mills                    "anyOf": [
135*d125652eSGunnar Mills                        {
136*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorEnergykWhExcerpt"
137*d125652eSGunnar Mills                        },
138*d125652eSGunnar Mills                        {
139*d125652eSGunnar Mills                            "type": "null"
140*d125652eSGunnar Mills                        }
141*d125652eSGunnar Mills                    ],
142*d125652eSGunnar Mills                    "description": "Energy consumption (kWh).",
143*d125652eSGunnar Mills                    "excerptCopy": "SensorEnergykWhExcerpt",
144*d125652eSGunnar Mills                    "longDescription": "This property shall contain the total energy, in kilowatt-hour units, for this resource that represents the `Total` `ElectricalContext` sensor when multiple energy sensors exist.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `EnergykWh`."
145*d125652eSGunnar Mills                },
146*d125652eSGunnar Mills                "HumidityPercent": {
147*d125652eSGunnar Mills                    "anyOf": [
148*d125652eSGunnar Mills                        {
149*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorExcerpt"
150*d125652eSGunnar Mills                        },
151*d125652eSGunnar Mills                        {
152*d125652eSGunnar Mills                            "type": "null"
153*d125652eSGunnar Mills                        }
154*d125652eSGunnar Mills                    ],
155*d125652eSGunnar Mills                    "description": "Humidity (percent).",
156*d125652eSGunnar Mills                    "excerptCopy": "SensorExcerpt",
157*d125652eSGunnar Mills                    "longDescription": "This property shall contain the humidity, in percent units, for this resource.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `Humidity`.",
158*d125652eSGunnar Mills                    "versionAdded": "v1_1_0"
159*d125652eSGunnar Mills                },
160*d125652eSGunnar Mills                "Id": {
161*d125652eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
162*d125652eSGunnar Mills                    "readonly": true
163*d125652eSGunnar Mills                },
164*d125652eSGunnar Mills                "Name": {
165*d125652eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
166*d125652eSGunnar Mills                    "readonly": true
167*d125652eSGunnar Mills                },
168*d125652eSGunnar Mills                "Oem": {
169*d125652eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
170*d125652eSGunnar Mills                    "description": "The OEM extension property.",
171*d125652eSGunnar 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."
172*d125652eSGunnar Mills                },
173*d125652eSGunnar Mills                "PowerLoadPercent": {
174*d125652eSGunnar Mills                    "anyOf": [
175*d125652eSGunnar Mills                        {
176*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorExcerpt"
177*d125652eSGunnar Mills                        },
178*d125652eSGunnar Mills                        {
179*d125652eSGunnar Mills                            "type": "null"
180*d125652eSGunnar Mills                        }
181*d125652eSGunnar Mills                    ],
182*d125652eSGunnar Mills                    "description": "The power load (percent) for this equipment.",
183*d125652eSGunnar Mills                    "excerptCopy": "SensorExcerpt",
184*d125652eSGunnar Mills                    "longDescription": "This property shall contain the power load, in percent units, for this device that represents the `Total` `ElectricalContext` for this device.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `Percent`.",
185*d125652eSGunnar Mills                    "versionAdded": "v1_2_0"
186*d125652eSGunnar Mills                },
187*d125652eSGunnar Mills                "PowerWatts": {
188*d125652eSGunnar Mills                    "anyOf": [
189*d125652eSGunnar Mills                        {
190*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorPowerExcerpt"
191*d125652eSGunnar Mills                        },
192*d125652eSGunnar Mills                        {
193*d125652eSGunnar Mills                            "type": "null"
194*d125652eSGunnar Mills                        }
195*d125652eSGunnar Mills                    ],
196*d125652eSGunnar Mills                    "description": "Power consumption (W).",
197*d125652eSGunnar Mills                    "excerptCopy": "SensorPowerExcerpt",
198*d125652eSGunnar Mills                    "longDescription": "This property shall contain the total power, in watt units, for this resource that represents the `Total` `ElectricalContext` sensor when multiple power sensors exist.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `Power`."
199*d125652eSGunnar Mills                },
200*d125652eSGunnar Mills                "TemperatureCelsius": {
201*d125652eSGunnar Mills                    "anyOf": [
202*d125652eSGunnar Mills                        {
203*d125652eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorExcerpt"
204*d125652eSGunnar Mills                        },
205*d125652eSGunnar Mills                        {
206*d125652eSGunnar Mills                            "type": "null"
207*d125652eSGunnar Mills                        }
208*d125652eSGunnar Mills                    ],
209*d125652eSGunnar Mills                    "description": "Temperature (Celsius).",
210*d125652eSGunnar Mills                    "excerptCopy": "SensorExcerpt",
211*d125652eSGunnar Mills                    "longDescription": "This property shall contain the temperature, in degree Celsius units, for this resource.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `Temperature`.",
212*d125652eSGunnar Mills                    "versionAdded": "v1_1_0"
213*d125652eSGunnar Mills                }
214*d125652eSGunnar Mills            },
215*d125652eSGunnar Mills            "required": [
216*d125652eSGunnar Mills                "@odata.id",
217*d125652eSGunnar Mills                "@odata.type",
218*d125652eSGunnar Mills                "Id",
219*d125652eSGunnar Mills                "Name"
220*d125652eSGunnar Mills            ],
221*d125652eSGunnar Mills            "type": "object"
222*d125652eSGunnar Mills        },
223*d125652eSGunnar Mills        "ResetMetrics": {
224*d125652eSGunnar Mills            "additionalProperties": false,
225*d125652eSGunnar Mills            "description": "This action resets the summary metrics related to this equipment.",
226*d125652eSGunnar Mills            "longDescription": "This action shall reset any time intervals or counted values for this equipment.",
227*d125652eSGunnar Mills            "parameters": {},
228*d125652eSGunnar Mills            "patternProperties": {
229*d125652eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
230*d125652eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
231*d125652eSGunnar Mills                    "type": [
232*d125652eSGunnar Mills                        "array",
233*d125652eSGunnar Mills                        "boolean",
234*d125652eSGunnar Mills                        "integer",
235*d125652eSGunnar Mills                        "number",
236*d125652eSGunnar Mills                        "null",
237*d125652eSGunnar Mills                        "object",
238*d125652eSGunnar Mills                        "string"
239*d125652eSGunnar Mills                    ]
240*d125652eSGunnar Mills                }
241*d125652eSGunnar Mills            },
242*d125652eSGunnar Mills            "properties": {
243*d125652eSGunnar Mills                "target": {
244*d125652eSGunnar Mills                    "description": "Link to invoke action",
245*d125652eSGunnar Mills                    "format": "uri-reference",
246*d125652eSGunnar Mills                    "type": "string"
247*d125652eSGunnar Mills                },
248*d125652eSGunnar Mills                "title": {
249*d125652eSGunnar Mills                    "description": "Friendly action name",
250*d125652eSGunnar Mills                    "type": "string"
251*d125652eSGunnar Mills                }
252*d125652eSGunnar Mills            },
253*d125652eSGunnar Mills            "type": "object"
254*d125652eSGunnar Mills        }
255*d125652eSGunnar Mills    },
256*d125652eSGunnar Mills    "language": "en",
257*d125652eSGunnar Mills    "owningEntity": "DMTF",
258*d125652eSGunnar Mills    "release": "2025.1",
259*d125652eSGunnar Mills    "title": "#PowerDistributionMetrics.v1_4_0.PowerDistributionMetrics"
260*d125652eSGunnar Mills}