class Google::Apis::FitnessV1::AggregateBy

The specification of which data to aggregate.

Attributes

data_source_id[RW]

A data source ID to aggregate. Mutually exclusive of dataTypeName. Only data from the specified data source ID will be included in the aggregation. The dataset in the response will have the same data source ID. Corresponds to the JSON property `dataSourceId` @return [String]

data_type_name[RW]

The data type to aggregate. All data sources providing this data type will contribute data to the aggregation. The response will contain a single dataset for this data type name. The dataset will have a data source ID of derived:com. google.:com.google.android.gms:aggregated Corresponds to the JSON property `dataTypeName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fitness_v1/classes.rb, line 95
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 100
def update!(**args)
  @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
  @data_type_name = args[:data_type_name] if args.key?(:data_type_name)
end