Struct google_api_proto::google::cloud::aiplatform::v1beta1::model_monitoring_service_client::ModelMonitoringServiceClient
source · pub struct ModelMonitoringServiceClient<T> { /* private fields */ }
Expand description
A service for creating and managing Vertex AI Model moitoring. This includes
ModelMonitor
resources, ModelMonitoringJob
resources.
Implementations§
source§impl<T> ModelMonitoringServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ModelMonitoringServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> ModelMonitoringServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_model_monitor(
&mut self,
request: impl IntoRequest<CreateModelMonitorRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_model_monitor( &mut self, request: impl IntoRequest<CreateModelMonitorRequest> ) -> Result<Response<Operation>, Status>
Creates a ModelMonitor.
sourcepub async fn update_model_monitor(
&mut self,
request: impl IntoRequest<UpdateModelMonitorRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_model_monitor( &mut self, request: impl IntoRequest<UpdateModelMonitorRequest> ) -> Result<Response<Operation>, Status>
Updates a ModelMonitor.
sourcepub async fn get_model_monitor(
&mut self,
request: impl IntoRequest<GetModelMonitorRequest>
) -> Result<Response<ModelMonitor>, Status>
pub async fn get_model_monitor( &mut self, request: impl IntoRequest<GetModelMonitorRequest> ) -> Result<Response<ModelMonitor>, Status>
Gets a ModelMonitor.
sourcepub async fn list_model_monitors(
&mut self,
request: impl IntoRequest<ListModelMonitorsRequest>
) -> Result<Response<ListModelMonitorsResponse>, Status>
pub async fn list_model_monitors( &mut self, request: impl IntoRequest<ListModelMonitorsRequest> ) -> Result<Response<ListModelMonitorsResponse>, Status>
Lists ModelMonitors in a Location.
sourcepub async fn delete_model_monitor(
&mut self,
request: impl IntoRequest<DeleteModelMonitorRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_model_monitor( &mut self, request: impl IntoRequest<DeleteModelMonitorRequest> ) -> Result<Response<Operation>, Status>
Deletes a ModelMonitor.
sourcepub async fn create_model_monitoring_job(
&mut self,
request: impl IntoRequest<CreateModelMonitoringJobRequest>
) -> Result<Response<ModelMonitoringJob>, Status>
pub async fn create_model_monitoring_job( &mut self, request: impl IntoRequest<CreateModelMonitoringJobRequest> ) -> Result<Response<ModelMonitoringJob>, Status>
Creates a ModelMonitoringJob.
sourcepub async fn get_model_monitoring_job(
&mut self,
request: impl IntoRequest<GetModelMonitoringJobRequest>
) -> Result<Response<ModelMonitoringJob>, Status>
pub async fn get_model_monitoring_job( &mut self, request: impl IntoRequest<GetModelMonitoringJobRequest> ) -> Result<Response<ModelMonitoringJob>, Status>
Gets a ModelMonitoringJob.
sourcepub async fn list_model_monitoring_jobs(
&mut self,
request: impl IntoRequest<ListModelMonitoringJobsRequest>
) -> Result<Response<ListModelMonitoringJobsResponse>, Status>
pub async fn list_model_monitoring_jobs( &mut self, request: impl IntoRequest<ListModelMonitoringJobsRequest> ) -> Result<Response<ListModelMonitoringJobsResponse>, Status>
Lists ModelMonitoringJobs.
Callers may choose to read across multiple Monitors as per
AIP-159 by using ‘-’ (the hyphen or dash
character) as a wildcard character instead of modelMonitor id in the
parent. Format
projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs
sourcepub async fn delete_model_monitoring_job(
&mut self,
request: impl IntoRequest<DeleteModelMonitoringJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_model_monitoring_job( &mut self, request: impl IntoRequest<DeleteModelMonitoringJobRequest> ) -> Result<Response<Operation>, Status>
Deletes a ModelMonitoringJob.
sourcepub async fn search_model_monitoring_stats(
&mut self,
request: impl IntoRequest<SearchModelMonitoringStatsRequest>
) -> Result<Response<SearchModelMonitoringStatsResponse>, Status>
pub async fn search_model_monitoring_stats( &mut self, request: impl IntoRequest<SearchModelMonitoringStatsRequest> ) -> Result<Response<SearchModelMonitoringStatsResponse>, Status>
Searches Model Monitoring Stats generated within a given time window.
sourcepub async fn search_model_monitoring_alerts(
&mut self,
request: impl IntoRequest<SearchModelMonitoringAlertsRequest>
) -> Result<Response<SearchModelMonitoringAlertsResponse>, Status>
pub async fn search_model_monitoring_alerts( &mut self, request: impl IntoRequest<SearchModelMonitoringAlertsRequest> ) -> Result<Response<SearchModelMonitoringAlertsResponse>, Status>
Returns the Model Monitoring alerts.
Trait Implementations§
source§impl<T: Clone> Clone for ModelMonitoringServiceClient<T>
impl<T: Clone> Clone for ModelMonitoringServiceClient<T>
source§fn clone(&self) -> ModelMonitoringServiceClient<T>
fn clone(&self) -> ModelMonitoringServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for ModelMonitoringServiceClient<T>
impl<T> RefUnwindSafe for ModelMonitoringServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ModelMonitoringServiceClient<T>where
T: Send,
impl<T> Sync for ModelMonitoringServiceClient<T>where
T: Sync,
impl<T> Unpin for ModelMonitoringServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ModelMonitoringServiceClient<T>where
T: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request