job_id ?? null; if (isset($job_id)) { return "/_ml/anomaly_detectors/$job_id/_flush"; } throw new RuntimeException('Missing parameter for the endpoint ml.flush_job'); } public function getParamWhitelist(): array { return [ 'calc_interim', 'start', 'end', 'advance_time', 'skip_time' ]; } public function getMethod(): string { return 'POST'; } public function setBody($body): FlushJob { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setJobId($job_id): FlushJob { if (isset($job_id) !== true) { return $this; } $this->job_id = $job_id; return $this; } }