Resource URL: /platform/<<version=1>>/dedupe/reports

    Overview: This resource applies the standard collection pattern to dedupe
              reports.

     Methods: GET

********************************************************************************

Method GET: List dedupe reports.

       URL: GET /platform/<<version=1>>/dedupe/reports

Query arguments:
     sort=<enum> Where <enum> is one of id, start_time, end_time.  The field
                 that will be used for sorting.
 begin=<integer> Restrict the query to reports at or after the given time, in
                 seconds since the Epoch.
   end=<integer> Restrict the query to reports at or before the given time, in
                 seconds since the Epoch.
job_id=<integer> Restrict the query to the given job ID.
 resume=<string> Continue returning results from previous call using this token
                 (token should come from the previous call, resume cannot be
                 used with other options).
 job_type=<enum> Where <enum> is one of Dedupe, DedupeAssessment.  Restrict the
                 query to the given job type.
 limit=<integer> Return no more than this many results at once (see resume).
      dir=<enum> Where <enum> is one of ASC, DESC.  The direction of the sort.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "reports": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "A report for a dedupe job.", 
            "properties": {
              "job_id": {
                "type": "integer", 
                "description": "The job id this report refers to."
              }, 
              "job_type": {
                "type": "string", 
                "description": "The type of dedupe job this report refers to."
              }, 
              "reports": {
                "items": {
                  "type": "object", 
                  "properties": {
                    "phase": {
                      "type": "integer", 
                      "description": "The phase of the job this report was generated for."
                    }, 
                    "results": {
                      "type": "string", 
                      "description": "The report results."
                    }, 
                    "time": {
                      "type": "integer", 
                      "description": "The time this report was generated in Unix epoch seconds."
                    }
                  }
                }, 
                "type": "array", 
                "description": "A list of report entries for this dedupe job."
              }, 
              "id": {
                "type": "integer", 
                "description": "An unique identifier for this report."
              }, 
              "elapsed_time": {
                "type": "integer", 
                "description": "The amount of time in seconds it took to run this job."
              }, 
              "dedupe_percent": {
                "type": "string", 
                "description": "The amount of space the directory trees under this job's paths now take up, compared to what they would take up if not deduplicated (0 ~ 100)."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "type": [
            "string", 
            "null"
          ], 
          "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
        }
      }
    }
  ]
}
