Struct elasticsearch::ml::MlFlushJob
source · pub struct MlFlushJob<'a, 'b, B> { /* private fields */ }
Expand description
Builder for the Ml Flush Job API
Forces any buffered data to be processed by the job.
Implementations
sourceimpl<'a, 'b, B> MlFlushJob<'a, 'b, B>where
B: Body,
impl<'a, 'b, B> MlFlushJob<'a, 'b, B>where
B: Body,
sourcepub fn new(transport: &'a Transport, parts: MlFlushJobParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: MlFlushJobParts<'b>) -> Self
Creates a new instance of MlFlushJob with the specified API parts
sourcepub fn advance_time(self, advance_time: &'b str) -> Self
pub fn advance_time(self, advance_time: &'b str) -> Self
Advances time to the given value generating results and updating the model for the advanced interval
sourcepub fn body<T>(self, body: T) -> MlFlushJob<'a, 'b, JsonBody<T>>where
T: Serialize,
pub fn body<T>(self, body: T) -> MlFlushJob<'a, 'b, JsonBody<T>>where
T: Serialize,
The body for the API call
sourcepub fn calc_interim(self, calc_interim: bool) -> Self
pub fn calc_interim(self, calc_interim: bool) -> Self
Calculates interim results for the most recent bucket or all buckets within the latency period
sourcepub fn end(self, end: &'b str) -> Self
pub fn end(self, end: &'b str) -> Self
When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results
sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
sourcepub fn skip_time(self, skip_time: &'b str) -> Self
pub fn skip_time(self, skip_time: &'b str) -> Self
Skips time to the given value without generating results or updating the model for the skipped interval
sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
Trait Implementations
sourceimpl<'a, 'b, B: Clone> Clone for MlFlushJob<'a, 'b, B>
impl<'a, 'b, B: Clone> Clone for MlFlushJob<'a, 'b, B>
sourcefn clone(&self) -> MlFlushJob<'a, 'b, B>
fn clone(&self) -> MlFlushJob<'a, 'b, B>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more