Resource URL: /platform/<<version=1>>/job/events

    Overview: This resource applies the standard collection pattern to job
              events.

     Methods: GET

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

Method GET: List job events.

       URL: GET /platform/<<version=1>>/job/events

Query arguments:
  begin=<integer> Restrict the query to events at or after the given time, in
                  seconds since the Epoch.
    end=<integer> Restrict the query to events 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=<string> Restrict the query to the given job type.
     state=<enum> Where <enum> is one of running, paused_user, paused_system,
                  paused_policy, paused_priority, cancelled_user,
                  cancelled_system, failed, succeeded, unknown.  Restrict the
                  query to events containing the given state.
  limit=<integer> Return no more than this many results at once (see resume).

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": {
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }, 
        "events": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "properties": {
              "job_id": {
                "minimum": 1, 
                "type": "integer", 
                "description": "Job ID.", 
                "required": true
              }, 
              "job_type": {
                "required": true, 
                "type": "string", 
                "description": "Job Type."
              }, 
              "policy": {
                "required": true, 
                "type": "string", 
                "description": "Policy in effect for job at time of event."
              }, 
              "state": {
                "required": true, 
                "type": [
                  "string", 
                  "null"
                ], 
                "description": "State of job associated with event."
              }, 
              "time": {
                "required": true, 
                "type": "integer", 
                "description": "Time of event in Unix epoch seconds."
              }, 
              "phase": {
                "required": true, 
                "type": "integer", 
                "description": "Job phase number at time of event."
              }, 
              "progress": {
                "required": true, 
                "type": [
                  "string", 
                  "null"
                ], 
                "description": "Job-type-specific progress indication."
              }, 
              "message": {
                "required": true, 
                "type": [
                  "string", 
                  "null"
                ], 
                "description": "Description of event."
              }, 
              "id": {
                "required": true, 
                "type": "string", 
                "description": "Job event ID."
              }, 
              "running_time": {
                "required": true, 
                "type": [
                  "integer", 
                  "null"
                ], 
                "description": "Total running time of job."
              }
            }
          }, 
          "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)."
        }
      }
    }
  ]
}
