Class: Google::Apis::MonitoringV3::RowCountTest
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::RowCountTest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
A test that checks if the number of rows in the result set violates some threshold.
Instance Attribute Summary collapse
-
#comparison ⇒ String
Required.
-
#threshold ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RowCountTest
constructor
A new instance of RowCountTest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RowCountTest
Returns a new instance of RowCountTest.
4234 4235 4236 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4234 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comparison ⇒ String
Required. The comparison to apply between the number of rows returned by the
query and the threshold.
Corresponds to the JSON property comparison
4227 4228 4229 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4227 def comparison @comparison end |
#threshold ⇒ Fixnum
Required. The value against which to compare the row count.
Corresponds to the JSON property threshold
4232 4233 4234 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4232 def threshold @threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4239 4240 4241 4242 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4239 def update!(**args) @comparison = args[:comparison] if args.key?(:comparison) @threshold = args[:threshold] if args.key?(:threshold) end |