gogol-fitness-0.4.0: Google Fitness SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Fitness

Contents

Description

Stores and accesses user data in the fitness store from apps on any platform.

See: Fitness Reference

Synopsis

Service Configuration

fitnessService :: ServiceConfig Source #

Default request referring to version v1 of the Fitness. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

fitnessBodyTemperatureReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.body_temperature.read"] Source #

View body temperature data in Google Fit

fitnessBodyReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.body.read"] Source #

View body sensor information in Google Fit

fitnessNutritionReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.nutrition.read"] Source #

View nutrition information in Google Fit

fitnessReProductiveHealthReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.reproductive_health.read"] Source #

View reproductive health data in Google Fit

fitnessActivityReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.activity.read"] Source #

View your activity information in Google Fit

fitnessReProductiveHealthWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.reproductive_health.write"] Source #

View and store reproductive health data in Google Fit

fitnessActivityWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.activity.write"] Source #

View and store your activity information in Google Fit

fitnessBloodPressureWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.blood_pressure.write"] Source #

View and store blood pressure data in Google Fit

fitnessBodyTemperatureWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.body_temperature.write"] Source #

View and store body temperature data in Google Fit

fitnessOxygenSaturationReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"] Source #

View oxygen saturation data in Google Fit

fitnessBloodGlucoseWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.blood_glucose.write"] Source #

View and store blood glucose data in Google Fit

fitnessBloodPressureReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.blood_pressure.read"] Source #

View blood pressure data in Google Fit

fitnessLocationReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.location.read"] Source #

View your stored location data in Google Fit

fitnessLocationWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.location.write"] Source #

View and store your location data in Google Fit

fitnessNutritionWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.nutrition.write"] Source #

View and store nutrition information in Google Fit

fitnessBodyWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.body.write"] Source #

View and store body sensor data in Google Fit

fitnessBloodGlucoseReadScope :: Proxy '["https://www.googleapis.com/auth/fitness.blood_glucose.read"] Source #

View blood glucose data in Google Fit

fitnessOxygenSaturationWriteScope :: Proxy '["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"] Source #

View and store oxygen saturation data in Google Fit

API Declaration

Resources

fitness.users.dataSources.create

fitness.users.dataSources.dataPointChanges.list

fitness.users.dataSources.datasets.delete

fitness.users.dataSources.datasets.get

fitness.users.dataSources.datasets.patch

fitness.users.dataSources.delete

fitness.users.dataSources.get

fitness.users.dataSources.list

fitness.users.dataSources.patch

fitness.users.dataSources.update

fitness.users.dataset.aggregate

fitness.users.sessions.delete

fitness.users.sessions.list

fitness.users.sessions.update

Types

AggregateBucketType

data AggregateBucketType Source #

The type of a bucket signifies how the data aggregation is performed in the bucket.

Constructors

ABTActivitySegment
activitySegment
ABTActivityType
activityType
ABTSession
session
ABTTime
time
ABTUnknown
unknown
Instances
Enum AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Eq AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Data AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AggregateBucketType -> c AggregateBucketType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AggregateBucketType #

toConstr :: AggregateBucketType -> Constr #

dataTypeOf :: AggregateBucketType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AggregateBucketType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AggregateBucketType) #

gmapT :: (forall b. Data b => b -> b) -> AggregateBucketType -> AggregateBucketType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AggregateBucketType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AggregateBucketType -> r #

gmapQ :: (forall d. Data d => d -> u) -> AggregateBucketType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AggregateBucketType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AggregateBucketType -> m AggregateBucketType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateBucketType -> m AggregateBucketType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateBucketType -> m AggregateBucketType #

Ord AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Read AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Show AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Generic AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Associated Types

type Rep AggregateBucketType :: Type -> Type #

Hashable AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToJSON AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromJSON AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromHttpApiData AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToHttpApiData AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep AggregateBucketType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep AggregateBucketType = D1 (MetaData "AggregateBucketType" "Network.Google.Fitness.Types.Sum" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) ((C1 (MetaCons "ABTActivitySegment" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ABTActivityType" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "ABTSession" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "ABTTime" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ABTUnknown" PrefixI False) (U1 :: Type -> Type))))

DataSet

data DataSet Source #

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.

See: dataSet smart constructor.

Instances
Eq DataSet Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

(==) :: DataSet -> DataSet -> Bool #

(/=) :: DataSet -> DataSet -> Bool #

Data DataSet Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataSet -> c DataSet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataSet #

toConstr :: DataSet -> Constr #

dataTypeOf :: DataSet -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataSet) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataSet) #

gmapT :: (forall b. Data b => b -> b) -> DataSet -> DataSet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataSet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataSet -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataSet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataSet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataSet -> m DataSet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSet -> m DataSet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSet -> m DataSet #

Show DataSet Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic DataSet Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep DataSet :: Type -> Type #

Methods

from :: DataSet -> Rep DataSet x #

to :: Rep DataSet x -> DataSet #

ToJSON DataSet Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON DataSet Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataSet Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataSet = D1 (MetaData "DataSet" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "DataSet'" PrefixI True) ((S1 (MetaSel (Just "_dsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_dsPoint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataPoint])) :*: (S1 (MetaSel (Just "_dsMinStartTimeNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_dsMaxEndTimeNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))

dataSet :: DataSet Source #

Creates a value of DataSet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dsNextPageToken :: Lens' DataSet (Maybe Text) Source #

This token will be set when a dataset is received in response to a GET request and the dataset is too large to be included in a single response. Provide this value in a subsequent GET request to return the next page of data points within this dataset.

dsDataSourceId :: Lens' DataSet (Maybe Text) Source #

The data stream ID of the data source that created the points in this dataset.

dsPoint :: Lens' DataSet [DataPoint] Source #

A partial list of data points contained in the dataset, ordered by largest endTimeNanos first. This list is considered complete when retrieving a small dataset and partial when patching a dataset or retrieving a dataset that is too large to include in a single response.

dsMinStartTimeNs :: Lens' DataSet (Maybe Int64) Source #

The smallest start time of all data points in this possibly partial representation of the dataset. Time is in nanoseconds from epoch. This should also match the first part of the dataset identifier.

dsMaxEndTimeNs :: Lens' DataSet (Maybe Int64) Source #

The largest end time of all data points in this possibly partial representation of the dataset. Time is in nanoseconds from epoch. This should also match the first part of the dataset identifier.

Application

data Application Source #

See: application smart constructor.

Instances
Eq Application Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data Application Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Application -> c Application #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Application #

toConstr :: Application -> Constr #

dataTypeOf :: Application -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Application) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Application) #

