google_api_fitness v0.9.0 API Reference
Modules
API calls for all endpoints tagged Users
.
Handle Tesla connections for GoogleApi.Fitness.V1.
Attributes
activity
(type:integer()
, default:nil
) - Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENTdataset
(type:list(GoogleApi.Fitness.V1.Model.Dataset.t)
, default:nil
) - There will be one dataset per AggregateBy in the request.endTimeMillis
(type:String.t
, default:nil
) - The end time for the aggregated data, in milliseconds since epoch, inclusive.session
(type:GoogleApi.Fitness.V1.Model.Session.t
, default:nil
) - Available for Bucket.Type.SESSIONstartTimeMillis
(type:String.t
, default:nil
) - The start time for the aggregated data, in milliseconds since epoch, inclusive.type
(type:String.t
, default:nil
) - The type of a bucket signifies how the data aggregation is performed in the bucket.
The specification of which data to aggregate.
Next id: 10
Attributes
detailsUrl
(type:String.t
, default:nil
) - An optional URI that can be used to link back to the application.name
(type:String.t
, default:nil
) - The name of this application. This is required for REST clients, but we do not enforce uniqueness of this name. It is provided as a matter of convenience for other developers who would like to identify which REST created an Application or Data Source.packageName
(type:String.t
, default:nil
) - Package name for this application. This is used as a unique identifier when created by Android applications, but cannot be specified by REST clients. REST clients will have their developer project number reflected into the Data Source data stream IDs, instead of the packageName.version
(type:String.t
, default:nil
) - Version of the application. You should update this field whenever the application changes in a way that affects the computation of the data.
Attributes
activityDataSourceId
(type:String.t
, default:nil
) - The default activity stream will be used if a specific activityDataSourceId is not specified.minDurationMillis
(type:String.t
, default:nil
) - Specifies that only activity segments of duration longer than minDurationMillis are considered and used as a container for aggregated data.
Attributes
durationMillis
(type:String.t
, default:nil
) - Specifies that result buckets aggregate data by exactly durationMillis time frames. Time frames that contain no data will be included in the response with an empty dataset.period
(type:GoogleApi.Fitness.V1.Model.BucketByTimePeriod.t
, default:nil
) -
Represents a single data point, generated by a particular data source. A data point holds a value for each field, an end timestamp and an optional start time. The exact semantics of each of these attributes are specified in the documentation for the particular data type.
Definition of a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point inserted into or read from this service has an associated data source.
Attributes
field
(type:list(GoogleApi.Fitness.V1.Model.DataTypeField.t)
, default:nil
) - A field represents one dimension of a data type.name
(type:String.t
, default:nil
) - Each data type has a unique, namespaced, name. All data types in the com.google namespace are shared as part of the platform.
In case of multi-dimensional data (such as an accelerometer with x, y, and z axes) each field represents one dimension. Each data type field has a unique name which identifies it. The field also defines the format of the data (int, float, etc.).
A dataset represents a projection container for data points. They do not carry any info of their own. Datasets represent a set of data points from a particular data source. A data point can be found in more than one dataset.
Representation of an integrated device (such as a phone or a wearable) that can hold sensors. Each sensor is exposed as a data source.
Attributes
dataSourceId
(type:String.t
, default:nil
) - The data stream ID of the data source with data point changes.deletedDataPoint
(type:list(GoogleApi.Fitness.V1.Model.DataPoint.t)
, default:nil
) - Deleted data points for the user. Note, for modifications this should be parsed before handling insertions.insertedDataPoint
(type:list(GoogleApi.Fitness.V1.Model.DataPoint.t)
, default:nil
) - Inserted data points for the user.nextPageToken
(type:String.t
, default:nil
) - The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
Attributes
deletedSession
(type:list(GoogleApi.Fitness.V1.Model.Session.t)
, default:nil
) - If includeDeleted is set to true in the request, this list will contain sessions deleted with original end times that are within the startTime and endTime frame.hasMoreData
(type:boolean()
, default:nil
) - Flag to indicate server has more data to transfernextPageToken
(type:String.t
, default:nil
) - The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.session
(type:list(GoogleApi.Fitness.V1.Model.Session.t)
, default:nil
) - Sessions with an end time that is between startTime and endTime of the request.
Holder object for the value of an entry in a map field of a data point.
Sessions contain metadata, such as a user-friendly name and time interval information.
Holder object for the value of a single field in a data point.