GET /switches/metrics
Use this method to return a set of sample metrics for all Flex System switches. 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 username and password is required.
Request URL
GET https://{management_server_IP}/switches/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
|
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
|
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
403 | Forbidden | The orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request. |
409 | Conflict | There is a conflict with the current state of the resource. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
switchesList | Array | List of switches. | ||
See GET /switches/metrics/{uuid} | Object | Sample metrics for each Flex System switch. |
The following example is returned if the request is successful.
{
"switchesList": [{
"energyMetrics": {
"averageSwitchModulePower": [{
"timeStamp": "2015-02-06T18:35:00Z",
"metricValue": 29
},
...{
"timeStamp": "2015-02-06T18:49:59Z",
"metricValue": 30
},
],
"minimumSwitchModulePower": [{
"timeStamp": "2015-02-06T18:35:00Z",
"metricValue": 29
},
...{
"timeStamp": "2015-02-06T18:45:00Z",
"metricValue": 28
},
],
"maximumSwitchModulePower": [{
"timeStamp": "2015-02-06T18:35:00Z",
"metricValue": 31
},
...{
"timeStamp": "2015-02-06T18:45:00Z",
"metricValue": 32
},
]
},
"name": "IO Module 02",
"parent": {
"uuid": "3D1D5931BDF84D30ADA976E21F08CB91",
"uri": "chassis/3D1D5931BDF84D30ADA976E21F08CB91"
},
"uuid": "1E3B957727F8E11180000002C96317EC",
"uri": "switch/1E3B957727F8E11180000002C96317EC"
}]
}
Give documentation feedback