{
  "nodes.stats": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-stats",
      "description": "Get node statistics"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_nodes/stats",
          "methods": [
            "GET"
          ]
        },
        {
          "path": "/_nodes/{node_id}/stats",
          "methods": [
            "GET"
          ],
          "parts": {
            "node_id": {
              "type": "list",
              "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
            }
          }
        },
        {
          "path": "/_nodes/stats/{metric}",
          "methods": [
            "GET"
          ],
          "parts": {
            "metric": {
              "type": "list",
              "options": [
                "_all",
                "_none",
                "adaptive_selection",
                "allocations",
                "breaker",
                "discovery",
                "fs",
                "http",
                "indexing_pressure",
                "indices",
                "ingest",
                "jvm",
                "os",
                "process",
                "repositories",
                "script",
                "script_cache",
                "thread_pool",
                "transport"
              ],
              "description": "Limit the information returned to the specified metrics"
            }
          }
        },
        {
          "path": "/_nodes/{node_id}/stats/{metric}",
          "methods": [
            "GET"
          ],
          "parts": {
            "metric": {
              "type": "list",
              "options": [
                "_all",
                "_none",
                "adaptive_selection",
                "allocations",
                "breaker",
                "discovery",
                "fs",
                "http",
                "indexing_pressure",
                "indices",
                "ingest",
                "jvm",
                "os",
                "process",
                "repositories",
                "script",
                "script_cache",
                "thread_pool",
                "transport"
              ],
              "description": "Limit the information returned to the specified metrics"
            },
            "node_id": {
              "type": "list",
              "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
            }
          }
        },
        {
          "path": "/_nodes/stats/{metric}/{index_metric}",
          "methods": [
            "GET"
          ],
          "parts": {
            "metric": {
              "type": "list",
              "options": [
                "_all",
                "_none",
                "adaptive_selection",
                "allocations",
                "breaker",
                "discovery",
                "fs",
                "http",
                "indexing_pressure",
                "indices",
                "ingest",
                "jvm",
                "os",
                "process",
                "repositories",
                "script",
                "script_cache",
                "thread_pool",
                "transport"
              ],
              "description": "Limit the information returned to the specified metrics"
            },
            "index_metric": {
              "type": "list",
              "options": [
                "_all",
                "completion",
                "docs",
                "fielddata",
                "query_cache",
                "flush",
                "get",
                "indexing",
                "mappings",
                "merge",
                "request_cache",
                "recovery",
                "refresh",
                "search",
                "segments",
                "store",
                "warmer",
                "bulk",
                "shard_stats",
                "translog",
                "dense_vector",
                "sparse_vector"
              ],
              "description": "Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified."
            }
          }
        },
        {
          "path": "/_nodes/{node_id}/stats/{metric}/{index_metric}",
          "methods": [
            "GET"
          ],
          "parts": {
            "metric": {
              "type": "list",
              "options": [
                "_all",
                "_none",
                "adaptive_selection",
                "allocations",
                "breaker",
                "discovery",
                "fs",
                "http",
                "indexing_pressure",
                "indices",
                "ingest",
                "jvm",
                "os",
                "process",
                "repositories",
                "script",
                "script_cache",
                "thread_pool",
                "transport"
              ],
              "description": "Limit the information returned to the specified metrics"
            },
            "index_metric": {
              "type": "list",
              "options": [
                "_all",
                "completion",
                "docs",
                "fielddata",
                "query_cache",
                "flush",
                "get",
                "indexing",
                "mappings",
                "merge",
                "request_cache",
                "recovery",
                "refresh",
                "search",
                "segments",
                "store",
                "warmer",
                "bulk",
                "shard_stats",
                "translog",
                "dense_vector",
                "sparse_vector"
              ],
              "description": "Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified."
            },
            "node_id": {
              "type": "list",
              "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
            }
          }
        }
      ]
    },
    "params": {
      "completion_fields": {
        "type": "list",
        "description": "A comma-separated list of fields for the `completion` index metric (supports wildcards)"
      },
      "fielddata_fields": {
        "type": "list",
        "description": "A comma-separated list of fields for the `fielddata` index metric (supports wildcards)"
      },
      "fields": {
        "type": "list",
        "description": "A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)"
      },
      "groups": {
        "type": "boolean",
        "description": "A comma-separated list of search groups for `search` index metric"
      },
      "level": {
        "type": "enum",
        "description": "Return indices stats aggregated at index, node or shard level",
        "options": [
          "indices",
          "node",
          "shards"
        ],
        "default": "node"
      },
      "types": {
        "type": "list",
        "description": "A comma-separated list of document types for the `indexing` index metric"
      },
      "timeout": {
        "type": "time",
        "default": "30s",
        "description": "Explicit operation timeout"
      },
      "include_segment_file_sizes": {
        "type": "boolean",
        "description": "Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)",
        "default": false
      },
      "include_unloaded_segments": {
        "type": "boolean",
        "description": "If set to true segment stats will include stats for segments that are not currently loaded into memory",
        "default": false
      }
    }
  }
}
