Class: Google::Apis::MonitoringV1::AlertChart
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::AlertChart
- 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
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AlertChart
constructor
A new instance of AlertChart.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
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
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 |