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

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/automl/v1beta1/data_stats.rb

Overview

The data statistics of a series of TIMESTAMP values.

Defined Under Namespace

Classes: GranularStats, GranularStatsEntry

Instance Attribute Summary collapse

Instance Attribute Details

#granular_stats::Google::Protobuf::Map{::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:

  • (::Google::Protobuf::Map{::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).



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'proto_docs/google/cloud/automl/v1beta1/data_stats.rb', line 129

class TimestampStats
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Stats split by a defined in context granularity.
  # @!attribute [rw] buckets
  #   @return [::Google::Protobuf::Map{::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
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::Integer]
    # @!attribute [rw] value
    #   @return [::Integer]
    class BucketsEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::AutoML::V1beta1::TimestampStats::GranularStats]
  class GranularStatsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end