Summary
Get graded compliance reports for a node.
Description
Get a set of graded and scored compliance reports for a node.
Route
POST /configuration_manager/compliance_reports/grade
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
treeId | string | yes | - |
version | string | yes | - |
options | object | yes | - |
{ "treeId": "5c35355dbebaa82eaf8113f0", "version": "v2", "options": { "weights": { "error": 12576658.893965438, "warning": 84933947.0150854, "info": -53353169.836755574 }, "nodePath": "base" } }
{ "type": "object", "properties": { "treeId": { "title": "treeId", "$ref": "common#/definitions/mongoObjectId" }, "version": { "title": "version", "$ref": "goldenConfigData#/definitions/goldenConfigTreeVersionName" }, "options": { "title": "options", "allOf": [ { "$ref": "goldenConfigData#/definitions/reportGradingOptions" }, { "type": "object", "properties": { "nodePath": { "title": "nodePath", "$ref": "goldenConfigData#/definitions/goldenConfigNodePath" } } } ] } }, "required": [ "treeId", "version", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
graded_compliance_reports | object | - |
[ { "grade": "pass", "total": 82295611, "devices": [ "xr9kv-atl", "xr9kv-atl", "xr9kv-atl" ], "records": [ { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": -6522602.781793907, "grade": "review" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": -33462385.742948264, "grade": "pass" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": -21645650.708402723, "grade": "pass" } ] }, { "grade": "pass", "total": 17421456, "devices": [ "xr9kv-atl", "xr9kv-atl", "xr9kv-atl" ], "records": [ { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base/US East/Atlanta", "timestamp": "2019-04-12T14:42:47.958Z", "score": -68683364.90018608, "grade": "fail" } ] }, { "grade": "pass", "total": 13397302, "devices": [ "xr9kv-atl", "xr9kv-atl" ], "records": [ { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base/US East", "timestamp": "2019-04-12T14:42:47.958Z", "score": -35163337.538785286, "grade": "review" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": -86877272.27357396, "grade": "pass" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": 91685465.07503757, "grade": "fail" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": -15786133.42538762, "grade": "fail" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": -97966889.21652853, "grade": "review" } ] }, { "grade": "pass", "total": 54714612, "devices": [ "xr9kv-atl", "xr9kv-atl" ], "records": [ { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base/US East/Atlanta", "timestamp": "2019-04-12T14:42:47.958Z", "score": 91078420.45753914, "grade": "review" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base/US East", "timestamp": "2019-04-12T14:42:47.958Z", "score": -82074568.99141859, "grade": "fail" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": 37681121.51825136, "grade": "pass" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": 94982115.4655472, "grade": "pass" } ] }, { "grade": "fail", "total": 32845504, "devices": [ "xr9kv-atl", "xr9kv-atl" ], "records": [ { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": 91328529.55990717, "grade": "pass" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base/US East/Atlanta", "timestamp": "2019-04-12T14:42:47.958Z", "score": -99031016.12451391, "grade": "fail" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base/US East/Atlanta", "timestamp": "2019-04-12T14:42:47.958Z", "score": -69256362.38701603, "grade": "fail" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base", "timestamp": "2019-04-12T14:42:47.958Z", "score": -63071556.285272345, "grade": "pass" }, { "deviceName": "xr9kv-atl", "reportId": "5c35355dbebaa82eaf8113f0", "nodePath": "base/US East/Atlanta", "timestamp": "2019-04-12T14:42:47.958Z", "score": -59752743.27168112, "grade": "pass" } ] } ]
{ "title": "graded_compliance_reports", "type": "array", "items": { "type": "object", "properties": { "grade": { "type": "string", "examples": [ "pass", "review", "fail" ] }, "total": { "type": "integer", "minimum": 0 }, "devices": { "type": "array", "items": { "$ref": "deviceData#/definitions/deviceName" } }, "records": { "type": "array", "items": { "type": "object", "properties": { "deviceName": { "$ref": "deviceData#/definitions/deviceName" }, "reportId": { "$ref": "common#/definitions/mongoObjectId" }, "nodePath": { "title": "nodePath", "$ref": "goldenConfigData#/definitions/goldenConfigNodePath" }, "timestamp": { "$ref": "common#/definitions/timestamp" }, "score": { "type": "number" }, "grade": { "type": "string", "examples": [ "pass", "review", "fail" ] } } } } } } }