Module: Google::Cloud::Monitoring::V3::AlertPolicy
- Defined in:
- lib/google/cloud/monitoring/v3.rb
Overview
rubocop:enable LineLength
Class Method Summary collapse
-
.new(credentials: nil, scopes: nil, client_config: nil, timeout: nil, lib_name: nil, lib_version: nil) ⇒ Object
The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Stackdriver Monitoring.
Class Method Details
.new(credentials: nil, scopes: nil, client_config: nil, timeout: nil, lib_name: nil, lib_version: nil) ⇒ Object
The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify people or services about this state. In addition to using this API, alert policies can also be managed through Stackdriver Monitoring, which can be reached by clicking the "Monitoring" tab in Cloud Console.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/google/cloud/monitoring/v3.rb', line 114 def self.new \ credentials: nil, scopes: nil, client_config: nil, timeout: nil, lib_name: nil, lib_version: nil kwargs = { credentials: credentials, scopes: scopes, client_config: client_config, timeout: timeout, lib_name: lib_name, lib_version: lib_version }.select { |_, v| v != nil } Google::Cloud::Monitoring::V3::AlertPolicyServiceClient.new(**kwargs) end |