Class: Google::Cloud::Monitoring::V3::CreateAlertPolicyRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/monitoring/v3/alert_service.rb

Overview

The protocol for the CreateAlertPolicy request.

Instance Attribute Summary collapse

Instance Attribute Details

#alert_policy::Google::Cloud::Monitoring::V3::AlertPolicy

Returns 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.

Returns:

  • (::Google::Cloud::Monitoring::V3::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.



44
45
46
47
# File 'proto_docs/google/monitoring/v3/alert_service.rb', line 44

class CreateAlertPolicyRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#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.

Returns:

  • (::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.



44
45
46
47
# File 'proto_docs/google/monitoring/v3/alert_service.rb', line 44

class CreateAlertPolicyRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end