class Google::Apis::FitnessV1::AggregateBy
The specification of which data to aggregate.
Attributes
A data source ID to aggregate. Only data from the specified data source ID will be included in the aggregation. If specified, this data source must exist; the OAuth scopes in the supplied credentials must grant read access to this data type. The dataset in the response will have the same data source ID. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both. Corresponds to the JSON property `dataSourceId` @return [String]
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.android.gms:aggregated. If the user has no data for this data type, an empty data set will be returned. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both. Corresponds to the JSON property `dataTypeName` @return [String]
Public Class Methods
# File lib/google/apis/fitness_v1/classes.rb, line 100 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/fitness_v1/classes.rb, line 105 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