gmapT :: (forall b. Data b => b -> b) -> Application -> Application #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Application -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Application -> r #

gmapQ :: (forall d. Data d => d -> u) -> Application -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Application -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Application -> m Application #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Application -> m Application #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Application -> m Application #

Show Application Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic Application Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep Application :: Type -> Type #

ToJSON Application Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON Application Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep Application Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep Application = D1 (MetaData "Application" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "Application'" PrefixI True) ((S1 (MetaSel (Just "_aPackageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_aVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aDetailsURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

application :: Application Source #

Creates a value of Application with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

aPackageName :: Lens' Application (Maybe Text) Source #

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.

aName :: Lens' Application (Maybe Text) Source #

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.

aVersion :: Lens' Application (Maybe Text) Source #

Version of the application. You should update this field whenever the application changes in a way that affects the computation of the data.

aDetailsURL :: Lens' Application (Maybe Text) Source #

An optional URI that can be used to link back to the application.

AggregateResponse

data AggregateResponse Source #

Instances
Eq AggregateResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data AggregateResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AggregateResponse -> c AggregateResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AggregateResponse #

toConstr :: AggregateResponse -> Constr #

dataTypeOf :: AggregateResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AggregateResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AggregateResponse) #

gmapT :: (forall b. Data b => b -> b) -> AggregateResponse -> AggregateResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AggregateResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AggregateResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> AggregateResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AggregateResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AggregateResponse -> m AggregateResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateResponse -> m AggregateResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateResponse -> m AggregateResponse #

Show AggregateResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic AggregateResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep AggregateResponse :: Type -> Type #

ToJSON AggregateResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON AggregateResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep AggregateResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep AggregateResponse = D1 (MetaData "AggregateResponse" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" True) (C1 (MetaCons "AggregateResponse'" PrefixI True) (S1 (MetaSel (Just "_arBucket") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [AggregateBucket]))))

aggregateResponse :: AggregateResponse Source #

Creates a value of AggregateResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

arBucket :: Lens' AggregateResponse [AggregateBucket] Source #

A list of buckets containing the aggregated data.

AggregateBy

data AggregateBy Source #

The specification of which data to aggregate.

See: aggregateBy smart constructor.

Instances
Eq AggregateBy Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data AggregateBy Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AggregateBy -> c AggregateBy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AggregateBy #

toConstr :: AggregateBy -> Constr #

dataTypeOf :: AggregateBy -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AggregateBy) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AggregateBy) #

gmapT :: (forall b. Data b => b -> b) -> AggregateBy -> AggregateBy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AggregateBy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AggregateBy -> r #

gmapQ :: (forall d. Data d => d -> u) -> AggregateBy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AggregateBy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AggregateBy -> m AggregateBy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateBy -> m AggregateBy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateBy -> m AggregateBy #

Show AggregateBy Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic AggregateBy Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep AggregateBy :: Type -> Type #

ToJSON AggregateBy Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON AggregateBy Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep AggregateBy Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep AggregateBy = D1 (MetaData "AggregateBy" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "AggregateBy'" PrefixI True) (S1 (MetaSel (Just "_abDataTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_abDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

aggregateBy :: AggregateBy Source #

Creates a value of AggregateBy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

abDataTypeName :: Lens' AggregateBy (Maybe Text) Source #

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

abDataSourceId :: Lens' AggregateBy (Maybe Text) Source #

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.

DataSourceType

data DataSourceType Source #

A constant describing the type of this data source. Indicates whether this data source produces raw or derived data.

Constructors

Derived
derived
Raw
raw
Instances
Enum DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Eq DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Data DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataSourceType -> c DataSourceType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataSourceType #

toConstr :: DataSourceType -> Constr #

dataTypeOf :: DataSourceType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataSourceType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataSourceType) #

gmapT :: (forall b. Data b => b -> b) -> DataSourceType -> DataSourceType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataSourceType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataSourceType -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataSourceType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataSourceType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataSourceType -> m DataSourceType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSourceType -> m DataSourceType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSourceType -> m DataSourceType #

Ord DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Read DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Show DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Generic DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Associated Types

type Rep DataSourceType :: Type -> Type #

Hashable DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToJSON DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromJSON DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromHttpApiData DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToHttpApiData DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DataSourceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DataSourceType = D1 (MetaData "DataSourceType" "Network.Google.Fitness.Types.Sum" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "Derived" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Raw" PrefixI False) (U1 :: Type -> Type))

BucketByTimePeriodType

data BucketByTimePeriodType Source #

Constructors

Day
day
Month
month
Week
week
Instances
Enum BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Eq BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Data BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BucketByTimePeriodType -> c BucketByTimePeriodType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BucketByTimePeriodType #

toConstr :: BucketByTimePeriodType -> Constr #

dataTypeOf :: BucketByTimePeriodType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BucketByTimePeriodType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BucketByTimePeriodType) #

gmapT :: (forall b. Data b => b -> b) -> BucketByTimePeriodType -> BucketByTimePeriodType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BucketByTimePeriodType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BucketByTimePeriodType -> r #

gmapQ :: (forall d. Data d => d -> u) -> BucketByTimePeriodType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BucketByTimePeriodType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BucketByTimePeriodType -> m BucketByTimePeriodType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByTimePeriodType -> m BucketByTimePeriodType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByTimePeriodType -> m BucketByTimePeriodType #

Ord BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Read BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Show BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Generic BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Associated Types

type Rep BucketByTimePeriodType :: Type -> Type #

Hashable BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToJSON BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromJSON BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromHttpApiData BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToHttpApiData BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep BucketByTimePeriodType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep BucketByTimePeriodType = D1 (MetaData "BucketByTimePeriodType" "Network.Google.Fitness.Types.Sum" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "Day" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Month" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Week" PrefixI False) (U1 :: Type -> Type)))

BucketByActivity

data BucketByActivity Source #

Instances
Eq BucketByActivity Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data BucketByActivity Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BucketByActivity -> c BucketByActivity #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BucketByActivity #

toConstr :: BucketByActivity -> Constr #

dataTypeOf :: BucketByActivity -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BucketByActivity) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BucketByActivity) #

gmapT :: (forall b. Data b => b -> b) -> BucketByActivity -> BucketByActivity #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BucketByActivity -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BucketByActivity -> r #

gmapQ :: (forall d. Data d => d -> u) -> BucketByActivity -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BucketByActivity -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BucketByActivity -> m BucketByActivity #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByActivity -> m BucketByActivity #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByActivity -> m BucketByActivity #

