Struct google_api_proto::google::monitoring::v3::CreateAlertPolicyRequest
source · pub struct CreateAlertPolicyRequest {
pub name: String,
pub alert_policy: Option<AlertPolicy>,
}
Expand description
The protocol for the CreateAlertPolicy
request.
Fields§
§name: String
Required. The project in which to create the alerting policy. The format is:
projects/\[PROJECT_ID_OR_NUMBER\]
Note that this field names the parent container in which the alerting
policy will be written, not the name of the created policy. |name| must be
a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
return. The alerting policy that is returned will have a name that contains
a normalized representation of this name as a prefix but adds a suffix of
the form /alertPolicies/\[ALERT_POLICY_ID\]
, identifying the policy in the
container.
alert_policy: Option<AlertPolicy>
Required. The requested alerting policy. You should omit the name
field
in this policy. The name will be returned in the new policy, including a
new \[ALERT_POLICY_ID\]
value.
Trait Implementations§
source§impl Clone for CreateAlertPolicyRequest
impl Clone for CreateAlertPolicyRequest
source§fn clone(&self) -> CreateAlertPolicyRequest
fn clone(&self) -> CreateAlertPolicyRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAlertPolicyRequest
impl Debug for CreateAlertPolicyRequest
source§impl Default for CreateAlertPolicyRequest
impl Default for CreateAlertPolicyRequest
source§impl Message for CreateAlertPolicyRequest
impl Message for CreateAlertPolicyRequest
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 CreateAlertPolicyRequest
impl PartialEq for CreateAlertPolicyRequest
source§fn eq(&self, other: &CreateAlertPolicyRequest) -> bool
fn eq(&self, other: &CreateAlertPolicyRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAlertPolicyRequest
Auto Trait Implementations§
impl Freeze for CreateAlertPolicyRequest
impl RefUnwindSafe for CreateAlertPolicyRequest
impl Send for CreateAlertPolicyRequest
impl Sync for CreateAlertPolicyRequest
impl Unpin for CreateAlertPolicyRequest
impl UnwindSafe for CreateAlertPolicyRequest
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