Class: Google::Apis::MonitoringV3::Hourly

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Hourly

Returns a new instance of Hourly.



1922
1923
1924
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1922

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#minute_offsetFixnum

Optional. The number of minutes after the hour (in UTC) to run the query. Must be greater than or equal to 0 minutes and less than or equal to 59 minutes. If left unspecified, then an arbitrary offset is used. Corresponds to the JSON property minuteOffset

Returns:

  • (Fixnum)


1914
1915
1916
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1914

def minute_offset
  @minute_offset
end

#periodicityFixnum

Required. The number of hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours. Corresponds to the JSON property periodicity

Returns:

  • (Fixnum)


1920
1921
1922
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1920

def periodicity
  @periodicity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1927
1928
1929
1930
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1927

def update!(**args)
  @minute_offset = args[:minute_offset] if args.key?(:minute_offset)
  @periodicity = args[:periodicity] if args.key?(:periodicity)
end