Show BucketByActivity Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic BucketByActivity Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep BucketByActivity :: Type -> Type #

ToJSON BucketByActivity Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON BucketByActivity Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketByActivity Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketByActivity = D1 (MetaData "BucketByActivity" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "BucketByActivity'" PrefixI True) (S1 (MetaSel (Just "_bbaMinDurationMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_bbaActivityDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

bucketByActivity :: BucketByActivity Source #

Creates a value of BucketByActivity with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

bbaMinDurationMillis :: Lens' BucketByActivity (Maybe Int64) Source #

Specifies that only activity segments of duration longer than minDurationMillis are considered and used as a container for aggregated data.

bbaActivityDataSourceId :: Lens' BucketByActivity (Maybe Text) Source #

The default activity stream will be used if a specific activityDataSourceId is not specified.

AggregateRequest

data AggregateRequest Source #

Next id: 10

See: aggregateRequest smart constructor.

Instances
Eq AggregateRequest Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data AggregateRequest Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AggregateRequest -> c AggregateRequest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AggregateRequest #

toConstr :: AggregateRequest -> Constr #

dataTypeOf :: AggregateRequest -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AggregateRequest) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AggregateRequest) #

gmapT :: (forall b. Data b => b -> b) -> AggregateRequest -> AggregateRequest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AggregateRequest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AggregateRequest -> r #

gmapQ :: (forall d. Data d => d -> u) -> AggregateRequest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AggregateRequest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AggregateRequest -> m AggregateRequest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateRequest -> m AggregateRequest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateRequest -> m AggregateRequest #

Show AggregateRequest Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic AggregateRequest Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep AggregateRequest :: Type -> Type #

ToJSON AggregateRequest Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON AggregateRequest Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep AggregateRequest Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

aggregateRequest :: AggregateRequest Source #

Creates a value of AggregateRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

arEndTimeMillis :: Lens' AggregateRequest (Maybe Int64) Source #

The end of a window of time. Data that intersects with this time window will be aggregated. The time is in milliseconds since epoch, inclusive.

arFilteredDataQualityStandard :: Lens' AggregateRequest [AggregateRequestFilteredDataQualityStandardItem] Source #

A list of acceptable data quality standards. Only data points which conform to at least one of the specified data quality standards will be returned. If the list is empty, all data points are returned.

arAggregateBy :: Lens' AggregateRequest [AggregateBy] Source #

The specification of data to be aggregated. At least one aggregateBy spec must be provided. All data that is specified will be aggregated using the same bucketing criteria. There will be one dataset in the response for every aggregateBy spec.

arBucketBySession :: Lens' AggregateRequest (Maybe BucketBySession) Source #

Specifies that data be aggregated by user sessions. Data that does not fall within the time range of a session will not be included in the response. Mutually exclusive of other bucketing specifications.

arBucketByActivityType :: Lens' AggregateRequest (Maybe BucketByActivity) Source #

Specifies that data be aggregated by the type of activity being performed when the data was recorded. All data that was recorded during a certain activity type (for the given time range) will be aggregated into the same bucket. Data that was recorded while the user was not active will not be included in the response. Mutually exclusive of other bucketing specifications.

arBucketByTime :: Lens' AggregateRequest (Maybe BucketByTime) Source #

Specifies that data be aggregated by a single time interval. Mutually exclusive of other bucketing specifications.

arStartTimeMillis :: Lens' AggregateRequest (Maybe Int64) Source #

The start of a window of time. Data that intersects with this time window will be aggregated. The time is in milliseconds since epoch, inclusive.

arBucketByActivitySegment :: Lens' AggregateRequest (Maybe BucketByActivity) Source #

Specifies that data be aggregated each activity segment recored for a user. Similar to bucketByActivitySegment, but bucketing is done for each activity segment rather than all segments of the same type. Mutually exclusive of other bucketing specifications.

Device

data Device Source #

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.

See: device smart constructor.

Instances
Eq Device Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

(==) :: Device -> Device -> Bool #

(/=) :: Device -> Device -> Bool #

Data Device Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Device -> c Device #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Device #

toConstr :: Device -> Constr #

dataTypeOf :: Device -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Device) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Device) #

gmapT :: (forall b. Data b => b -> b) -> Device -> Device #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Device -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Device -> r #

gmapQ :: (forall d. Data d => d -> u) -> Device -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Device -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Device -> m Device #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Device -> m Device #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Device -> m Device #

Show Device Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic Device Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep Device :: Type -> Type #

Methods

from :: Device -> Rep Device x #

to :: Rep Device x -> Device #

ToJSON Device Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON Device Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep Device Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

device :: Device Source #

Creates a value of Device with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dManufacturer :: Lens' Device (Maybe Text) Source #

Manufacturer of the product/hardware.

dUid :: Lens' Device (Maybe Text) Source #

The serial number or other unique ID for the hardware. This field is obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the uid field in clear and normal form.

dModel :: Lens' Device (Maybe Text) Source #

End-user visible model name for the device.

dVersion :: Lens' Device (Maybe Text) Source #

Version string for the device hardware/software.

dType :: Lens' Device (Maybe DeviceType) Source #

A constant representing the type of the device.

Value

data Value Source #

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

See: value smart constructor.

Instances
Eq Value Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

Data Value Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Value -> c Value #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Value #

toConstr :: Value -> Constr #

dataTypeOf :: Value -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Value) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Value) #

gmapT :: (forall b. Data b => b -> b) -> Value -> Value #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r #

gmapQ :: (forall d. Data d => d -> u) -> Value -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Value -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Value -> m Value #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value #

Show Value Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Generic Value Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep Value :: Type -> Type #

Methods

from :: Value -> Rep Value x #

to :: Rep Value x -> Value #

