Class: Aws::CloudWatchOmni::Types::Rule
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchOmni::Types::Rule
- Defined in:
- gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb
Overview
Rule is a union - when making an API calls you must set exactly one of the members.
Rule is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Rule corresponding to the set member.
Top-level rule definition. Exactly one member is set.
Rule members are optional at the Smithy level to support PATCH semantics on UpdateAlert. Both rule kinds apply only the sub-blocks supplied; a present block replaces that block whole. CreateAlert requires a complete rule through service-side validation.
Defined Under Namespace
Classes: SloRule, TelemetryRule, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#slo_rule ⇒ Types::SloRule
An alert on the burn rate or the error budget of a service level objective (SLO) in the same space.
-
#telemetry_rule ⇒ Types::TelemetryRule
The telemetry-based rule definition.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#slo_rule ⇒ Types::SloRule
An alert on the burn rate or the error budget of a service level objective (SLO) in the same space. On UpdateAlert, omitted members stay unchanged and a supplied block replaces that block whole. An alert cannot switch between telemetryRule and sloRule.
8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 8161 class Rule < Struct.new( :telemetry_rule, :slo_rule, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class TelemetryRule < Rule; end class SloRule < Rule; end class Unknown < Rule; end end |
#telemetry_rule ⇒ Types::TelemetryRule
The telemetry-based rule definition.
8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 8161 class Rule < Struct.new( :telemetry_rule, :slo_rule, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class TelemetryRule < Rule; end class SloRule < Rule; end class Unknown < Rule; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
8161 8162 8163 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 8161 def unknown @unknown end |