Class: Google::Apis::MonitoringV3::Hourly
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::Hourly
- 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
Used to schedule the query to run every so many hours.
Instance Attribute Summary collapse
-
#minute_offset ⇒ Fixnum
Optional.
-
#periodicity ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Hourly
constructor
A new instance of Hourly.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Hourly
Returns a new instance of Hourly.
1917 1918 1919 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#minute_offset ⇒ Fixnum
Optional. LINT.IfChange The number of minutes after the hour (in UTC) to run
the query. Must be between 0 and 59 inclusive. If left unspecified, then an
arbitrary offset is used. LINT.ThenChange(//depot/google3/cloud/monitoring/api/
alerts/policy_validation.cc)
Corresponds to the JSON property minuteOffset
1908 1909 1910 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1908 def minute_offset @minute_offset end |
#periodicity ⇒ Fixnum
Required. LINT.IfChange The number of hours between runs. Must be greater than
or equal to 1 hour and less than or equal to 48 hours. LINT.ThenChange(//depot/
google3/cloud/monitoring/api/alerts/policy_validation.cc)
Corresponds to the JSON property periodicity
1915 1916 1917 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1915 def periodicity @periodicity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1922 1923 1924 1925 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1922 def update!(**args) @minute_offset = args[:minute_offset] if args.key?(:minute_offset) @periodicity = args[:periodicity] if args.key?(:periodicity) end |