Class: Google::Apis::DiscoveryengineV1::GoogleMonitoringV3TimeInterval

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMonitoringV3TimeInterval

Returns a new instance of GoogleMonitoringV3TimeInterval.



19484
19485
19486
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 19484

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

Instance Attribute Details

#end_timeString

Required. The end of the time interval. Corresponds to the JSON property endTime

Returns:

  • (String)


19476
19477
19478
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 19476

def end_time
  @end_time
end

#start_timeString

Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. Corresponds to the JSON property startTime

Returns:

  • (String)


19482
19483
19484
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 19482

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19489
19490
19491
19492
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 19489

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