Class: Google::Apis::LanguageV1::XpsTimestampStatsGranularStats
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::XpsTimestampStatsGranularStats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/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.
4603 4604 4605 |
# File 'lib/google/apis/language_v1/classes.rb', line 4603 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
4601 4602 4603 |
# File 'lib/google/apis/language_v1/classes.rb', line 4601 def buckets @buckets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4608 4609 4610 |
# File 'lib/google/apis/language_v1/classes.rb', line 4608 def update!(**args) @buckets = args[:buckets] if args.key?(:buckets) end |