API Reference google_api_fitness v0.25.1

Modules

API client metadata for GoogleApi.Fitness.V1.

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_SEGMENT
  • dataset (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.SESSION
  • startTimeMillis (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.

Attributes

  • bucket (type: list(GoogleApi.Fitness.V1.Model.AggregateBucket.t), default: nil) - A list of buckets containing the aggregated data.

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

  • minDurationMillis (type: String.t, default: nil) - Specifies that only sessions 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) -

Attributes

  • timeZoneId (type: String.t, default: nil) - org.joda.timezone.DateTimeZone
  • type (type: String.t, default: nil) -
  • value (type: integer(), 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. 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.

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.). 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 (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

  • dataSource (type: list(GoogleApi.Fitness.V1.Model.DataSource.t), default: nil) - A previously created data source.

Attributes

  • deletedSession (type: list(GoogleApi.Fitness.V1.Model.Session.t), default: nil) - If includeDeleted is set to true in the request, and startTime and endTime are omitted, this will include sessions which were deleted since the last sync.
  • hasMoreData (type: boolean(), default: nil) - Flag to indicate server has more data to transfer. DO NOT USE THIS FIELD. It is never populated in responses from the server.
  • nextPageToken (type: String.t, default: nil) - The sync token which is used to sync further changes. This will only be provided if both startTime and endTime are omitted from the request.
  • 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. 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.

Attributes

  • key (type: String.t, default: nil) -
  • value (type: GoogleApi.Fitness.V1.Model.MapValue.t, default: nil) -