#[non_exhaustive]pub struct EvaluateSliceRequest {
pub dataset: String,
pub pinned_dimensions: Vec<PinnedDimension>,
pub detection_time: Option<Timestamp>,
pub timeseries_params: Option<TimeseriesParams>,
pub forecast_params: Option<ForecastParams>,
/* private fields */
}Expand description
Request for evaluateSlice.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dataset: StringRequired. Loaded DataSet to be queried in the format of “projects/{project}/datasets/{dataset}”
pinned_dimensions: Vec<PinnedDimension>Required. Dimensions with pinned values that specify the slice for which we will fetch the time series.
detection_time: Option<Timestamp>Required. This is the point in time that we want to probe for anomalies.
See documentation for QueryDataSetRequest.detectionTime.
timeseries_params: Option<TimeseriesParams>Parameters controlling how we will build the time series used to predict the detectionTime value for this slice.
forecast_params: Option<ForecastParams>Parameters that control the time series forecasting models, such as the sensitivity of the anomaly detection.
Implementations§
Source§impl EvaluateSliceRequest
impl EvaluateSliceRequest
pub fn new() -> Self
Sourcepub fn set_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_dataset<T: Into<String>>(self, v: T) -> Self
Sets the value of dataset.
Sourcepub fn set_pinned_dimensions<T, V>(self, v: T) -> Self
pub fn set_pinned_dimensions<T, V>(self, v: T) -> Self
Sets the value of pinned_dimensions.
Sourcepub fn set_detection_time<T>(self, v: T) -> Self
pub fn set_detection_time<T>(self, v: T) -> Self
Sets the value of detection_time.
Sourcepub fn set_or_clear_detection_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_detection_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of detection_time.
Sourcepub fn set_timeseries_params<T>(self, v: T) -> Selfwhere
T: Into<TimeseriesParams>,
pub fn set_timeseries_params<T>(self, v: T) -> Selfwhere
T: Into<TimeseriesParams>,
Sets the value of timeseries_params.
Sourcepub fn set_or_clear_timeseries_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeseriesParams>,
pub fn set_or_clear_timeseries_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeseriesParams>,
Sets or clears the value of timeseries_params.
Sourcepub fn set_forecast_params<T>(self, v: T) -> Selfwhere
T: Into<ForecastParams>,
pub fn set_forecast_params<T>(self, v: T) -> Selfwhere
T: Into<ForecastParams>,
Sets the value of forecast_params.
Sourcepub fn set_or_clear_forecast_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<ForecastParams>,
pub fn set_or_clear_forecast_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<ForecastParams>,
Sets or clears the value of forecast_params.
Trait Implementations§
Source§impl Clone for EvaluateSliceRequest
impl Clone for EvaluateSliceRequest
Source§fn clone(&self) -> EvaluateSliceRequest
fn clone(&self) -> EvaluateSliceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more