Struct googapis::google::monitoring::v3::alert_policy_service_client::AlertPolicyServiceClient [−][src]
pub struct AlertPolicyServiceClient<T> { /* fields omitted */ }
Expand description
The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions under which some aspect of your system is considered to be “unhealthy” and the ways to notify people or services about this state. In addition to using this API, alert policies can also be managed through Stackdriver Monitoring, which can be reached by clicking the “Monitoring” tab in Cloud Console.
Implementations
impl<T> AlertPolicyServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AlertPolicyServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> AlertPolicyServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn list_alert_policies(
&mut self,
request: impl IntoRequest<ListAlertPoliciesRequest>
) -> Result<Response<ListAlertPoliciesResponse>, Status>
pub async fn list_alert_policies(
&mut self,
request: impl IntoRequest<ListAlertPoliciesRequest>
) -> Result<Response<ListAlertPoliciesResponse>, Status>
Lists the existing alerting policies for the workspace.
pub async fn get_alert_policy(
&mut self,
request: impl IntoRequest<GetAlertPolicyRequest>
) -> Result<Response<AlertPolicy>, Status>
pub async fn get_alert_policy(
&mut self,
request: impl IntoRequest<GetAlertPolicyRequest>
) -> Result<Response<AlertPolicy>, Status>
Gets a single alerting policy.
pub async fn create_alert_policy(
&mut self,
request: impl IntoRequest<CreateAlertPolicyRequest>
) -> Result<Response<AlertPolicy>, Status>
pub async fn create_alert_policy(
&mut self,
request: impl IntoRequest<CreateAlertPolicyRequest>
) -> Result<Response<AlertPolicy>, Status>
Creates a new alerting policy.
pub async fn delete_alert_policy(
&mut self,
request: impl IntoRequest<DeleteAlertPolicyRequest>
) -> Result<Response<()>, Status>
pub async fn delete_alert_policy(
&mut self,
request: impl IntoRequest<DeleteAlertPolicyRequest>
) -> Result<Response<()>, Status>
Deletes an alerting policy.
pub async fn update_alert_policy(
&mut self,
request: impl IntoRequest<UpdateAlertPolicyRequest>
) -> Result<Response<AlertPolicy>, Status>
pub async fn update_alert_policy(
&mut self,
request: impl IntoRequest<UpdateAlertPolicyRequest>
) -> Result<Response<AlertPolicy>, Status>
Updates an alerting policy. You can either replace the entire policy with
a new one or replace only certain fields in the current alerting policy by
specifying the fields to be updated via updateMask
. Returns the
updated alerting policy.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AlertPolicyServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for AlertPolicyServiceClient<T> where
T: Send,
impl<T> Sync for AlertPolicyServiceClient<T> where
T: Sync,
impl<T> Unpin for AlertPolicyServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for AlertPolicyServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more