Class: Google::Apis::LanguageV1beta2::XpsTimestampStatsGranularStats
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsTimestampStatsGranularStats
- 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
Stats split by a defined in context granularity.
Instance Attribute Summary collapse
-
#buckets ⇒ Hash<String,Fixnum>
A map from granularity key to example count for that key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsTimestampStatsGranularStats
constructor
A new instance of XpsTimestampStatsGranularStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsTimestampStatsGranularStats
Returns a new instance of XpsTimestampStatsGranularStats.
4618 4619 4620 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4618 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buckets ⇒ Hash<String,Fixnum>
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).
Corresponds to the JSON property buckets
4616 4617 4618 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4616 def buckets @buckets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4623 4624 4625 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4623 def update!(**args) @buckets = args[:buckets] if args.key?(:buckets) end |