Class: Google::Cloud::AutoML::V1beta1::TimestampStats

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_stats.rb

Overview

The data statistics of a series of TIMESTAMP values.

Defined Under Namespace

Classes: GranularStats

Instance Attribute Summary collapse

Instance Attribute Details

#granular_statsHash{String => Google::Cloud::AutoML::V1beta1::TimestampStats::GranularStats}

Returns 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).

Returns:

  • (Hash{String => Google::Cloud::AutoML::V1beta1::TimestampStats::GranularStats})

    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).



110
111
112
113
114
115
116
117
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_stats.rb', line 110

class TimestampStats
  # Stats split by a defined in context granularity.
  # @!attribute [rw] buckets
  #   @return [Hash{Integer => Integer}]
  #     A map from granularity key to example count for that key.
  #     E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
  class GranularStats; end
end