pub struct UptimeCheckService { /* private fields */ }Expand description
Implements a client for 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
UptimeCheckService has various configuration parameters, the defaults should
work with most applications.
§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 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: 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 when mocking the client.
Sourcepub fn list_uptime_check_configs(
&self,
parent: impl Into<String>,
) -> ListUptimeCheckConfigs
pub fn list_uptime_check_configs( &self, parent: impl Into<String>, ) -> ListUptimeCheckConfigs
Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations).
Sourcepub fn get_uptime_check_config(
&self,
name: impl Into<String>,
) -> GetUptimeCheckConfig
pub fn get_uptime_check_config( &self, name: impl Into<String>, ) -> GetUptimeCheckConfig
Gets a single Uptime check configuration.
Sourcepub fn create_uptime_check_config(
&self,
parent: impl Into<String>,
) -> CreateUptimeCheckConfig
pub fn create_uptime_check_config( &self, parent: impl Into<String>, ) -> CreateUptimeCheckConfig
Creates a new Uptime check configuration.
Sourcepub fn update_uptime_check_config(
&self,
uptime_check_config: impl Into<UptimeCheckConfig>,
) -> UpdateUptimeCheckConfig
pub fn update_uptime_check_config( &self, uptime_check_config: impl Into<UptimeCheckConfig>, ) -> 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,
name: impl Into<String>,
) -> DeleteUptimeCheckConfig
pub fn delete_uptime_check_config( &self, name: impl Into<String>, ) -> 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