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

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

     Methods: GET

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

Method GET: Get a list of SyncIQ events.

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

Query arguments:
    sort=<enum> Where <enum> is one of coalesce_instanceid, end_time, event_id,
                instance_id, start_time.  The field that will be used for
                sorting.
begin=<integer> The time you want to start with in seconds past the epoch
  end=<integer> The time you want to end with in seconds past the epoch
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).
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": {
        "events": {
          "type": [
            {
              "minItems": 0, 
              "items": {
                "type": "object", 
                "properties": {
                  "coalesced_by_id": {
                    "required": true, 
                    "type": "string", 
                    "description": "The id of the coalescing event, if there is one."
                  }, 
                  "specifiers": {
                    "required": true, 
                    "type": "object", 
                    "description": "The individual specifiers that make up this event."
                  }, 
                  "is_coalescing": {
                    "required": true, 
                    "type": "integer", 
                    "description": "If it is coalescing."
                  }, 
                  "extreme_value": {
                    "required": true, 
                    "type": "number", 
                    "description": "The max value it has reached"
                  }, 
                  "end": {
                    "required": true, 
                    "type": [
                      "null", 
                      "integer"
                    ], 
                    "description": "The time the problem ended, or null if it is still an issue."
                  }, 
                  "acknowledged_time": {
                    "required": true, 
                    "type": [
                      "null", 
                      "integer"
                    ], 
                    "description": "When this event was acknowledged."
                  }, 
                  "severity": {
                    "required": true, 
                    "type": "string", 
                    "description": "The current severity."
                  }, 
                  "devid": {
                    "required": true, 
                    "type": "integer", 
                    "description": "The node this event happened on."
                  }, 
                  "value": {
                    "required": true, 
                    "type": "number", 
                    "description": "The current value."
                  }, 
                  "start": {
                    "required": true, 
                    "type": "integer", 
                    "description": "When the problem started."
                  }, 
                  "extreme_severity": {
                    "required": true, 
                    "type": "string", 
                    "description": "The max severity has reached."
                  }, 
                  "update_count": {
                    "required": true, 
                    "type": "integer", 
                    "description": "How many times this event has been updated."
                  }, 
                  "message": {
                    "required": true, 
                    "type": "string", 
                    "description": "A message in human readable form."
                  }, 
                  "id": {
                    "required": true, 
                    "type": "string", 
                    "description": "The unique identifier."
                  }, 
                  "event_type": {
                    "required": true, 
                    "type": "integer", 
                    "description": "A number representing the class of the event."
                  }
                }
              }, 
              "type": "array", 
              "maxItems": 4294967295
            }, 
            {
              "type": "null"
            }
          ]
        }, 
        "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)."
        }
      }
    }
  ]
}
