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": "v2",
  "options": {
    "weights": {
      "error": -58283249.49288031,
      "warning": -11453854.392766744,
      "info": 4763289.103180453
    },
    "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": "review",
    "total": 45397579,
    "devices": [
      "xr9kv-atl",
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 56106310.513890535,
        "grade": "review"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East/Atlanta",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -40344491.71817793,
        "grade": "pass"
      }
    ]
  },
  {
    "grade": "review",
    "total": 61726094,
    "devices": [
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East/Atlanta",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -39526501.728485376,
        "grade": "fail"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -74575200.66411623,
        "grade": "pass"
      }
    ]
  },
  {
    "grade": "fail",
    "total": 61101402,
    "devices": [
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East/Atlanta",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 73190014.5551982,
        "grade": "review"
      }
    ]
  },
  {
    "grade": "pass",
    "total": 7483097,
    "devices": [
      "xr9kv-atl",
      "xr9kv-atl",
      "xr9kv-atl",
      "xr9kv-atl"
    ],
    "records": [
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": -12196393.2449563,
        "grade": "pass"
      },
      {
        "deviceName": "xr9kv-atl",
        "reportId": "5c35355dbebaa82eaf8113f0",
        "nodePath": "base/US East/Atlanta",
        "timestamp": "2019-04-12T14:42:47.958Z",
        "score": 20517856.708652094,
        "grade": "review"
      }
    ]
  }
]
           
          
            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"
              ]
            }
          }
        }
      }
    }
  }
}