Summary
Get historical graded compliance reports.
Description
Get historical graded compliance reports for a task instance on a node.
Route
POST /configuration_manager/json_compliance_reports/grade/history
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
treeId |
string |
yes |
- |
version |
string |
yes |
- |
nodePath |
string |
yes |
- |
taskId |
string |
yes |
- |
options |
object |
yes |
- |
Copied to Clipboard
{
"treeId": "5c35355dbebaa82eaf8113f0",
"version": "initial",
"nodePath": "base/US East/Atlanta",
"taskId": "5f80bd24f8479975bb46054d",
"options": {
"weights": {
"error": 95538317.36739457,
"warning": 42112099.50277692,
"info": 94939237.89145318
},
"limit": 47980916
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"treeId": {
"title": "treeId",
"$ref": "common#/definitions/mongoObjectId"
},
"version": {
"title": "version",
"$ref": "goldenConfigData#/definitions/goldenConfigTreeVersionName"
},
"nodePath": {
"title": "nodePath",
"$ref": "goldenConfigData#/definitions/goldenConfigNodePath"
},
"taskId": {
"title": "taskId",
"type": "string",
"examples": [
"5f80bd24f8479975bb46054d"
]
},
"options": {
"title": "options",
"$ref": "goldenConfigData#/definitions/gradeDeviceComplianceHistoryOptions"
}
},
"required": [
"treeId",
"version",
"nodePath",
"taskId",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
graded_compliance_history |
array |
- |
Copied to Clipboard
[
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 88977637,
"warning": 16992962,
"info": 45869972,
"pass": 60230131,
"score": 80.86241685620475,
"grade": "fail"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 92751657,
"warning": 70707097,
"info": 92843240,
"pass": 72094359,
"score": 54.62824721955701,
"grade": "review"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 46115208,
"warning": 96786347,
"info": 23961499,
"pass": 57840922,
"score": 6.747224708101585,
"grade": "review"
}
]