Class: Google::Apis::SpannerV1::ScanData

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

Overview

ScanData contains Cloud Key Visualizer scan data used by the caller to construct a visualization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScanData

Returns a new instance of ScanData.



3718
3719
3720
# File 'lib/google/apis/spanner_v1/classes.rb', line 3718

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

Instance Attribute Details

#dataGoogle::Apis::SpannerV1::VisualizationData

Cloud Key Visualizer scan data. The range of time this information covers is captured via the above time range fields. Note, this field is not available to the ListScans method. Corresponds to the JSON property data



3705
3706
3707
# File 'lib/google/apis/spanner_v1/classes.rb', line 3705

def data
  @data
end

#end_timeString

The upper bound for when the contained data is defined. Corresponds to the JSON property endTime

Returns:

  • (String)


3710
3711
3712
# File 'lib/google/apis/spanner_v1/classes.rb', line 3710

def end_time
  @end_time
end

#start_timeString

A range of time (inclusive) for when the contained data is defined. The lower bound for when the contained data is defined. Corresponds to the JSON property startTime

Returns:

  • (String)


3716
3717
3718
# File 'lib/google/apis/spanner_v1/classes.rb', line 3716

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3723
3724
3725
3726
3727
# File 'lib/google/apis/spanner_v1/classes.rb', line 3723

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