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": "v2",
"nodePath": "base",
"taskId": "5f80bd24f8479975bb46054d",
"options": {
"weights": {
"error": 12498881.512993738,
"warning": -99646758.54991958,
"info": -37268897.96077377
},
"limit": 83958680
}
}
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": 39977495,
"warning": 44641959,
"info": 9897602,
"pass": 29013879,
"score": 70.74915720639675,
"grade": "review"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 12014531,
"warning": 39174962,
"info": 64232855,
"pass": 60194479,
"score": 88.91927404895226,
"grade": "review"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 10132487,
"warning": 32454570,
"info": 69202477,
"pass": 75913896,
"score": 34.15006667736953,
"grade": "pass"
},
{
"id": "5c35355dbebaa82eaf8113f0",
"nodePath": "base/US East/Atlanta",
"deviceName": "xr9kv-atl",
"timestamp": "2019-04-12T14:42:47.958Z",
"error": 50983882,
"warning": 20261714,
"info": 91336659,
"pass": 96752272,
"score": 94.3082575807888,
"grade": "pass"
}
]