Class: Google::Apis::MonitoringV1::IncidentList
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::IncidentList
- 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 widget that displays a list of incidents
Instance Attribute Summary collapse
-
#monitored_resources ⇒ Array<Google::Apis::MonitoringV1::MonitoredResource>
Optional.
-
#policy_names ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IncidentList
constructor
A new instance of IncidentList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IncidentList
Returns a new instance of IncidentList.
1136 1137 1138 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#monitored_resources ⇒ Array<Google::Apis::MonitoringV1::MonitoredResource>
Optional. The monitored resource for which incidents are listed. The resource
doesn't need to be fully specified. That is, you can specify the resource type
but not the values of the resource labels. The resource type and labels are
used for filtering.
Corresponds to the JSON property monitoredResources
1127 1128 1129 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1127 def monitored_resources @monitored_resources end |
#policy_names ⇒ Array<String>
Optional. A list of alert policy names to filter the incident list by. Don't
include the project ID prefix in the policy name. For example, use
alertPolicies/utilization.
Corresponds to the JSON property policyNames
1134 1135 1136 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1134 def policy_names @policy_names end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1141 1142 1143 1144 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1141 def update!(**args) @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources) @policy_names = args[:policy_names] if args.key?(:policy_names) end |