ToJSON Value Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON Value Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep Value Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep Value = D1 (MetaData "Value" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "Value'" PrefixI True) ((S1 (MetaSel (Just "_vMapVal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ValueMapValEntry])) :*: S1 (MetaSel (Just "_vFpVal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Double)))) :*: (S1 (MetaSel (Just "_vIntVal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_vStringVal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

value :: Value Source #

Creates a value of Value with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

vMapVal :: Lens' Value [ValueMapValEntry] Source #

Map value. The valid key space and units for the corresponding value of each entry should be documented as part of the data type definition. Keys should be kept small whenever possible. Data streams with large keys and high data frequency may be down sampled.

vFpVal :: Lens' Value (Maybe Double) Source #

Floating point value. When this is set, other values must not be set.

vIntVal :: Lens' Value (Maybe Int32) Source #

Integer value. When this is set, other values must not be set.

vStringVal :: Lens' Value (Maybe Text) Source #

String value. When this is set, other values must not be set. Strings should be kept small whenever possible. Data streams with large string values and high data frequency may be down sampled.

BucketBySession

data BucketBySession Source #

Instances
Eq BucketBySession Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data BucketBySession Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BucketBySession -> c BucketBySession #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BucketBySession #

toConstr :: BucketBySession -> Constr #

dataTypeOf :: BucketBySession -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BucketBySession) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BucketBySession) #

gmapT :: (forall b. Data b => b -> b) -> BucketBySession -> BucketBySession #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BucketBySession -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BucketBySession -> r #

gmapQ :: (forall d. Data d => d -> u) -> BucketBySession -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BucketBySession -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BucketBySession -> m BucketBySession #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketBySession -> m BucketBySession #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketBySession -> m BucketBySession #

Show BucketBySession Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic BucketBySession Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep BucketBySession :: Type -> Type #

ToJSON BucketBySession Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON BucketBySession Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketBySession Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketBySession = D1 (MetaData "BucketBySession" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" True) (C1 (MetaCons "BucketBySession'" PrefixI True) (S1 (MetaSel (Just "_bbsMinDurationMillis") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Textual Int64)))))

bucketBySession :: BucketBySession Source #

Creates a value of BucketBySession with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

bbsMinDurationMillis :: Lens' BucketBySession (Maybe Int64) Source #

Specifies that only sessions of duration longer than minDurationMillis are considered and used as a container for aggregated data.

DataPoint

data DataPoint Source #

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.

See: dataPoint smart constructor.

Instances
Eq DataPoint Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data DataPoint Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataPoint -> c DataPoint #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataPoint #

toConstr :: DataPoint -> Constr #

dataTypeOf :: DataPoint -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataPoint) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataPoint) #

gmapT :: (forall b. Data b => b -> b) -> DataPoint -> DataPoint #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataPoint -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataPoint -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataPoint -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataPoint -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataPoint -> m DataPoint #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataPoint -> m DataPoint #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataPoint -> m DataPoint #

Show DataPoint Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic DataPoint Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep DataPoint :: Type -> Type #

ToJSON DataPoint Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON DataPoint Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataPoint Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataPoint = D1 (MetaData "DataPoint" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "DataPoint'" PrefixI True) (((S1 (MetaSel (Just "_dpOriginDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dpRawTimestampNanos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) :*: (S1 (MetaSel (Just "_dpDataTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dpValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Value])))) :*: ((S1 (MetaSel (Just "_dpComputationTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_dpEndTimeNanos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) :*: (S1 (MetaSel (Just "_dpModifiedTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_dpStartTimeNanos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))

dataPoint :: DataPoint Source #

Creates a value of DataPoint with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dpOriginDataSourceId :: Lens' DataPoint (Maybe Text) Source #

If the data point is contained in a dataset for a derived data source, this field will be populated with the data source stream ID that created the data point originally.

dpRawTimestampNanos :: Lens' DataPoint (Maybe Int64) Source #

The raw timestamp from the original SensorEvent.

dpDataTypeName :: Lens' DataPoint (Maybe Text) Source #

The data type defining the format of the values in this data point.

dpValue :: Lens' DataPoint [Value] Source #

Values of each data type field for the data point. It is expected that each value corresponding to a data type field will occur in the same order that the field is listed with in the data type specified in a data source. Only one of integer and floating point fields will be populated, depending on the format enum value within data source's type field.

dpComputationTimeMillis :: Lens' DataPoint (Maybe Int64) Source #

DO NOT USE THIS FIELD. It is ignored, and not stored.

dpEndTimeNanos :: Lens' DataPoint (Maybe Int64) Source #

The end time of the interval represented by this data point, in nanoseconds since epoch.

dpModifiedTimeMillis :: Lens' DataPoint (Maybe Int64) Source #

Indicates the last time this data point was modified. Useful only in contexts where we are listing the data changes, rather than representing the current state of the data.

dpStartTimeNanos :: Lens' DataPoint (Maybe Int64) Source #

The start time of the interval represented by this data point, in nanoseconds since epoch.

ListSessionsResponse

data ListSessionsResponse Source #

Instances
Eq ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListSessionsResponse -> c ListSessionsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListSessionsResponse #

toConstr :: ListSessionsResponse -> Constr #

dataTypeOf :: ListSessionsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListSessionsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListSessionsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListSessionsResponse -> ListSessionsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListSessionsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListSessionsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListSessionsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListSessionsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListSessionsResponse -> m ListSessionsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSessionsResponse -> m ListSessionsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSessionsResponse -> m ListSessionsResponse #

Show ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep ListSessionsResponse :: Type -> Type #

ToJSON ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ListSessionsResponse = D1 (MetaData "ListSessionsResponse" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "ListSessionsResponse'" PrefixI True) ((S1 (MetaSel (Just "_lsrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lsrDeletedSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Session]))) :*: (S1 (MetaSel (Just "_lsrHasMoreData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_lsrSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Session])))))

listSessionsResponse :: ListSessionsResponse Source #

Creates a value of ListSessionsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

lsrNextPageToken :: Lens' ListSessionsResponse (Maybe Text) Source #

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.

lsrDeletedSession :: Lens' ListSessionsResponse [Session] Source #

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.

lsrHasMoreData :: Lens' ListSessionsResponse (Maybe Bool) Source #

Flag to indicate server has more data to transfer

lsrSession :: Lens' ListSessionsResponse [Session] Source #

Sessions with an end time that is between startTime and endTime of the request.

AggregateBucket

data AggregateBucket Source #

Instances
Eq AggregateBucket Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data AggregateBucket Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AggregateBucket -> c AggregateBucket #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AggregateBucket #

toConstr :: AggregateBucket -> Constr #

dataTypeOf :: AggregateBucket -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AggregateBucket) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AggregateBucket) #

gmapT :: (forall b. Data b => b -> b) -> AggregateBucket -> AggregateBucket #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AggregateBucket -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AggregateBucket -> r #

gmapQ :: (forall d. Data d => d -> u) -> AggregateBucket -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AggregateBucket -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AggregateBucket -> m AggregateBucket #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateBucket -> m AggregateBucket #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateBucket -> m AggregateBucket #

Show AggregateBucket Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic AggregateBucket Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep AggregateBucket :: Type -> Type #

