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": "v3",
  "options": {
    "weights": {
      "error": -42271868.02120064,
      "warning": -54338483.49893249,
      "info": 38558036.49573603
    },
    "nodePath": "base"
  }
}
           
          
            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": "pass",
    "total": 66615330,
    "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": -23104785.66437407,
        "grade": "review"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 77339845.56426331,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -82785534.87051558,
        "grade": "review"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -85886118.49066727,
        "grade": "fail"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 44864493.96841326,
        "grade": "review"
      }
    ]
  },
  {
    "grade": "review",
    "total": 43841488,
    "devices": [
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -5520589.947045356,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East/Atlanta",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -15730535.860622033,
        "grade": "fail"
      }
    ]
  },
  {
    "grade": "fail",
    "total": 65231806,
    "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": -74993646.32883067,
        "grade": "fail"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 14197917.996207505,
        "grade": "pass"
      }
    ]
  },
  {
    "grade": "review",
    "total": 58114738,
    "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": -18834620.646037206,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -10003394.903532088,
        "grade": "fail"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -37845565.7633455,
        "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"
              ]
            }
          }
        }
      }
    }
  }
}