NGINX · Schema

HTTP Server Zones

Status data for all HTTP status zones.

API GatewayCachingCloud NativeLoad BalancerOpen SourceReverse ProxyWeb Server
View JSON Schema on GitHub

JSON Schema

plus-http-api-nginx-http-server-zones-map-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nginx/refs/heads/main/json-schema/plus-http-api-nginx-http-server-zones-map-schema.json",
  "title": "HTTP Server Zones",
  "description": "Status data for all HTTP\n<a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#status_zone\">status zones</a>.\n",
  "type": "object",
  "additionalProperties": {
    "title": "HTTP Server Zone",
    "type": "object",
    "properties": {
      "processing": {
        "type": "integer",
        "description": "The number of client requests that are currently being processed.",
        "example": 1
      },
      "requests": {
        "type": "integer",
        "description": "The total number of client requests received from clients.",
        "example": 31070465
      },
      "responses": {
        "description": "The total number of responses sent to clients, the number of responses with status codes \u201c<code>1xx</code>\u201d, \u201c<code>2xx</code>\u201d, \u201c<code>3xx</code>\u201d, \u201c<code>4xx</code>\u201d, and \u201c<code>5xx</code>\u201d, and the number of responses per each status code.",
        "type": "object",
        "readOnly": true,
        "properties": {
          "1xx": {
            "type": "integer",
            "description": "The number of responses with \u201c<code>1xx</code>\u201d status codes.",
            "readOnly": true,
            "example": 0
          },
          "2xx": {
            "type": "integer",
            "description": "The number of responses with \u201c<code>2xx</code>\u201d status codes.",
            "readOnly": true,
            "example": 0
          },
          "3xx": {
            "type": "integer",
            "description": "The number of responses with \u201c<code>3xx</code>\u201d status codes.",
            "readOnly": true,
            "example": 0
          },
          "4xx": {
            "type": "integer",
            "description": "The number of responses with \u201c<code>4xx</code>\u201d status codes.",
            "readOnly": true,
            "example": 0
          },
          "5xx": {
            "type": "integer",
            "description": "The number of responses with \u201c<code>5xx</code>\u201d status codes.",
            "readOnly": true,
            "example": 0
          },
          "codes": {
            "type": "object",
            "description": "The number of responses per each status code.",
            "readOnly": true,
            "properties": {
              "codeNumber": {
                "type": "integer",
                "description": "The number of responses with this particular status code.",
                "readOnly": true,
                "example": 0
              }
            },
            "example": {}
          },
          "total": {
            "type": "integer",
            "description": "The total number of responses sent to clients.",
            "readOnly": true,
            "example": 98765
          }
        },
        "example": 1234567
      },
      "discarded": {
        "type": "integer",
        "description": "The total number of requests completed without sending a response.",
        "example": 0
      },
      "received": {
        "type": "integer",
        "description": "The total number of bytes received from clients.",
        "example": 180157219
      },
      "sent": {
        "type": "integer",
        "description": "The total number of bytes sent to clients.",
        "example": 20183175459
      },
      "ssl": {
        "type": "object",
        "readOnly": true,
        "properties": {
          "handshakes": {
            "type": "integer",
            "description": "The total number of successful SSL handshakes.",
            "readOnly": true,
            "example": 79572
          },
          "handshakes_failed": {
            "type": "integer",
            "description": "The total number of failed SSL handshakes.",
            "readOnly": true,
            "example": 21025
          },
          "session_reuses": {
            "type": "integer",
            "description": "The total number of session reuses during SSL handshake.",
            "readOnly": true,
            "example": 15762
          },
          "no_common_protocol": {
            "type": "integer",
            "description": "The number of SSL handshakes failed because of no common protocol.",
            "example": 4
          },
          "no_common_cipher": {
            "type": "integer",
            "description": "The number of SSL handshakes failed because of no shared cipher.",
            "example": 2
          },
          "handshake_timeout": {
            "type": "integer",
            "description": "The number of SSL handshakes failed because of a timeout.",
            "example": 0
          },
          "peer_rejected_cert": {
            "type": "integer",
            "description": "The number of failed SSL handshakes when nginx presented the certificate to the client but it was rejected with a corresponding alert message.",
            "example": 0
          },
          "verify_failures": {
            "type": "object",
            "description": "SSL certificate verification errors",
            "properties": {
              "no_cert": {
                "type": "integer",
                "description": "A client did not provide the required certificate.",
                "example": 0
              },
              "expired_cert": {
                "type": "integer",
                "description": "An expired or not yet valid certificate was presented by a client.",
                "example": 2
              },
              "revoked_cert": {
                "type": "integer",
                "description": "A revoked certificate was presented by a client.",
                "example": 1
              },
              "other": {
                "type": "integer",
                "description": "Other SSL certificate verification errors.",
                "example": 1
              }
            },
            "example": {}
          }
        },
        "example": {}
      }
    },
    "example": {
      "processing": 1,
      "requests": 706690,
      "responses": {
        "1xx": 0,
        "2xx": 699482,
        "3xx": 4522,
        "4xx": 907,
        "5xx": 266,
        "codes": {
          "200": 699482,
          "301": 4522,
          "404": 907,
          "503": 266
        },
        "total": 705177
      },
      "discarded": 1513,
      "received": 172711587,
      "sent": 19415530115,
      "ssl": {
        "handshakes": 104303,
        "handshakes_failed": 1421,
        "session_reuses": 54645,
        "no_common_protocol": 4,
        "no_common_cipher": 2,
        "handshake_timeout": 0,
        "peer_rejected_cert": 0,
        "verify_failures": {
          "no_cert": 0,
          "expired_cert": 2,
          "revoked_cert": 1,
          "other": 1
        }
      }
    }
  },
  "example": {
    "site1": {
      "processing": 2,
      "requests": 736395,
      "responses": {
        "1xx": 0,
        "2xx": 727290,
        "3xx": 4614,
        "4xx": 934,
        "5xx": 1535,
        "codes": {
          "200": 727270,
          "301": 4614,
          "404": 930,
          "503": 1535
        },
        "total": 734373
      },
      "discarded": 2020,
      "received": 180157219,
      "sent": 20183175459,
      "ssl": {
        "handshakes": 65432,
        "handshakes_failed": 421,
        "session_reuses": 4645,
        "no_common_protocol": 4,
        "no_common_cipher": 2,
        "handshake_timeout": 0,
        "peer_rejected_cert": 0,
        "verify_failures": {
          "no_cert": 0,
          "expired_cert": 2,
          "revoked_cert": 1,
          "hostname_mismatch": 2,
          "other": 1
        }
      }
    },
    "site2": {
      "processing": 1,
      "requests": 185307,
      "responses": {
        "1xx": 0,
        "2xx": 112674,
        "3xx": 45383,
        "4xx": 2504,
        "5xx": 4419,
        "codes": {
          "200": 112674,
          "301": 45383,
          "404": 2504,
          "503": 4419
        },
        "total": 164980
      },
      "discarded": 20326,
      "received": 51575327,
      "sent": 2983241510,
      "ssl": {
        "handshakes": 104303,
        "handshakes_failed": 1421,
        "session_reuses": 54645,
        "no_common_protocol": 4,
        "no_common_cipher": 2,
        "handshake_timeout": 0,
        "peer_rejected_cert": 0,
        "verify_failures": {
          "no_cert": 0,
          "expired_cert": 2,
          "revoked_cert": 1,
          "hostname_mismatch": 2,
          "other": 1
        }
      }
    }
  }
}