Class: Google::Apis::LanguageV1beta2::XpsTimestampStats

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

Overview

The data statistics of a series of TIMESTAMP values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsTimestampStats

Returns a new instance of XpsTimestampStats.



4601
4602
4603
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4601

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

Instance Attribute Details

#common_statsGoogle::Apis::LanguageV1beta2::XpsCommonStats

Common statistics for a column with a specified data type. Corresponds to the JSON property commonStats



4586
4587
4588
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4586

def common_stats
  @common_stats
end

#granular_statsHash<String,Google::Apis::LanguageV1beta2::XpsTimestampStatsGranularStats>

The string key is the pre-defined granularity. Currently supported: hour_of_day, day_of_week, month_of_year. Granularities finer that the granularity of timestamp data are not populated (e.g. if timestamps are at day granularity, then hour_of_day is not populated). Corresponds to the JSON property granularStats



4594
4595
4596
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4594

def granular_stats
  @granular_stats
end

#median_timestamp_nanosFixnum

Corresponds to the JSON property medianTimestampNanos

Returns:

  • (Fixnum)


4599
4600
4601
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4599

def median_timestamp_nanos
  @median_timestamp_nanos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4606
4607
4608
4609
4610
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4606

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