ToJSON AggregateBucket Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON AggregateBucket Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep AggregateBucket Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep AggregateBucket = D1 (MetaData "AggregateBucket" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "AggregateBucket'" PrefixI True) ((S1 (MetaSel (Just "_abEndTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: (S1 (MetaSel (Just "_abDataSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataSet])) :*: S1 (MetaSel (Just "_abActivity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))) :*: (S1 (MetaSel (Just "_abType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AggregateBucketType)) :*: (S1 (MetaSel (Just "_abStartTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_abSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Session))))))

aggregateBucket :: AggregateBucket Source #

Creates a value of AggregateBucket with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

abEndTimeMillis :: Lens' AggregateBucket (Maybe Int64) Source #

The end time for the aggregated data, in milliseconds since epoch, inclusive.

abDataSet :: Lens' AggregateBucket [DataSet] Source #

There will be one dataset per AggregateBy in the request.

abActivity :: Lens' AggregateBucket (Maybe Int32) Source #

Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT

abType :: Lens' AggregateBucket (Maybe AggregateBucketType) Source #

The type of a bucket signifies how the data aggregation is performed in the bucket.

abStartTimeMillis :: Lens' AggregateBucket (Maybe Int64) Source #

The start time for the aggregated data, in milliseconds since epoch, inclusive.

abSession :: Lens' AggregateBucket (Maybe Session) Source #

Available for Bucket.Type.SESSION

MapValue

data MapValue Source #

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.

See: mapValue smart constructor.

Instances
Eq MapValue Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data MapValue Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MapValue -> c MapValue #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MapValue #

toConstr :: MapValue -> Constr #

dataTypeOf :: MapValue -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MapValue) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MapValue) #

gmapT :: (forall b. Data b => b -> b) -> MapValue -> MapValue #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MapValue -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MapValue -> r #

gmapQ :: (forall d. Data d => d -> u) -> MapValue -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MapValue -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MapValue -> m MapValue #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MapValue -> m MapValue #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MapValue -> m MapValue #

Show MapValue Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic MapValue Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep MapValue :: Type -> Type #

Methods

from :: MapValue -> Rep MapValue x #

to :: Rep MapValue x -> MapValue #

ToJSON MapValue Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON MapValue Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep MapValue Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep MapValue = D1 (MetaData "MapValue" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" True) (C1 (MetaCons "MapValue'" PrefixI True) (S1 (MetaSel (Just "_mvFpVal") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Textual Double)))))

mapValue :: MapValue Source #

Creates a value of MapValue with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

mvFpVal :: Lens' MapValue (Maybe Double) Source #

Floating point value.

ListDataSourcesResponse

data ListDataSourcesResponse Source #

Instances
Eq ListDataSourcesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data ListDataSourcesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDataSourcesResponse -> c ListDataSourcesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDataSourcesResponse #

toConstr :: ListDataSourcesResponse -> Constr #

dataTypeOf :: ListDataSourcesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListDataSourcesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDataSourcesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListDataSourcesResponse -> ListDataSourcesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDataSourcesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDataSourcesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDataSourcesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDataSourcesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDataSourcesResponse -> m ListDataSourcesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDataSourcesResponse -> m ListDataSourcesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDataSourcesResponse -> m ListDataSourcesResponse #

Show ListDataSourcesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic ListDataSourcesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep ListDataSourcesResponse :: Type -> Type #

ToJSON ListDataSourcesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON ListDataSourcesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ListDataSourcesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ListDataSourcesResponse = D1 (MetaData "ListDataSourcesResponse" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" True) (C1 (MetaCons "ListDataSourcesResponse'" PrefixI True) (S1 (MetaSel (Just "_ldsrDataSource") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [DataSource]))))

listDataSourcesResponse :: ListDataSourcesResponse Source #

Creates a value of ListDataSourcesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ldsrDataSource :: Lens' ListDataSourcesResponse [DataSource] Source #

A previously created data source.

DataTypeField

data DataTypeField Source #

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.

See: dataTypeField smart constructor.

Instances
Eq DataTypeField Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data DataTypeField Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataTypeField -> c DataTypeField #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataTypeField #

toConstr :: DataTypeField -> Constr #

dataTypeOf :: DataTypeField -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataTypeField) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataTypeField) #

gmapT :: (forall b. Data b => b -> b) -> DataTypeField -> DataTypeField #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataTypeField -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataTypeField -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataTypeField -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataTypeField -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataTypeField -> m DataTypeField #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataTypeField -> m DataTypeField #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataTypeField -> m DataTypeField #

Show DataTypeField Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic DataTypeField Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep DataTypeField :: Type -> Type #

ToJSON DataTypeField Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON DataTypeField Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataTypeField Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataTypeField = D1 (MetaData "DataTypeField" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "DataTypeField'" PrefixI True) (S1 (MetaSel (Just "_dtfFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DataTypeFieldFormat)) :*: (S1 (MetaSel (Just "_dtfName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dtfOptional") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))

dataTypeField :: DataTypeField Source #

Creates a value of DataTypeField with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dtfFormat :: Lens' DataTypeField (Maybe DataTypeFieldFormat) Source #

The different supported formats for each field in a data type.

dtfName :: Lens' DataTypeField (Maybe Text) Source #

Defines the name and format of data. Unlike data type names, field names are not namespaced, and only need to be unique within the data type.

AggregateRequestFilteredDataQualityStandardItem

data AggregateRequestFilteredDataQualityStandardItem Source #

Constructors

DATAQUALITYBLOODGLUCOSEISO151972003
dataQualityBloodGlucoseIso151972003
DATAQUALITYBLOODGLUCOSEISO151972013
dataQualityBloodGlucoseIso151972013
DataQualityBloodPressureAami
dataQualityBloodPressureAami
DataQualityBloodPressureBhsAA
dataQualityBloodPressureBhsAA
DataQualityBloodPressureBhsAB
dataQualityBloodPressureBhsAB
DataQualityBloodPressureBhsBA
dataQualityBloodPressureBhsBA
DataQualityBloodPressureBhsBB
dataQualityBloodPressureBhsBB
DATAQUALITYBLOODPRESSUREESH2002
dataQualityBloodPressureEsh2002
DATAQUALITYBLOODPRESSUREESH2010
dataQualityBloodPressureEsh2010
DataQualityUnknown
dataQualityUnknown
Instances
Enum AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Eq AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Data AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AggregateRequestFilteredDataQualityStandardItem -> c AggregateRequestFilteredDataQualityStandardItem #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AggregateRequestFilteredDataQualityStandardItem #

toConstr :: AggregateRequestFilteredDataQualityStandardItem -> Constr #

dataTypeOf :: AggregateRequestFilteredDataQualityStandardItem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AggregateRequestFilteredDataQualityStandardItem) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AggregateRequestFilteredDataQualityStandardItem) #

gmapT :: (forall b. Data b => b -> b) -> AggregateRequestFilteredDataQualityStandardItem -> AggregateRequestFilteredDataQualityStandardItem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AggregateRequestFilteredDataQualityStandardItem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AggregateRequestFilteredDataQualityStandardItem -> r #

gmapQ :: (forall d. Data d => d -> u) -> AggregateRequestFilteredDataQualityStandardItem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AggregateRequestFilteredDataQualityStandardItem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AggregateRequestFilteredDataQualityStandardItem -> m AggregateRequestFilteredDataQualityStandardItem #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateRequestFilteredDataQualityStandardItem -> m AggregateRequestFilteredDataQualityStandardItem #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AggregateRequestFilteredDataQualityStandardItem -> m AggregateRequestFilteredDataQualityStandardItem #

Ord AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Read AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Show AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Generic AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Hashable AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToJSON AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromJSON AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromHttpApiData AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToHttpApiData AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep AggregateRequestFilteredDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep AggregateRequestFilteredDataQualityStandardItem = D1 (MetaData "AggregateRequestFilteredDataQualityStandardItem" "Network.Google.Fitness.Types.Sum" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (((C1 (MetaCons "DATAQUALITYBLOODGLUCOSEISO151972003" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DATAQUALITYBLOODGLUCOSEISO151972013" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "DataQualityBloodPressureAami" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "DataQualityBloodPressureBhsAA" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DataQualityBloodPressureBhsAB" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "DataQualityBloodPressureBhsBA" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DataQualityBloodPressureBhsBB" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "DATAQUALITYBLOODPRESSUREESH2002" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "DATAQUALITYBLOODPRESSUREESH2010" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DataQualityUnknown" PrefixI False) (U1 :: Type -> Type)))))

DataSource

data DataSource Source #

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.

See: dataSource smart constructor.

Instances
Eq DataSource Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data DataSource Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataSource -> c DataSource #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataSource #

toConstr :: DataSource -> Constr #

dataTypeOf :: DataSource -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataSource) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataSource) #

gmapT :: (forall b. Data b => b -> b) -> DataSource -> DataSource #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataSource -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataSource -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataSource -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataSource -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataSource -> m DataSource #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSource -> m DataSource #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSource -> m DataSource #

Show DataSource Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic DataSource Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep DataSource :: Type -> Type #

ToJSON DataSource Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON DataSource Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataSource Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

dataSource :: DataSource Source #

Creates a value of DataSource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dsApplication :: Lens' DataSource (Maybe Application) Source #

Information about an application which feeds sensor data into the platform.

dsDevice :: Lens' DataSource (Maybe Device) Source #

Representation of an integrated device (such as a phone or a wearable) that can hold sensors.

dsName :: Lens' DataSource (Maybe Text) Source #

An end-user visible name for this data source.

dsDataType :: Lens' DataSource (Maybe DataType) Source #

The data type defines the schema for a stream of data being collected by, inserted into, or queried from the Fitness API.

dsType :: Lens' DataSource (Maybe DataSourceType) Source #

A constant describing the type of this data source. Indicates whether this data source produces raw or derived data.

dsDataStreamName :: Lens' DataSource (Maybe Text) Source #

The stream name uniquely identifies this particular data source among other data sources of the same type from the same underlying producer. Setting the stream name is optional, but should be done whenever an application exposes two streams for the same data type, or when a device has two equivalent sensors.

dsDataStreamId :: Lens' DataSource (Maybe Text) Source #

A unique identifier for the data stream produced by this data source. The identifier includes: - The physical device's manufacturer, model, and serial number (UID). - The application's package name or name. Package name is used when the data source was created by an Android application. The developer project number is used when the data source was created by a REST client. - The data source's type. - The data source's stream name. Note that not all attributes of the data source are used as part of the stream identifier. In particular, the version of the hardware/the application isn't used. This allows us to preserve the same stream through version updates. This also means that two DataSource objects may represent the same data stream even if they're not equal. The exact format of the data stream ID created by an Android application is: type:dataType.name:application.packageName:device.manufacturer:device.model:device.uid:dataStreamName The exact format of the data stream ID created by a REST client is: type:dataType.name:developer project number:device.manufacturer:device.model:device.uid:dataStreamName When any of the optional fields that comprise of the data stream ID are blank, they will be omitted from the data stream ID. The minimum viable data stream ID would be: type:dataType.name:developer project number Finally, the developer project number is obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the developer project number in clear and normal form.

BucketByTimePeriod

data BucketByTimePeriod Source #

Instances
Eq BucketByTimePeriod Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data BucketByTimePeriod Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BucketByTimePeriod -> c BucketByTimePeriod #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BucketByTimePeriod #

toConstr :: BucketByTimePeriod -> Constr #

dataTypeOf :: BucketByTimePeriod -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BucketByTimePeriod) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BucketByTimePeriod) #

