80 lines
2.2 KiB
JSON
80 lines
2.2 KiB
JSON
{
|
|
"title": "Intel Node Manager policy json schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"domain_id": {
|
|
"type": "string",
|
|
"enum": ["platform", "cpu", "memory", "io"]
|
|
},
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"policy_id": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 255
|
|
},
|
|
"policy_trigger": {
|
|
"type": "string",
|
|
"enum": ["none", "temperature", "power", "reset", "boot"]
|
|
},
|
|
"cpu_power_correction": {
|
|
"type": "string",
|
|
"enum": ["auto", "unagressive", "aggressive"]
|
|
},
|
|
"storage": {
|
|
"type": "string",
|
|
"enum": ["persistent", "volatile"]
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"enum": ["alert", "shutdown"]
|
|
},
|
|
"power_domain": {
|
|
"type": "string",
|
|
"enum": ["primary", "secondary"]
|
|
},
|
|
"target_limit": {
|
|
"anyOf": [{
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 65535
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"boot_mode": {
|
|
"type": "string",
|
|
"enum": ["power", "performance"]
|
|
},
|
|
"cores_disabled": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 127
|
|
}
|
|
},
|
|
"required": ["boot_mode", "cores_disabled"],
|
|
"additionalProperties": false
|
|
|
|
}]
|
|
},
|
|
"correction_time": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"trigger_limit": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 65535
|
|
},
|
|
"reporting_period": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 65535
|
|
}
|
|
},
|
|
"required": ["domain_id", "enable", "policy_id", "policy_trigger", "action", "power_domain", "target_limit", "reporting_period" ],
|
|
"additionalProperties": false
|
|
}
|
|
|