API Guide
"Id": 30,
"Name": "Group Policy",
"Description": "Updated policy on group",
"Enabled": true,
"Schedule": {
"StartTime": "",
"EndTime": "",
"StartDate": "2019-06-1",
"EndDate": "2019-07-28",
"DaysOfTheWeek": ["MON", "TUE", "WED", "FRI", "THU", "SAT", "SUN"]
},
"Targets": [
{
"Id": 10132,
"PowerCapValue": 16663
},
{
"Id": 10070,
"PowerCapValue": 16663
}
]
}
Input to edit temperature-triggered policy:
{
"Id": 3,
"Name": "Edited Temp Policy",
"Description": "Edited Description",
"Enabled": false,
"Targets": [
{
"Id": 10189,
"TemperatureThreshold": 30
}
]
}
Output:
{
"Id": 30
}
Table 51. Attributes
Attribute name Description
Id ID of the power policy
Name Name associated with the policy.
Description Description associated with the policy
Enabled Indicates if the policy is enabled or disabled
Schedule Indicates when the policy will be enabled
StartTime Time at which the policy interval starts.
EndTime Time at which the policy interval ends.
StartDate Date from which the policy is active.
EndDate Date till which the policy is active.
DaysOfTheWeek Days of week in which the policy is active.
Targets Target device or group of the policy.
Id ID of the target device or group
PowerCapValue Power cap value for the device or group.
Power Policy 45