Class: Google::Apis::SpectrumV1explorer::EventTime

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

Overview

The start and stop times of an event. This is used to indicate the time period for which a spectrum profile is valid. Both times are expressed using the format, YYYY-MM-DDThh:mm:ssZ, as defined in RFC3339. The times must be expressed using UTC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EventTime

Returns a new instance of EventTime



331
332
333
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 331

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

Instance Attribute Details

#start_timeString

The inclusive start of the event. It will be present. Corresponds to the JSON property startTime

Returns:

  • (String)


324
325
326
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 324

def start_time
  @start_time
end

#stop_timeString

The exclusive end of the event. It will be present. Corresponds to the JSON property stopTime

Returns:

  • (String)


329
330
331
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 329

def stop_time
  @stop_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



336
337
338
339
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 336

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