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": "draft-v4",
"nodePath": "base/US East",
"taskId": "5f80bd24f8479975bb46054d",
"options": {
"weights": {
"error": 72483972.39049482,
"warning": 73848183.06557408,
"info": 54675465.07950279
},
"limit": 68332434
}
}
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": 52610534,
"warning": 55527377,
"info": 86471594,
"pass": 25846526,
"score": 80.45376579972734,
"grade": "fail"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 22263224,
"warning": 92104954,
"info": 35977869,
"pass": 44719958,
"score": 70.15806003669805,
"grade": "fail"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 67475917,
"warning": 5996278,
"info": 11858526,
"pass": 4017353,
"score": 57.67092280795927,
"grade": "pass"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 98695078,
"warning": 13957751,
"info": 49140589,
"pass": 29251409,
"score": 83.32692107548012,
"grade": "fail"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 11424289,
"warning": 47547370,
"info": 10647967,
"pass": 60658026,
"score": 55.12800115897578,
"grade": "review"
}
]