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 |
Lists custom metrics to which the user has access.
See: Google Analytics API Reference for analytics.management.customMetrics.list
.
Synopsis
- type ManagementCustomMetricsListResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (QueryParam "start-index" (Textual Int32) :> (QueryParam "max-results" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] CustomMetrics))))))))))
- managementCustomMetricsList :: Text -> Text -> ManagementCustomMetricsList
- data ManagementCustomMetricsList
- mcmlWebPropertyId :: Lens' ManagementCustomMetricsList Text
- mcmlAccountId :: Lens' ManagementCustomMetricsList Text
- mcmlStartIndex :: Lens' ManagementCustomMetricsList (Maybe Int32)
- mcmlMaxResults :: Lens' ManagementCustomMetricsList (Maybe Int32)
REST Resource
type ManagementCustomMetricsListResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (QueryParam "start-index" (Textual Int32) :> (QueryParam "max-results" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] CustomMetrics)))))))))) Source #
A resource alias for analytics.management.customMetrics.list
method which the
ManagementCustomMetricsList
request conforms to.
Creating a Request
managementCustomMetricsList Source #
Creates a value of ManagementCustomMetricsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagementCustomMetricsList Source #
Lists custom metrics to which the user has access.
See: managementCustomMetricsList
smart constructor.
Instances
Request Lenses
mcmlWebPropertyId :: Lens' ManagementCustomMetricsList Text Source #
Web property ID for the custom metrics to retrieve.
mcmlAccountId :: Lens' ManagementCustomMetricsList Text Source #
Account ID for the custom metrics to retrieve.
mcmlStartIndex :: Lens' ManagementCustomMetricsList (Maybe Int32) Source #
An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
mcmlMaxResults :: Lens' ManagementCustomMetricsList (Maybe Int32) Source #
The maximum number of custom metrics to include in this response.