Struct google_api_proto::google::monitoring::v3::UpdateAlertPolicyRequest
source · pub struct UpdateAlertPolicyRequest {
pub update_mask: Option<FieldMask>,
pub alert_policy: Option<AlertPolicy>,
}
Expand description
The protocol for the UpdateAlertPolicy
request.
Fields§
§update_mask: Option<FieldMask>
Optional. A list of alerting policy field names. If this field is not
empty, each listed field in the existing alerting policy is set to the
value of the corresponding field in the supplied policy (alert_policy
),
or to the field’s default value if the field is not in the supplied
alerting policy. Fields not listed retain their previous value.
Examples of valid field masks include display_name
, documentation
,
documentation.content
, documentation.mime_type
, user_labels
,
user_label.nameofkey
, enabled
, conditions
, combiner
, etc.
If this field is empty, then the supplied alerting policy replaces the existing policy. It is the same as deleting the existing policy and adding the supplied policy, except for the following:
- The new policy will have the same
\[ALERT_POLICY_ID\]
as the former policy. This gives you continuity with the former policy in your notifications and incidents. - Conditions in the new policy will keep their former
\[CONDITION_ID\]
if the supplied condition includes thename
field with that\[CONDITION_ID\]
. If the supplied condition omits thename
field, then a new\[CONDITION_ID\]
is created.
alert_policy: Option<AlertPolicy>
Required. The updated alerting policy or the updated values for the
fields listed in update_mask
.
If update_mask
is not empty, any fields in this policy that are
not in update_mask
are ignored.
Trait Implementations§
source§impl Clone for UpdateAlertPolicyRequest
impl Clone for UpdateAlertPolicyRequest
source§fn clone(&self) -> UpdateAlertPolicyRequest
fn clone(&self) -> UpdateAlertPolicyRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateAlertPolicyRequest
impl Debug for UpdateAlertPolicyRequest
source§impl Default for UpdateAlertPolicyRequest
impl Default for UpdateAlertPolicyRequest
source§impl Message for UpdateAlertPolicyRequest
impl Message for UpdateAlertPolicyRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UpdateAlertPolicyRequest
impl PartialEq for UpdateAlertPolicyRequest
source§fn eq(&self, other: &UpdateAlertPolicyRequest) -> bool
fn eq(&self, other: &UpdateAlertPolicyRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateAlertPolicyRequest
Auto Trait Implementations§
impl Freeze for UpdateAlertPolicyRequest
impl RefUnwindSafe for UpdateAlertPolicyRequest
impl Send for UpdateAlertPolicyRequest
impl Sync for UpdateAlertPolicyRequest
impl Unpin for UpdateAlertPolicyRequest
impl UnwindSafe for UpdateAlertPolicyRequest
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