Resource URL: /platform/<<version=1>>/statistics/current

    Overview: This resource allows querying of OneFS current statistics.
              Current statistics are the most currently available metrics to
              the time of the request. For a list of available statistics keys
              with descriptions, see the /1/statistics/keys or
              /1/statistics/keys/<KEY> resources. Each statistic may be cached
              for some number of seconds; requerying within this cache period
              will return the original (cached) value for the statistic.

     Methods: GET

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

Method GET: Retrieve stats.

       URL: GET /platform/<<version=1>>/statistics/current

Query arguments:
             key=<string> One key name. Can be used more than one time to query
                          multiple keys. Also works with 'keys' arguments.
            keys=<string> Multiple key names. May request matching keys or
                          request 'all' keys. Can be comma separated list or
                          can be used more than one time to make queries for
                          multiple keys. May be used in conjunction with
                          'substr'. Also works with 'key' arguments.
           devid=<string> Node devid to query. Either an <integer> or "all".
                          Can be used more than one time to query multiple
                          nodes. "all" queries all up nodes. 0 means query the
                          local node. For "cluster" scoped keys, in any devid
                          including 0 can be used.
         substr=<boolean> Used in conjunction with the 'keys' argument, alters
                          the behavior of keys. Makes the 'keys' arg perform a
                          partial match. Defaults to false.
        timeout=<integer> Time in seconds to wait for results from remote nodes.
       degraded=<boolean> If true, try to continue even if some stats are
                          unavailable. In this case, errors will be present in
                          the per-key returned data.
expand_clientid=<boolean> If true, use name resolution to expand client
                          addresses and other IDs.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "stats": {
      "items": {
        "type": "object", 
        "properties": {
          "error": {
            "required": true, 
            "type": [
              "null", 
              "string"
            ], 
            "description": "Key specific error string, if applicable."
          }, 
          "devid": {
            "required": true, 
            "type": "integer", 
            "description": "Devid of node of statistic or 0 for cluster scoped statistics."
          }, 
          "value": {
            "required": true, 
            "type": "any", 
            "description": "Key dependent value."
          }, 
          "key": {
            "required": true, 
            "type": "string", 
            "description": "Key name of statistic."
          }, 
          "time": {
            "required": true, 
            "type": "integer", 
            "description": "Unix Epoch time in seconds that statistic was collected."
          }, 
          "error_code": {
            "required": true, 
            "type": [
              "null", 
              "integer"
            ], 
            "description": "Key specific error number, if applicable."
          }
        }
      }, 
      "type": "array"
    }
  }
}
