Resource URL: /platform/<<version=3>>/statistics/summary/protocol-stats

    Overview: The pstat mode generates Per-protocol detailed statistics along
              with CPU, OneFS, network and disk statistics.

     Methods: GET

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

Method GET: 

       URL: GET /platform/<<version=3>>/statistics/summary/protocol-stats

Query arguments:
degraded=<boolean> Continue to report if some nodes do not respond.
 protocol=<string> Specify protocol(s) for which statistics should be reported.
                   Default is all external protocols.
    nodes=<string> Specify node(s) for which statistics should be reported. A
                   comma separated set of numbers. Default is 'all'. Zero (0)
                   should be passed in as the sole argument to indicate only
                   the local node.
 timeout=<integer> Timeout remote commands after NUM seconds, where NUM is the
                   integer passed to the argument.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "protocol-stats": {
      "items": {
        "type": "object", 
        "properties": {
          "protocol": {
            "type": "array", 
            "required": true, 
            "data": [
              {
                "name": {
                  "required": true, 
                  "type": "string", 
                  "description": "The name of the protocol operation."
                }, 
                "value": {
                  "required": true, 
                  "type": "any", 
                  "description": "Protocol specific operations per second. This is a variable number of output fields depending on the protocol being displayed."
                }
              }
            ], 
            "description": "A single protocol for which statistics should be reported."
          }, 
          "network": {
            "out": {
              "errors_per_sec": {
                "required": true, 
                "type": "number", 
                "description": "Network output errors per-second"
              }, 
              "megabytes_per_sec": {
                "required": true, 
                "type": "number", 
                "description": "Network output megabytes per-second"
              }, 
              "packets_per_sec": {
                "required": true, 
                "type": "number", 
                "description": "Network output packets per-second"
              }
            }, 
            "in": {
              "errors_per_sec": {
                "required": true, 
                "type": "number", 
                "description": "Network input errors per-second"
              }, 
              "megabytes_per_sec": {
                "required": true, 
                "type": "number", 
                "description": "Network input megabytes per-second"
              }, 
              "packets_per_sec": {
                "required": true, 
                "type": "number", 
                "description": "Network input packets per-second"
              }
            }
          }, 
          "onefs": {
            "total": {
              "required": true, 
              "type": "number", 
              "description": "OneFS throughput in MB/s total."
            }, 
            "out": {
              "required": true, 
              "type": "number", 
              "description": "OneFS throughput in MB/s out."
            }, 
            "in": {
              "required": true, 
              "type": "number", 
              "description": "OneFS throughput in MB/s in."
            }
          }, 
          "time": {
            "required": true, 
            "type": "integer", 
            "description": "Unix Epoch time in seconds of the request."
          }, 
          "disk": {
            "read": {
              "required": true, 
              "type": "number", 
              "description": "Disk reads"
            }, 
            "write": {
              "required": true, 
              "type": "number", 
              "description": "Disk writes"
            }, 
            "iops": {
              "required": true, 
              "type": "number", 
              "description": "Disk iops"
            }
          }, 
          "cpu": {
            "idle": {
              "required": true, 
              "type": "number", 
              "description": "Percentage of CPU idle time"
            }, 
            "system": {
              "required": true, 
              "type": "number", 
              "description": "Percentage of CPU consumed by the system"
            }, 
            "user": {
              "required": true, 
              "type": "number", 
              "description": "Percentage of CPU consumed by user activities"
            }
          }
        }
      }, 
      "type": "array"
    }
  }
}
