gogol-analytics-0.0.1: Google Analytics SDK.

Copyright(c) 2015 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.Resource.Analytics.Data.Realtime.Get

Contents

Description

Returns real time data for a view (profile).

See: Google Analytics API Reference for analytics.data.realtime.get.

Synopsis

REST Resource

type DataRealtimeGetResource = "analytics" :> ("v3" :> ("data" :> ("realtime" :> (QueryParam "ids" Text :> (QueryParam "metrics" Text :> (QueryParam "filters" Text :> (QueryParam "sort" Text :> (QueryParam "dimensions" Text :> (QueryParam "max-results" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get `[JSON]` RealtimeData)))))))))) Source

A resource alias for analytics.data.realtime.get method which the DataRealtimeGet request conforms to.

Creating a Request

dataRealtimeGet Source

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

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

Request Lenses

drgMetrics :: Lens' DataRealtimeGet Text Source

A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be specified.

drgFilters :: Lens' DataRealtimeGet (Maybe Text) Source

A comma-separated list of dimension or metric filters to be applied to real time data.

drgIds :: Lens' DataRealtimeGet Text Source

Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.

drgSort :: Lens' DataRealtimeGet (Maybe Text) Source

A comma-separated list of dimensions or metrics that determine the sort order for real time data.

drgDimensions :: Lens' DataRealtimeGet (Maybe Text) Source

A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.

drgMaxResults :: Lens' DataRealtimeGet (Maybe Int32) Source

The maximum number of entries to include in this feed.