gmapT :: (forall b. Data b => b -> b) -> BucketByTimePeriod -> BucketByTimePeriod #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BucketByTimePeriod -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BucketByTimePeriod -> r #

gmapQ :: (forall d. Data d => d -> u) -> BucketByTimePeriod -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BucketByTimePeriod -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BucketByTimePeriod -> m BucketByTimePeriod #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByTimePeriod -> m BucketByTimePeriod #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByTimePeriod -> m BucketByTimePeriod #

Show BucketByTimePeriod Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic BucketByTimePeriod Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep BucketByTimePeriod :: Type -> Type #

ToJSON BucketByTimePeriod Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON BucketByTimePeriod Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketByTimePeriod Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketByTimePeriod = D1 (MetaData "BucketByTimePeriod" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "BucketByTimePeriod'" PrefixI True) (S1 (MetaSel (Just "_bbtpValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_bbtpType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BucketByTimePeriodType)) :*: S1 (MetaSel (Just "_bbtpTimeZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

bucketByTimePeriod :: BucketByTimePeriod Source #

Creates a value of BucketByTimePeriod with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

bbtpTimeZoneId :: Lens' BucketByTimePeriod (Maybe Text) Source #

org.joda.timezone.DateTimeZone

DeviceType

data DeviceType Source #

A constant representing the type of the device.

Constructors

ChestStrap
chestStrap
HeadMounted
headMounted
Phone
phone
Scale
scale
Tablet
tablet
Unknown
unknown
Watch
watch
Instances
Enum DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Eq DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Data DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeviceType -> c DeviceType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeviceType #

toConstr :: DeviceType -> Constr #

dataTypeOf :: DeviceType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeviceType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeviceType) #

gmapT :: (forall b. Data b => b -> b) -> DeviceType -> DeviceType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeviceType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeviceType -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeviceType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeviceType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeviceType -> m DeviceType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeviceType -> m DeviceType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeviceType -> m DeviceType #

Ord DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Read DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Show DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Generic DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Associated Types

type Rep DeviceType :: Type -> Type #

Hashable DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToJSON DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromJSON DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromHttpApiData DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToHttpApiData DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DeviceType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DeviceType = D1 (MetaData "DeviceType" "Network.Google.Fitness.Types.Sum" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) ((C1 (MetaCons "ChestStrap" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "HeadMounted" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Phone" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "Scale" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Tablet" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Unknown" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Watch" PrefixI False) (U1 :: Type -> Type))))

ValueMapValEntry

data ValueMapValEntry Source #

Instances
Eq ValueMapValEntry Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data ValueMapValEntry Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ValueMapValEntry -> c ValueMapValEntry #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ValueMapValEntry #

toConstr :: ValueMapValEntry -> Constr #

dataTypeOf :: ValueMapValEntry -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ValueMapValEntry) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ValueMapValEntry) #

