Class: Google::Apis::MonitoringV1::AlertChart

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/google/apis/monitoring_v1/representations.rb

Overview

A chart that displays alert policy data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlertChart

Returns a new instance of AlertChart.



162
163
164
# File 'lib/google/apis/monitoring_v1/classes.rb', line 162

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Required. The resource name of the alert policy. The format is: projects/[ PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] Corresponds to the JSON property name

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/monitoring_v1/classes.rb', line 160

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



167
168
169
# File 'lib/google/apis/monitoring_v1/classes.rb', line 167

def update!(**args)
  @name = args[:name] if args.key?(:name)
end