#[non_exhaustive]pub struct ModelMonitoringStatsAnomalies {
pub objective: ModelDeploymentMonitoringObjectiveType,
pub deployed_model_id: String,
pub anomaly_count: i32,
pub feature_stats: Vec<FeatureHistoricStatsAnomalies>,
/* private fields */
}Available on crate feature
job-service only.Expand description
Statistics and anomalies generated by Model Monitoring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.objective: ModelDeploymentMonitoringObjectiveTypeModel Monitoring Objective those stats and anomalies belonging to.
deployed_model_id: StringDeployed Model ID.
anomaly_count: i32Number of anomalies within all stats.
feature_stats: Vec<FeatureHistoricStatsAnomalies>A list of historical Stats and Anomalies generated for all Features.
Implementations§
Source§impl ModelMonitoringStatsAnomalies
impl ModelMonitoringStatsAnomalies
pub fn new() -> Self
Sourcepub fn set_objective<T: Into<ModelDeploymentMonitoringObjectiveType>>(
self,
v: T,
) -> Self
pub fn set_objective<T: Into<ModelDeploymentMonitoringObjectiveType>>( self, v: T, ) -> Self
Sets the value of objective.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::ModelDeploymentMonitoringObjectiveType;
let x0 = ModelMonitoringStatsAnomalies::new().set_objective(ModelDeploymentMonitoringObjectiveType::RawFeatureSkew);
let x1 = ModelMonitoringStatsAnomalies::new().set_objective(ModelDeploymentMonitoringObjectiveType::RawFeatureDrift);
let x2 = ModelMonitoringStatsAnomalies::new().set_objective(ModelDeploymentMonitoringObjectiveType::FeatureAttributionSkew);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 = ModelMonitoringStatsAnomalies::new().set_deployed_model_id("example");Sourcepub fn set_anomaly_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_anomaly_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of anomaly_count.
§Example
ⓘ
let x = ModelMonitoringStatsAnomalies::new().set_anomaly_count(42);Sourcepub fn set_feature_stats<T, V>(self, v: T) -> Self
pub fn set_feature_stats<T, V>(self, v: T) -> Self
Sets the value of feature_stats.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::model_monitoring_stats_anomalies::FeatureHistoricStatsAnomalies;
let x = ModelMonitoringStatsAnomalies::new()
.set_feature_stats([
FeatureHistoricStatsAnomalies::default()/* use setters */,
FeatureHistoricStatsAnomalies::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for ModelMonitoringStatsAnomalies
impl Clone for ModelMonitoringStatsAnomalies
Source§fn clone(&self) -> ModelMonitoringStatsAnomalies
fn clone(&self) -> ModelMonitoringStatsAnomalies
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ModelMonitoringStatsAnomalies
impl Default for ModelMonitoringStatsAnomalies
Source§fn default() -> ModelMonitoringStatsAnomalies
fn default() -> ModelMonitoringStatsAnomalies
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModelMonitoringStatsAnomalies
impl PartialEq for ModelMonitoringStatsAnomalies
Source§fn eq(&self, other: &ModelMonitoringStatsAnomalies) -> bool
fn eq(&self, other: &ModelMonitoringStatsAnomalies) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelMonitoringStatsAnomalies
Auto Trait Implementations§
impl Freeze for ModelMonitoringStatsAnomalies
impl RefUnwindSafe for ModelMonitoringStatsAnomalies
impl Send for ModelMonitoringStatsAnomalies
impl Sync for ModelMonitoringStatsAnomalies
impl Unpin for ModelMonitoringStatsAnomalies
impl UnwindSafe for ModelMonitoringStatsAnomalies
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more