gmapT :: (forall b. Data b => b -> b) -> ValueMapValEntry -> ValueMapValEntry #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ValueMapValEntry -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ValueMapValEntry -> r #

gmapQ :: (forall d. Data d => d -> u) -> ValueMapValEntry -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ValueMapValEntry -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ValueMapValEntry -> m ValueMapValEntry #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ValueMapValEntry -> m ValueMapValEntry #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ValueMapValEntry -> m ValueMapValEntry #

Show ValueMapValEntry Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic ValueMapValEntry Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep ValueMapValEntry :: Type -> Type #

ToJSON ValueMapValEntry Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON ValueMapValEntry Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ValueMapValEntry Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ValueMapValEntry = D1 (MetaData "ValueMapValEntry" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "ValueMapValEntry'" PrefixI True) (S1 (MetaSel (Just "_vmveValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MapValue)) :*: S1 (MetaSel (Just "_vmveKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

valueMapValEntry :: ValueMapValEntry Source #

Creates a value of ValueMapValEntry with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

BucketByTime

data BucketByTime Source #

Instances
Eq BucketByTime Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data BucketByTime Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BucketByTime -> c BucketByTime #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BucketByTime #

toConstr :: BucketByTime -> Constr #

dataTypeOf :: BucketByTime -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BucketByTime) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BucketByTime) #

gmapT :: (forall b. Data b => b -> b) -> BucketByTime -> BucketByTime #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BucketByTime -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BucketByTime -> r #

gmapQ :: (forall d. Data d => d -> u) -> BucketByTime -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BucketByTime -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BucketByTime -> m BucketByTime #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByTime -> m BucketByTime #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BucketByTime -> m BucketByTime #

Show BucketByTime Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic BucketByTime Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep BucketByTime :: Type -> Type #

ToJSON BucketByTime Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON BucketByTime Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketByTime Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep BucketByTime = D1 (MetaData "BucketByTime" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "BucketByTime'" PrefixI True) (S1 (MetaSel (Just "_bbtPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BucketByTimePeriod)) :*: S1 (MetaSel (Just "_bbtDurationMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))

bucketByTime :: BucketByTime Source #

Creates a value of BucketByTime with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

bbtDurationMillis :: Lens' BucketByTime (Maybe Int64) Source #

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.

DataType

data DataType Source #

See: dataType smart constructor.

Instances
Eq DataType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data DataType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataType -> c DataType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataType #

toConstr :: DataType -> Constr #

dataTypeOf :: DataType -> DataType0 #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataType) #

gmapT :: (forall b. Data b => b -> b) -> DataType -> DataType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataType -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataType -> m DataType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataType -> m DataType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataType -> m DataType #

Show DataType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic DataType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep DataType :: Type -> Type #

Methods

from :: DataType -> Rep DataType x #

to :: Rep DataType x -> DataType #

ToJSON DataType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON DataType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataType Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep DataType = D1 (MetaData "DataType" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "DataType'" PrefixI True) (S1 (MetaSel (Just "_dtField") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataTypeField])) :*: S1 (MetaSel (Just "_dtName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

dataType :: DataType Source #

Creates a value of DataType with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dtField :: Lens' DataType [DataTypeField] Source #

A field represents one dimension of a data type.

dtName :: Lens' DataType (Maybe Text) Source #

Each data type has a unique, namespaced, name. All data types in the com.google namespace are shared as part of the platform.

ListDataPointChangesResponse

data ListDataPointChangesResponse Source #

Instances
Eq ListDataPointChangesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Data ListDataPointChangesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDataPointChangesResponse -> c ListDataPointChangesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDataPointChangesResponse #

toConstr :: ListDataPointChangesResponse -> Constr #

dataTypeOf :: ListDataPointChangesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListDataPointChangesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDataPointChangesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListDataPointChangesResponse -> ListDataPointChangesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDataPointChangesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDataPointChangesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDataPointChangesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDataPointChangesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDataPointChangesResponse -> m ListDataPointChangesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDataPointChangesResponse -> m ListDataPointChangesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDataPointChangesResponse -> m ListDataPointChangesResponse #

Show ListDataPointChangesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic ListDataPointChangesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep ListDataPointChangesResponse :: Type -> Type #

ToJSON ListDataPointChangesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON ListDataPointChangesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ListDataPointChangesResponse Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep ListDataPointChangesResponse = D1 (MetaData "ListDataPointChangesResponse" "Network.Google.Fitness.Types.Product" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "ListDataPointChangesResponse'" PrefixI True) ((S1 (MetaSel (Just "_ldpcrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ldpcrInsertedDataPoint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataPoint]))) :*: (S1 (MetaSel (Just "_ldpcrDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ldpcrDeletedDataPoint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataPoint])))))

listDataPointChangesResponse :: ListDataPointChangesResponse Source #

Creates a value of ListDataPointChangesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ldpcrNextPageToken :: Lens' ListDataPointChangesResponse (Maybe Text) Source #

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.

ldpcrDataSourceId :: Lens' ListDataPointChangesResponse (Maybe Text) Source #

The data stream ID of the data source with data point changes.

ldpcrDeletedDataPoint :: Lens' ListDataPointChangesResponse [DataPoint] Source #

Deleted data points for the user. Note, for modifications this should be parsed before handling insertions.

Session

data Session Source #

Sessions contain metadata, such as a user-friendly name and time interval information.

See: session smart constructor.

Instances
Eq Session Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

(==) :: Session -> Session -> Bool #

(/=) :: Session -> Session -> Bool #

Data Session Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Session -> c Session #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Session #

toConstr :: Session -> Constr #

dataTypeOf :: Session -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Session) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Session) #

