class Google::Apis::FitnessV1::AggregateBucket
Attributes
Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT Corresponds to the JSON property `activity` @return [Fixnum]
There will be one dataset per AggregateBy in the request. Corresponds to the JSON property `dataset` @return [Array<Google::Apis::FitnessV1::Dataset>]
The end time for the aggregated data, in milliseconds since epoch, inclusive. Corresponds to the JSON property `endTimeMillis` @return [String]
Sessions contain metadata, such as a user-friendly name and time interval information. Corresponds to the JSON property `session` @return [Google::Apis::FitnessV1::Session]
The start time for the aggregated data, in milliseconds since epoch, inclusive. Corresponds to the JSON property `startTimeMillis` @return [String]
The type of a bucket signifies how the data aggregation is performed in the bucket. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File generated/google/apis/fitness_v1/classes.rb, line 61 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/fitness_v1/classes.rb, line 66 def update!(**args) @activity = args[:activity] if args.key?(:activity) @dataset = args[:dataset] if args.key?(:dataset) @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) @session = args[:session] if args.key?(:session) @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) @type = args[:type] if args.key?(:type) end