Class: Google::Apis::LanguageV2::XpsTimestampStats
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsTimestampStats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
The data statistics of a series of TIMESTAMP values.
Instance Attribute Summary collapse
-
#common_stats ⇒ Google::Apis::LanguageV2::XpsCommonStats
Common statistics for a column with a specified data type.
-
#granular_stats ⇒ Hash<String,Google::Apis::LanguageV2::XpsTimestampStatsGranularStats>
The string key is the pre-defined granularity.
-
#median_timestamp_nanos ⇒ Fixnum
Corresponds to the JSON property
medianTimestampNanos
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsTimestampStats
constructor
A new instance of XpsTimestampStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsTimestampStats
Returns a new instance of XpsTimestampStats.
4295 4296 4297 |
# File 'lib/google/apis/language_v2/classes.rb', line 4295 def initialize(**args) update!(**args) end |
Instance Attribute Details
#common_stats ⇒ Google::Apis::LanguageV2::XpsCommonStats
Common statistics for a column with a specified data type.
Corresponds to the JSON property commonStats
4280 4281 4282 |
# File 'lib/google/apis/language_v2/classes.rb', line 4280 def common_stats @common_stats end |
#granular_stats ⇒ Hash<String,Google::Apis::LanguageV2::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
4288 4289 4290 |
# File 'lib/google/apis/language_v2/classes.rb', line 4288 def granular_stats @granular_stats end |
#median_timestamp_nanos ⇒ Fixnum
Corresponds to the JSON property medianTimestampNanos
4293 4294 4295 |
# File 'lib/google/apis/language_v2/classes.rb', line 4293 def @median_timestamp_nanos end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4300 4301 4302 4303 4304 |
# File 'lib/google/apis/language_v2/classes.rb', line 4300 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 |