gmapT :: (forall b. Data b => b -> b) -> Session -> Session #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Session -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Session -> r #

gmapQ :: (forall d. Data d => d -> u) -> Session -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Session -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Session -> m Session #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Session -> m Session #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Session -> m Session #

Show Session Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Generic Session Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

Associated Types

type Rep Session :: Type -> Type #

Methods

from :: Session -> Rep Session x #

to :: Rep Session x -> Session #

ToJSON Session Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

FromJSON Session Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

type Rep Session Source # 
Instance details

Defined in Network.Google.Fitness.Types.Product

session :: Session Source #

Creates a value of Session with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sEndTimeMillis :: Lens' Session (Maybe Int64) Source #

An end time, in milliseconds since epoch, inclusive.

sActiveTimeMillis :: Lens' Session (Maybe Int64) Source #

Session active time. While start_time_millis and end_time_millis define the full session time, the active time can be shorter and specified by active_time_millis. If the inactive time during the session is known, it should also be inserted via a com.google.activity.segment data point with a STILL activity value

sApplication :: Lens' Session (Maybe Application) Source #

The application that created the session.

sActivityType :: Lens' Session (Maybe Int32) Source #

The type of activity this session represents.

sName :: Lens' Session (Maybe Text) Source #

A human readable name of the session.

sModifiedTimeMillis :: Lens' Session (Maybe Int64) Source #

A timestamp that indicates when the session was last modified.

sId :: Lens' Session (Maybe Text) Source #

A client-generated identifier that is unique across all sessions owned by this particular user.

sStartTimeMillis :: Lens' Session (Maybe Int64) Source #

A start time, in milliseconds since epoch, inclusive.

sDescription :: Lens' Session (Maybe Text) Source #

A description for this session.

DataSourceDataQualityStandardItem

data DataSourceDataQualityStandardItem Source #

Constructors

DSDQSIDATAQUALITYBLOODGLUCOSEISO151972003
dataQualityBloodGlucoseIso151972003
DSDQSIDATAQUALITYBLOODGLUCOSEISO151972013
dataQualityBloodGlucoseIso151972013
DSDQSIDataQualityBloodPressureAami
dataQualityBloodPressureAami
DSDQSIDataQualityBloodPressureBhsAA
dataQualityBloodPressureBhsAA
DSDQSIDataQualityBloodPressureBhsAB
dataQualityBloodPressureBhsAB
DSDQSIDataQualityBloodPressureBhsBA
dataQualityBloodPressureBhsBA
DSDQSIDataQualityBloodPressureBhsBB
dataQualityBloodPressureBhsBB
DSDQSIDATAQUALITYBLOODPRESSUREESH2002
dataQualityBloodPressureEsh2002
DSDQSIDATAQUALITYBLOODPRESSUREESH2010
dataQualityBloodPressureEsh2010
DSDQSIDataQualityUnknown
dataQualityUnknown
Instances
Enum DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Eq DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Data DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataSourceDataQualityStandardItem -> c DataSourceDataQualityStandardItem #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataSourceDataQualityStandardItem #

toConstr :: DataSourceDataQualityStandardItem -> Constr #

dataTypeOf :: DataSourceDataQualityStandardItem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataSourceDataQualityStandardItem) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataSourceDataQualityStandardItem) #

gmapT :: (forall b. Data b => b -> b) -> DataSourceDataQualityStandardItem -> DataSourceDataQualityStandardItem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataSourceDataQualityStandardItem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataSourceDataQualityStandardItem -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataSourceDataQualityStandardItem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataSourceDataQualityStandardItem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataSourceDataQualityStandardItem -> m DataSourceDataQualityStandardItem #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSourceDataQualityStandardItem -> m DataSourceDataQualityStandardItem #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSourceDataQualityStandardItem -> m DataSourceDataQualityStandardItem #

Ord DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Read DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Show DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Generic DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Associated Types

type Rep DataSourceDataQualityStandardItem :: Type -> Type #

Hashable DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToJSON DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromJSON DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromHttpApiData DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToHttpApiData DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DataSourceDataQualityStandardItem Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DataSourceDataQualityStandardItem = D1 (MetaData "DataSourceDataQualityStandardItem" "Network.Google.Fitness.Types.Sum" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (((C1 (MetaCons "DSDQSIDATAQUALITYBLOODGLUCOSEISO151972003" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DSDQSIDATAQUALITYBLOODGLUCOSEISO151972013" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "DSDQSIDataQualityBloodPressureAami" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "DSDQSIDataQualityBloodPressureBhsAA" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DSDQSIDataQualityBloodPressureBhsAB" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "DSDQSIDataQualityBloodPressureBhsBA" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DSDQSIDataQualityBloodPressureBhsBB" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "DSDQSIDATAQUALITYBLOODPRESSUREESH2002" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "DSDQSIDATAQUALITYBLOODPRESSUREESH2010" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DSDQSIDataQualityUnknown" PrefixI False) (U1 :: Type -> Type)))))

DataTypeFieldFormat

data DataTypeFieldFormat Source #

The different supported formats for each field in a data type.

Constructors

Blob
blob
FloatList
floatList
FloatPoint
floatPoint
Integer
integer
IntegerList
integerList
Map
map
String
string
Instances
Enum DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Eq DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Data DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataTypeFieldFormat -> c DataTypeFieldFormat #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataTypeFieldFormat #

toConstr :: DataTypeFieldFormat -> Constr #

dataTypeOf :: DataTypeFieldFormat -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataTypeFieldFormat) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataTypeFieldFormat) #

gmapT :: (forall b. Data b => b -> b) -> DataTypeFieldFormat -> DataTypeFieldFormat #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataTypeFieldFormat -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataTypeFieldFormat -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataTypeFieldFormat -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataTypeFieldFormat -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataTypeFieldFormat -> m DataTypeFieldFormat #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataTypeFieldFormat -> m DataTypeFieldFormat #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataTypeFieldFormat -> m DataTypeFieldFormat #

Ord DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Read DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Show DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Generic DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

Associated Types

type Rep DataTypeFieldFormat :: Type -> Type #

Hashable DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToJSON DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromJSON DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

FromHttpApiData DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

ToHttpApiData DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DataTypeFieldFormat Source # 
Instance details

Defined in Network.Google.Fitness.Types.Sum

type Rep DataTypeFieldFormat = D1 (MetaData "DataTypeFieldFormat" "Network.Google.Fitness.Types.Sum" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) ((C1 (MetaCons "Blob" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "FloatList" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "FloatPoint" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "Integer" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IntegerList" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Map" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "String" PrefixI False) (U1 :: Type -> Type))))