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 |
Create a new custom metric.
See: Google Analytics API Reference for analytics.management.customMetrics.insert
.
Synopsis
- type ManagementCustomMetricsInsertResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomMetric :> Post '[JSON] CustomMetric)))))))))
- managementCustomMetricsInsert :: Text -> CustomMetric -> Text -> ManagementCustomMetricsInsert
- data ManagementCustomMetricsInsert
- mcmiWebPropertyId :: Lens' ManagementCustomMetricsInsert Text
- mcmiPayload :: Lens' ManagementCustomMetricsInsert CustomMetric
- mcmiAccountId :: Lens' ManagementCustomMetricsInsert Text
REST Resource
type ManagementCustomMetricsInsertResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomMetric :> Post '[JSON] CustomMetric))))))))) Source #
A resource alias for analytics.management.customMetrics.insert
method which the
ManagementCustomMetricsInsert
request conforms to.
Creating a Request
managementCustomMetricsInsert Source #
Creates a value of ManagementCustomMetricsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagementCustomMetricsInsert Source #
Create a new custom metric.
See: managementCustomMetricsInsert
smart constructor.
Instances
Request Lenses
mcmiWebPropertyId :: Lens' ManagementCustomMetricsInsert Text Source #
Web property ID for the custom dimension to create.
mcmiPayload :: Lens' ManagementCustomMetricsInsert CustomMetric Source #
Multipart request metadata.
mcmiAccountId :: Lens' ManagementCustomMetricsInsert Text Source #
Account ID for the custom metric to create.