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

    Overview: This resource returns the list of protocols that are instrumented
              for protocol and client statistics in OneFS.

     Methods: GET

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

Method GET: Retrieve protocol list.

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

Query arguments:
type=<enum> Where <enum> is one of internal, external, all.  Specifies whether
            internal, external, or all protocols should be returned.

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"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "protocols": {
          "items": {
            "type": "object", 
            "properties": {
              "type": {
                "enum": [
                  "external", 
                  "internal"
                ], 
                "type": "string", 
                "description": "External protocols are customer facing, internal protocols expose metrics for internal OneFS systems.", 
                "required": true
              }, 
              "name": {
                "required": true, 
                "type": "string", 
                "description": "Abbreviated name of protocol."
              }
            }
          }, 
          "required": true, 
          "type": "array"
        }
      }
    }
  ]
}
