{
  "ml.flush_job": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ml-flush-job.html",
      "description": "Force buffered data to be processed"
    },
    "stability": "stable",
    "visibility": "public",
    "deprecated": {
      "version": "9.1.0",
      "description": "Forcing any buffered data to be processed is deprecated, in a future major version a datafeed will be required."
    },
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/_flush",
          "methods": [
            "POST"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The name of the job to flush"
            }
          }
        }
      ]
    },
    "params": {
      "calc_interim": {
        "type": "boolean",
        "description": "Calculates interim results for the most recent bucket or all buckets within the latency period"
      },
      "start": {
        "type": "date",
        "description": "When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results"
      },
      "end": {
        "type": "date",
        "description": "When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results"
      },
      "advance_time": {
        "type": "date",
        "description": "Advances time to the given value generating results and updating the model for the advanced interval"
      },
      "skip_time": {
        "type": "date",
        "description": "Skips time to the given value without generating results or updating the model for the skipped interval"
      }
    },
    "body": {
      "description": "Flush parameters",
      "required": false
    }
  }
}
