Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns real time data for a view (profile).
See: Google Analytics API Reference for analytics.data.realtime.get
.
Synopsis
- 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))))))))))
- dataRealtimeGet :: Text -> Text -> DataRealtimeGet
- data DataRealtimeGet
- drgMetrics :: Lens' DataRealtimeGet Text
- drgFilters :: Lens' DataRealtimeGet (Maybe Text)
- drgIds :: Lens' DataRealtimeGet Text
- drgSort :: Lens' DataRealtimeGet (Maybe Text)
- drgDimensions :: Lens' DataRealtimeGet (Maybe Text)
- drgMaxResults :: Lens' DataRealtimeGet (Maybe Int32)
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
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:
data DataRealtimeGet Source #
Returns real time data for a view (profile).
See: dataRealtimeGet
smart constructor.
Instances
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.