pub struct UptimeCheckService { /* private fields */ }Expand description
Implements a client for the Cloud Monitoring API.
§Example
let client = UptimeCheckService::builder().build().await?;
// use `client` to make requests to the Cloud Monitoring API.§Service Description
The UptimeCheckService API is used to manage (list, create, delete, edit) Uptime check configurations in the Cloud Monitoring product. An Uptime check is a piece of configuration that determines which resources and services to monitor for availability. These configurations can also be configured interactively by navigating to the [Cloud console] (https://console.cloud.google.com), selecting the appropriate project, clicking on “Monitoring” on the left-hand side to navigate to Cloud Monitoring, and then clicking on “Uptime”.
§Configuration
To configure UptimeCheckService use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://monitoring.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
UptimeCheckService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap UptimeCheckService in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl UptimeCheckService
impl UptimeCheckService
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for UptimeCheckService.
let client = UptimeCheckService::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: UptimeCheckService + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: UptimeCheckService + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_uptime_check_configs(&self) -> ListUptimeCheckConfigs
pub fn list_uptime_check_configs(&self) -> ListUptimeCheckConfigs
Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations).
Sourcepub fn get_uptime_check_config(&self) -> GetUptimeCheckConfig
pub fn get_uptime_check_config(&self) -> GetUptimeCheckConfig
Gets a single Uptime check configuration.
Sourcepub fn create_uptime_check_config(&self) -> CreateUptimeCheckConfig
pub fn create_uptime_check_config(&self) -> CreateUptimeCheckConfig
Creates a new Uptime check configuration.
Sourcepub fn update_uptime_check_config(&self) -> UpdateUptimeCheckConfig
pub fn update_uptime_check_config(&self) -> UpdateUptimeCheckConfig
Updates an Uptime check configuration. You can either replace the entire
configuration with a new one or replace only certain fields in the current
configuration by specifying the fields to be updated via updateMask.
Returns the updated configuration.
Sourcepub fn delete_uptime_check_config(&self) -> DeleteUptimeCheckConfig
pub fn delete_uptime_check_config(&self) -> DeleteUptimeCheckConfig
Deletes an Uptime check configuration. Note that this method will fail if the Uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion.
Sourcepub fn list_uptime_check_ips(&self) -> ListUptimeCheckIps
pub fn list_uptime_check_ips(&self) -> ListUptimeCheckIps
Returns the list of IP addresses that checkers run from.
Trait Implementations§
Source§impl Clone for UptimeCheckService
impl Clone for UptimeCheckService
Source§fn clone(&self) -> UptimeCheckService
fn clone(&self) -> UptimeCheckService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more