Class: Google::Monitoring::V3::CreateAlertPolicyRequest
- Inherits:
-
Object
- Object
- Google::Monitoring::V3::CreateAlertPolicyRequest
- Defined in:
- lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb
Overview
The protocol for the +CreateAlertPolicy+ request.
Instance Attribute Summary collapse
-
#alert_policy ⇒ Google::Monitoring::V3::AlertPolicy
The requested alerting policy.
-
#name ⇒ String
The project in which to create the alerting policy.
Instance Attribute Details
#alert_policy ⇒ Google::Monitoring::V3::AlertPolicy
Returns 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.
34 |
# File 'lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb', line 34 class CreateAlertPolicyRequest; end |
#name ⇒ String
Returns The project in which to create the alerting policy. The format is +projects/[PROJECT_ID]+.
Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. 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/[POLICY_ID]+, identifying the policy in the container.
34 |
# File 'lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb', line 34 class CreateAlertPolicyRequest; end |