Gunnar Mills | 09b9d45 | 2020-02-11 13:27:39 -0600 | [diff] [blame] | 1 | { |
| 2 | "$id": "http://redfish.dmtf.org/schemas/v1/PowerDistributionMetrics.v1_0_0.json", |
| 3 | "$ref": "#/definitions/PowerDistributionMetrics", |
| 4 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
| 5 | "copyright": "Copyright 2014-2019 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 | "#PowerDistributionMetrics.ResetMetrics": { |
| 27 | "$ref": "#/definitions/ResetMetrics" |
| 28 | }, |
| 29 | "Oem": { |
| 30 | "$ref": "#/definitions/OemActions", |
| 31 | "description": "The available OEM-specific actions for this resource.", |
| 32 | "longDescription": "This property shall contain the available OEM-specific actions for this resource." |
| 33 | } |
| 34 | }, |
| 35 | "type": "object" |
| 36 | }, |
| 37 | "OemActions": { |
| 38 | "additionalProperties": true, |
| 39 | "description": "The available OEM-specific actions for this resource.", |
| 40 | "longDescription": "This type shall contain the available OEM-specific actions for this resource.", |
| 41 | "patternProperties": { |
| 42 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
| 43 | "description": "This property shall specify a valid odata or Redfish property.", |
| 44 | "type": [ |
| 45 | "array", |
| 46 | "boolean", |
| 47 | "integer", |
| 48 | "number", |
| 49 | "null", |
| 50 | "object", |
| 51 | "string" |
| 52 | ] |
| 53 | } |
| 54 | }, |
| 55 | "properties": {}, |
| 56 | "type": "object" |
| 57 | }, |
| 58 | "PowerDistributionMetrics": { |
| 59 | "additionalProperties": false, |
| 60 | "description": "This is the schema definition for the metrics of a power distribution component or unit, such as a floor power distribution unit (PDU) or switchgear.", |
| 61 | "longDescription": "This resource shall be used to represent the metrics of a power distribution component or unit for a Redfish implementation.", |
| 62 | "patternProperties": { |
| 63 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
| 64 | "description": "This property shall specify a valid odata or Redfish property.", |
| 65 | "type": [ |
| 66 | "array", |
| 67 | "boolean", |
| 68 | "integer", |
| 69 | "number", |
| 70 | "null", |
| 71 | "object", |
| 72 | "string" |
| 73 | ] |
| 74 | } |
| 75 | }, |
| 76 | "properties": { |
| 77 | "@odata.context": { |
| 78 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" |
| 79 | }, |
| 80 | "@odata.etag": { |
| 81 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" |
| 82 | }, |
| 83 | "@odata.id": { |
| 84 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" |
| 85 | }, |
| 86 | "@odata.type": { |
| 87 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" |
| 88 | }, |
| 89 | "Actions": { |
| 90 | "$ref": "#/definitions/Actions", |
| 91 | "description": "The available actions for this resource.", |
| 92 | "longDescription": "This property shall contain the available actions for this resource." |
| 93 | }, |
| 94 | "Description": { |
| 95 | "anyOf": [ |
| 96 | { |
| 97 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 98 | }, |
| 99 | { |
| 100 | "type": "null" |
| 101 | } |
| 102 | ], |
| 103 | "readonly": true |
| 104 | }, |
| 105 | "EnergykWh": { |
| 106 | "anyOf": [ |
| 107 | { |
| 108 | "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorEnergykWhExcerpt" |
| 109 | }, |
| 110 | { |
| 111 | "type": "null" |
| 112 | } |
| 113 | ], |
| 114 | "description": "The energy consumption of this unit.", |
| 115 | "excerptCopy": "SensorEnergykWhExcerpt", |
| 116 | "longDescription": "This property shall contain the total energy, measured in kilowatt-hours (kWh), for this unit, that represents the `Total` ElectricalContext sensor when multiple energy sensors exist.", |
| 117 | "readonly": true |
| 118 | }, |
| 119 | "Id": { |
| 120 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 121 | "readonly": true |
| 122 | }, |
| 123 | "Name": { |
| 124 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 125 | "readonly": true |
| 126 | }, |
| 127 | "Oem": { |
| 128 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 129 | "description": "The OEM extension property.", |
| 130 | "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements." |
| 131 | }, |
| 132 | "PowerWatts": { |
| 133 | "anyOf": [ |
| 134 | { |
| 135 | "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorPowerExcerpt" |
| 136 | }, |
| 137 | { |
| 138 | "type": "null" |
| 139 | } |
| 140 | ], |
| 141 | "description": "The total power reading for this equipment.", |
| 142 | "excerptCopy": "SensorPowerExcerpt", |
| 143 | "longDescription": "This property shall contain the total power, measured in Watts, for this unit, that represents the `Total` ElectricalContext sensor when multiple power sensors exist.", |
| 144 | "readonly": true |
| 145 | } |
| 146 | }, |
| 147 | "required": [ |
| 148 | "@odata.id", |
| 149 | "@odata.type", |
| 150 | "Id", |
| 151 | "Name" |
| 152 | ], |
| 153 | "type": "object" |
| 154 | }, |
| 155 | "ResetMetrics": { |
| 156 | "additionalProperties": false, |
| 157 | "description": "This action resets the summary metrics related to this equipment.", |
| 158 | "longDescription": "This action shall reset any time intervals or counted values for this equipment.", |
| 159 | "parameters": {}, |
| 160 | "patternProperties": { |
| 161 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
| 162 | "description": "This property shall specify a valid odata or Redfish property.", |
| 163 | "type": [ |
| 164 | "array", |
| 165 | "boolean", |
| 166 | "integer", |
| 167 | "number", |
| 168 | "null", |
| 169 | "object", |
| 170 | "string" |
| 171 | ] |
| 172 | } |
| 173 | }, |
| 174 | "properties": { |
| 175 | "target": { |
| 176 | "description": "Link to invoke action", |
| 177 | "format": "uri-reference", |
| 178 | "type": "string" |
| 179 | }, |
| 180 | "title": { |
| 181 | "description": "Friendly action name", |
| 182 | "type": "string" |
| 183 | } |
| 184 | }, |
| 185 | "type": "object" |
| 186 | } |
| 187 | }, |
| 188 | "owningEntity": "DMTF", |
| 189 | "release": "2019.4", |
| 190 | "title": "#PowerDistributionMetrics.v1_0_0.PowerDistributionMetrics" |
| 191 | } |