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
          
            admin
apiwrite
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | treeId | string | yes | - | 
    | version | string | yes | - | 
    | options | object | yes | - | 
            
          
          
            Copied to Clipboard
            
            {
  "treeId": "5c35355dbebaa82eaf8113f0",
  "version": "draft-v4",
  "options": {
    "weights": {
      "error": -68752102.94986798,
      "warning": 15081564.169136599,
      "info": 4008457.0705869943
    },
    "nodePath": "base/US East/Atlanta"
  }
}
           
          
            Copied to Clipboard
            
            {
  "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
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | graded_compliance_reports | object | - | 
            
          
          
            Copied to Clipboard
            
            [
  {
    "grade": "fail",
    "total": 60203713,
    "devices": [
      "xr9kv-atl",
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -97660400.78050198,
        "grade": "fail"
      }
    ]
  },
  {
    "grade": "fail",
    "total": 34569959,
    "devices": [
      "xr9kv-atl",
      "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": 75850511.06591552,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -21963993.554719746,
        "grade": "pass"
      }
    ]
  },
  {
    "grade": "fail",
    "total": 74934273,
    "devices": [
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 50071392.00076857,
        "grade": "fail"
      }
    ]
  },
  {
    "grade": "review",
    "total": 12790392,
    "devices": [
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East/Atlanta",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -27460120.105046123,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 69664193.30187118,
        "grade": "review"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East/Atlanta",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 27127315.11834918,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -66909714.58801487,
        "grade": "fail"
      }
    ]
  },
  {
    "grade": "fail",
    "total": 80042167,
    "devices": [
      "xr9kv-atl",
      "xr9kv-atl",
      "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": 17031825.440002456,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 90035037.82127148,
        "grade": "fail"
      }
    ]
  }
]
           
          
            Copied to Clipboard
            
            {
  "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"
              ]
            }
          }
        }
      }
    }
  }
}