{
  "ml.get_overall_buckets": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ml-get-overall-buckets.html",
      "description": "Get overall bucket results"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/results/overall_buckets",
          "methods": [
            "GET",
            "POST"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The job IDs for which to calculate overall bucket results"
            }
          }
        }
      ]
    },
    "params": {
      "top_n": {
        "type": "int",
        "default": 1,
        "description": "The number of top job bucket scores to be used in the overall_score calculation"
      },
      "bucket_span": {
        "type": "time",
        "description": "The span of the overall buckets. Defaults to the longest job bucket_span"
      },
      "overall_score": {
        "type": "double",
        "description": "Returns overall buckets with overall scores higher than this value"
      },
      "exclude_interim": {
        "type": "boolean",
        "default": false,
        "description": "If true overall buckets that include interim buckets will be excluded"
      },
      "start": {
        "type": "date",
        "description": "Returns overall buckets with timestamps after this time"
      },
      "end": {
        "type": "date",
        "description": "Returns overall buckets with timestamps earlier than this time"
      },
      "allow_no_match": {
        "type": "boolean",
        "default": true,
        "description": "Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)"
      }
    },
    "body": {
      "description": "Overall bucket selection details if not provided in URI",
      "required": false
    }
  }
}
