Class: Google::Apis::MonitoringV3::Minutes

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 minutes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Minutes

Returns a new instance of Minutes.



3243
3244
3245
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3243

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

Instance Attribute Details

#periodicityFixnum

Required. LINT.IfChange Number of minutes between runs. The interval must be between 5 minutes and 1440 minutes. LINT.ThenChange(//depot/google3/cloud/ monitoring/api/alerts/policy_validation.cc) Corresponds to the JSON property periodicity

Returns:

  • (Fixnum)


3241
3242
3243
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3241

def periodicity
  @periodicity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3248
3249
3250
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3248

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