API Guide
Power Metrics
NOTE: The APIs in this section can be used only when the power plug-in is installed on OpenManage Enterprise.
/api/MetricService/Metrics
This URL returns all the device or group metrics.
POST method for Metrics
Description This method returns all the device or group metrics.
Privilege VIEW
HTTP response
codes
201
Example request
body
{
"PluginId": "2F6D05BE-EE4B-4B0E-B873-C8D2F64A4625",
"EntityType": 0,
"EntityId": 10397,
"MetricTypes": [
1,
2,
3
],
"Duration": 0,
"SortOrder":0
}
Example
response body
{
"EntityId": 10397,
"Value":[
{
"Type": "1",
"Value": "230.0",
"Timestamp": "2019-07-02 13:45:05.147666"
},
{
"Type": "2",
"Value": "177.0",
"Timestamp": "2019-07-02 13:45:05.147666"
},
{
"Type": "3",
"Value": "197.0",
"Timestamp": "2019-07-02 13:45:05.147666"
}
]
}
Table 183. Attributes
Attribute Description
PluginId ID of a plug-in.
EntityType Type of entity—device or group.
EntityId ID of an entity—device or group.
556 APIs specific to OpenManage Enterprise