#[non_exhaustive]pub struct SearchModelDeploymentMonitoringStatsAnomaliesRequest {
pub model_deployment_monitoring_job: String,
pub deployed_model_id: String,
pub feature_display_name: String,
pub objectives: Vec<StatsAnomaliesObjective>,
pub page_size: i32,
pub page_token: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}job-service only.Expand description
Request message for JobService.SearchModelDeploymentMonitoringStatsAnomalies.
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.model_deployment_monitoring_job: StringRequired. ModelDeploymentMonitoring Job resource name.
Format:
projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
deployed_model_id: StringRequired. The DeployedModel ID of the [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
feature_display_name: StringThe feature display name. If specified, only return the stats belonging to this feature. Format: ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name, example: “user_destination”.
objectives: Vec<StatsAnomaliesObjective>Required. Objectives of the stats to retrieve.
page_size: i32The standard list page size.
page_token: StringA page token received from a previous JobService.SearchModelDeploymentMonitoringStatsAnomalies call.
start_time: Option<Timestamp>The earliest timestamp of stats being generated. If not set, indicates fetching stats till the earliest possible one.
end_time: Option<Timestamp>The latest timestamp of stats being generated. If not set, indicates feching stats till the latest possible one.
Implementations§
Source§impl SearchModelDeploymentMonitoringStatsAnomaliesRequest
impl SearchModelDeploymentMonitoringStatsAnomaliesRequest
pub fn new() -> Self
Sourcepub fn set_model_deployment_monitoring_job<T: Into<String>>(self, v: T) -> Self
pub fn set_model_deployment_monitoring_job<T: Into<String>>(self, v: T) -> Self
Sets the value of model_deployment_monitoring_job.
§Example
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_model_deployment_monitoring_job("example");Sourcepub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_model_id.
§Example
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_deployed_model_id("example");Sourcepub fn set_feature_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_feature_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of feature_display_name.
§Example
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_feature_display_name("example");Sourcepub fn set_objectives<T, V>(self, v: T) -> Self
pub fn set_objectives<T, V>(self, v: T) -> Self
Sets the value of objectives.
§Example
use google_cloud_aiplatform_v1::model::search_model_deployment_monitoring_stats_anomalies_request::StatsAnomaliesObjective;
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new()
.set_objectives([
StatsAnomaliesObjective::default()/* use setters */,
StatsAnomaliesObjective::default()/* use (different) setters */,
]);Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_page_token("example");Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
§Example
use wkt::Timestamp;
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_or_clear_end_time(Some(Timestamp::default()/* use setters */));
let x = SearchModelDeploymentMonitoringStatsAnomaliesRequest::new().set_or_clear_end_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for SearchModelDeploymentMonitoringStatsAnomaliesRequest
impl Clone for SearchModelDeploymentMonitoringStatsAnomaliesRequest
Source§fn clone(&self) -> SearchModelDeploymentMonitoringStatsAnomaliesRequest
fn clone(&self) -> SearchModelDeploymentMonitoringStatsAnomaliesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SearchModelDeploymentMonitoringStatsAnomaliesRequest
impl Default for SearchModelDeploymentMonitoringStatsAnomaliesRequest
Source§fn default() -> SearchModelDeploymentMonitoringStatsAnomaliesRequest
fn default() -> SearchModelDeploymentMonitoringStatsAnomaliesRequest
Source§impl PartialEq for SearchModelDeploymentMonitoringStatsAnomaliesRequest
impl PartialEq for SearchModelDeploymentMonitoringStatsAnomaliesRequest
Source§fn eq(
&self,
other: &SearchModelDeploymentMonitoringStatsAnomaliesRequest,
) -> bool
fn eq( &self, other: &SearchModelDeploymentMonitoringStatsAnomaliesRequest, ) -> bool
self and other values to be equal, and is used by ==.