pub struct ServiceMonitoringService { /* private fields */ }Expand description
Implements a client for the Cloud Monitoring API.
§Service Description
The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
managing and querying aspects of a Metrics Scope’s services. These include
the Service’s monitored resources, its Service-Level Objectives, and a
taxonomy of categorized Health Metrics.
§Configuration
ServiceMonitoringService has various configuration parameters, the defaults should
work with most applications.
§Pooling and Cloning
ServiceMonitoringService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap ServiceMonitoringService in
an Rc or Arc to reuse it, because it already uses an Arc
internally.
Implementations§
Source§impl ServiceMonitoringService
impl ServiceMonitoringService
Sourcepub async fn new_with_config(conf: ClientConfig) -> Result<Self>
pub async fn new_with_config(conf: ClientConfig) -> Result<Self>
Creates a new client with the specified configuration.
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: ServiceMonitoringService + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: ServiceMonitoringService + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is when mocking the client.
Sourcepub fn create_service(&self, parent: impl Into<String>) -> CreateService
pub fn create_service(&self, parent: impl Into<String>) -> CreateService
Create a Service.
Sourcepub fn get_service(&self, name: impl Into<String>) -> GetService
pub fn get_service(&self, name: impl Into<String>) -> GetService
Get the named Service.
Sourcepub fn list_services(&self, parent: impl Into<String>) -> ListServices
pub fn list_services(&self, parent: impl Into<String>) -> ListServices
List Services for this Metrics Scope.
Sourcepub fn update_service(&self, service: impl Into<Service>) -> UpdateService
pub fn update_service(&self, service: impl Into<Service>) -> UpdateService
Update this Service.
Sourcepub fn delete_service(&self, name: impl Into<String>) -> DeleteService
pub fn delete_service(&self, name: impl Into<String>) -> DeleteService
Soft delete this Service.
Sourcepub fn create_service_level_objective(
&self,
parent: impl Into<String>,
) -> CreateServiceLevelObjective
pub fn create_service_level_objective( &self, parent: impl Into<String>, ) -> CreateServiceLevelObjective
Create a ServiceLevelObjective for the given Service.
Sourcepub fn get_service_level_objective(
&self,
name: impl Into<String>,
) -> GetServiceLevelObjective
pub fn get_service_level_objective( &self, name: impl Into<String>, ) -> GetServiceLevelObjective
Get a ServiceLevelObjective by name.
Sourcepub fn list_service_level_objectives(
&self,
parent: impl Into<String>,
) -> ListServiceLevelObjectives
pub fn list_service_level_objectives( &self, parent: impl Into<String>, ) -> ListServiceLevelObjectives
List the ServiceLevelObjectives for the given Service.
Sourcepub fn update_service_level_objective(
&self,
service_level_objective: impl Into<ServiceLevelObjective>,
) -> UpdateServiceLevelObjective
pub fn update_service_level_objective( &self, service_level_objective: impl Into<ServiceLevelObjective>, ) -> UpdateServiceLevelObjective
Update the given ServiceLevelObjective.
Sourcepub fn delete_service_level_objective(
&self,
name: impl Into<String>,
) -> DeleteServiceLevelObjective
pub fn delete_service_level_objective( &self, name: impl Into<String>, ) -> DeleteServiceLevelObjective
Delete the given ServiceLevelObjective.
Trait Implementations§
Source§impl Clone for ServiceMonitoringService
impl Clone for ServiceMonitoringService
Source§fn clone(&self) -> ServiceMonitoringService
fn clone(&self) -> ServiceMonitoringService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more