google_api_fitness v0.4.0 API Reference
Modules
API calls for all endpoints tagged Users
.
Handle Tesla connections for GoogleApi.Fitness.V1.
Helper functions for deserializing responses into models.
Attributes
- activity (integer()): Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT Defaults to:
null
. - dataset ([Dataset]): There will be one dataset per AggregateBy in the request. Defaults to:
null
. - endTimeMillis (String.t): The end time for the aggregated data, in milliseconds since epoch, inclusive. Defaults to:
null
. - session (Session): Available for Bucket.Type.SESSION Defaults to:
null
. - startTimeMillis (String.t): The start time for the aggregated data, in milliseconds since epoch, inclusive. Defaults to:
null
. type (String.t): The type of a bucket signifies how the data aggregation is performed in the bucket. Defaults to:
null
.
The specification of which data to aggregate.
Next id: 10
Attributes
- detailsUrl (String.t): An optional URI that can be used to link back to the application. Defaults to:
null
. - name (String.t): 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. Defaults to:
null
. - packageName (String.t): 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. Defaults to:
null
. - version (String.t): Version of the application. You should update this field whenever the application changes in a way that affects the computation of the data. Defaults to:
null
.
Attributes
- activityDataSourceId (String.t): The default activity stream will be used if a specific activityDataSourceId is not specified. Defaults to:
null
. - minDurationMillis (String.t): Specifies that only activity segments of duration longer than minDurationMillis are considered and used as a container for aggregated data. Defaults to:
null
.
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. A data point can represent an instantaneous measurement, reading or input observation, as well as averages or aggregates over a time interval. Check the data type documentation to determine which is the case for a particular data type. Data points always contain one value for each field of the 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. The data source contains enough information to uniquely identify its data, including the hardware device and the application that collected and/or transformed the data. It also holds useful metadata, such as the hardware and application versions, and the device type. Each data source produces a unique stream of data, with a unique identifier. Not all changes to data source affect the stream identifier, so that data collected by updated versions of the same application/device can still be considered to belong to the same data stream.
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.). This message is only instantiated in code and not used for wire comms or stored in any way.
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. The main purpose of the device information contained in this class is to identify the hardware of a particular data source. This can be useful in different ways, including: - Distinguishing two similar sensors on different devices (the step counter on two nexus 5 phones, for instance) - Display the source of data to the user (by using the device make / model) - Treat data differently depending on sensor type (accelerometers on a watch may give different patterns than those on a phone) - Build different analysis models for each device/version.
Attributes
- dataSourceId (String.t): The data stream ID of the data source with data point changes. Defaults to:
null
. - deletedDataPoint ([DataPoint]): Deleted data points for the user. Note, for modifications this should be parsed before handling insertions. Defaults to:
null
. - insertedDataPoint ([DataPoint]): Inserted data points for the user. Defaults to:
null
. - nextPageToken (String.t): 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. Defaults to:
null
.
Attributes
- deletedSession ([Session]): 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. Defaults to:
null
. - hasMoreData (boolean()): Flag to indicate server has more data to transfer Defaults to:
null
. - nextPageToken (String.t): 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. Defaults to:
null
. - session ([Session]): Sessions with an end time that is between startTime and endTime of the request. Defaults to:
null
.
Holder object for the value of an entry in a map field of a data point. A map value supports a subset of the formats that the regular Value supports.
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. A field value has a particular format and is only ever set to one of an integer or a floating point value. LINT.IfChange
Helper functions for building Tesla requests.