GET /powerSupplies/metrics

Use this GET method to retrieve a set of sample metrics for all Flex System power supplies. Each sample is represented in terms of when the sample was taken (timeStamp) and the value of the sample (metricValue).

Note: Depending on your environment and the number of managed hardware resources, it might take several minutes to retrieve the requested metrics data.

Authentication

Authentication with user name and password is required.

Request URL

GET https://<management_server_IP>/powerSupplies/metrics

Query parameters

Parameters Required / Optional Description
excludeAttributes=<attributes> Optional Returns a response that excludes the specified attributes for each resource. You can specify one or more attributes that are listed in the response body, separated by a comma.
Note:
  • When the includeAttributes query parameter is specified, the excludeAttributes query parameter is ignored.

  • The response is filtered based on attribute name, not the attribute value.

  • Base attributes cannot be excluded.

includeAttributes=<attributes> Optional Returns a response that includes the base attributes and the specified attributes for each resource. You can specify one or more attributes that are listed in the response body, separated by a comma.
Note:
  • The response is filtered based on attribute name, not the attribute value.

  • If this attribute is not specified, all attributes are returned by default.

Response codes

Code Description
200 OK
400 Bad request
403 Forbidden
409 Conflict
500 Internal server error

Response body

Attributes Type Description
powerSupplyList Array List of power supplies in all chassis
  See GET /powerSupplies/metrics/<UUID> Object Sample metrics for each power supply

Response example

{
   "powerSupplyList": [{
      "energyMetrics": {
         "averagePowerSupplyInputPower": [{
            "timeStamp": "2015-02-06T20:10:00Z",
            "metricValue": 127
         },
         ...{
            "timeStamp": "2015-02-06T22:00:01Z",
            "metricValue": 128
         },
         {
            "timeStamp": "2015-02-06T22:05:00Z",
            "metricValue": 127
         }],
         "minimumPowerSupplyInputPower": [{
            "timeStamp": "2015-02-06T20:10:00Z",
            "metricValue": 125
         },
         ...{
            "timeStamp": "2015-02-06T22:00:01Z",
            "metricValue": 125
         },
         {
            "timeStamp": "2015-02-06T22:05:00Z",
            "metricValue": 126
         }],
         "maximumPowerSupplyInputPower": [{
            "timeStamp": "2015-02-06T20:10:00Z",
            "metricValue": 129
         },
         ...{
            "timeStamp": "2015-02-06T22:00:01Z",
            "metricValue": 130
         },
         {
            "timeStamp": "2015-02-06T22:05:00Z",
            "metricValue": 129
         }],
         "averagePowerSupplyOutputPower": [{
            "timeStamp": "2015-02-06T20:10:00Z",
            "metricValue": 102
         },
         ...{
            "timeStamp": "2015-02-06T22:00:01Z",
            "metricValue": 106
         },
         {
            "timeStamp": "2015-02-06T22:05:00Z",
            "metricValue": 109
         }]"minimumPowerSupplyOutputPower": [{
            "timeStamp": "2015-02-06T20:10:00Z",
            "metricValue": 98
         },
         ...{
            "timeStamp": "2015-02-06T22:00:01Z",
            "metricValue": 102
         },
         {
            "timeStamp": "2015-02-06T22:05:00Z",
            "metricValue": 101
         }],
         "maximumPowerSupplyOutputPower": [{
            "timeStamp": "2015-02-06T20:10:00Z",
            "metricValue": 112
         },
         ...{
            "timeStamp": "2015-02-06T22:00:01Z",
            "metricValue": 113
         },
         {
            "timeStamp": "2015-02-06T22:05:00Z",
            "metricValue": 113
         }],
         
      },
      "name": "Power Supply 01",
      "parent": {
         "uuid": "3D1D5931BDF84D30ADA976E21F08CB91",
         "uri": "chassis/3D1D5931BDF84D30ADA976E21F08CB91"
      },
      "uuid": "D15D67FD1FBC40A09BEDF97C061A160A",
      "uri": "powerSupply/D15D67FD1FBC40A09BEDF97C061A160A"
   }]
}