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 |
Updates an existing custom metric.
See: Google Analytics API Reference for analytics.management.customMetrics.update
.
Synopsis
- type ManagementCustomMetricsUpdateResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (Capture "customMetricId" Text :> (QueryParam "ignoreCustomDataSourceLinks" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomMetric :> Put '[JSON] CustomMetric)))))))))))
- managementCustomMetricsUpdate :: Text -> Text -> CustomMetric -> Text -> ManagementCustomMetricsUpdate
- data ManagementCustomMetricsUpdate
- mcmuCustomMetricId :: Lens' ManagementCustomMetricsUpdate Text
- mcmuWebPropertyId :: Lens' ManagementCustomMetricsUpdate Text
- mcmuIgnoreCustomDataSourceLinks :: Lens' ManagementCustomMetricsUpdate Bool
- mcmuPayload :: Lens' ManagementCustomMetricsUpdate CustomMetric
- mcmuAccountId :: Lens' ManagementCustomMetricsUpdate Text
REST Resource
type ManagementCustomMetricsUpdateResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (Capture "customMetricId" Text :> (QueryParam "ignoreCustomDataSourceLinks" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomMetric :> Put '[JSON] CustomMetric))))))))))) Source #
A resource alias for analytics.management.customMetrics.update
method which the
ManagementCustomMetricsUpdate
request conforms to.
Creating a Request
managementCustomMetricsUpdate Source #
:: Text | |
-> Text | |
-> CustomMetric | |
-> Text | |
-> ManagementCustomMetricsUpdate |
Creates a value of ManagementCustomMetricsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagementCustomMetricsUpdate Source #
Updates an existing custom metric.
See: managementCustomMetricsUpdate
smart constructor.
Instances
Request Lenses
mcmuCustomMetricId :: Lens' ManagementCustomMetricsUpdate Text Source #
Custom metric ID for the custom metric to update.
mcmuWebPropertyId :: Lens' ManagementCustomMetricsUpdate Text Source #
Web property ID for the custom metric to update.
mcmuIgnoreCustomDataSourceLinks :: Lens' ManagementCustomMetricsUpdate Bool Source #
Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.
mcmuPayload :: Lens' ManagementCustomMetricsUpdate CustomMetric Source #
Multipart request metadata.
mcmuAccountId :: Lens' ManagementCustomMetricsUpdate Text Source #
Account ID for the custom metric to update.