class Google::Apis::FitnessV1::AggregateBucket

Attributes

activity[RW]

Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT Corresponds to the JSON property `activity` @return [Fixnum]

dataset[RW]

There will be one dataset per AggregateBy in the request. Corresponds to the JSON property `dataset` @return [Array<Google::Apis::FitnessV1::Dataset>]

end_time_millis[RW]

The end time for the aggregated data, in milliseconds since epoch, inclusive. Corresponds to the JSON property `endTimeMillis` @return [String]

session[RW]

Sessions contain metadata, such as a user-friendly name and time interval information. Corresponds to the JSON property `session` @return [Google::Apis::FitnessV1::Session]

start_time_millis[RW]

The start time for the aggregated data, in milliseconds since epoch, inclusive. Corresponds to the JSON property `startTimeMillis` @return [String]

type[RW]

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

new(**args) click to toggle source
# File generated/google/apis/fitness_v1/classes.rb, line 61
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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