Struct gapi_grpc::google::monitoring::v3::CreateAlertPolicyRequest[][src]

pub struct CreateAlertPolicyRequest {
    pub name: String,
    pub alert_policy: Option<AlertPolicy>,
}

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 workspace, 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

impl Clone for CreateAlertPolicyRequest[src]

impl Debug for CreateAlertPolicyRequest[src]

impl Default for CreateAlertPolicyRequest[src]

impl Message for CreateAlertPolicyRequest[src]

impl PartialEq<CreateAlertPolicyRequest> for CreateAlertPolicyRequest[src]

impl StructuralPartialEq for CreateAlertPolicyRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for CreateAlertPolicyRequest

impl Send for CreateAlertPolicyRequest

impl Sync for CreateAlertPolicyRequest

impl Unpin for CreateAlertPolicyRequest

impl UnwindSafe for CreateAlertPolicyRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]