| 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 |
Network.Google.Resource.Analytics.Management.CustomMetrics.Patch
Description
Updates an existing custom metric. This method supports patch semantics.
See: Google Analytics API Reference for analytics.management.customMetrics.patch.
Synopsis
- type ManagementCustomMetricsPatchResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (Capture "customMetricId" Text :> (QueryParam "ignoreCustomDataSourceLinks" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomMetric :> Patch '[JSON] CustomMetric)))))))))))
- managementCustomMetricsPatch :: Text -> Text -> CustomMetric -> Text -> ManagementCustomMetricsPatch
- data ManagementCustomMetricsPatch
- mcmpCustomMetricId :: Lens' ManagementCustomMetricsPatch Text
- mcmpWebPropertyId :: Lens' ManagementCustomMetricsPatch Text
- mcmpIgnoreCustomDataSourceLinks :: Lens' ManagementCustomMetricsPatch Bool
- mcmpPayload :: Lens' ManagementCustomMetricsPatch CustomMetric
- mcmpAccountId :: Lens' ManagementCustomMetricsPatch Text
REST Resource
type ManagementCustomMetricsPatchResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("customMetrics" :> (Capture "customMetricId" Text :> (QueryParam "ignoreCustomDataSourceLinks" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomMetric :> Patch '[JSON] CustomMetric))))))))))) Source #
A resource alias for analytics.management.customMetrics.patch method which the
ManagementCustomMetricsPatch request conforms to.
Creating a Request
managementCustomMetricsPatch Source #
Arguments
| :: Text | |
| -> Text | |
| -> CustomMetric | |
| -> Text | |
| -> ManagementCustomMetricsPatch |
Creates a value of ManagementCustomMetricsPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagementCustomMetricsPatch Source #
Updates an existing custom metric. This method supports patch semantics.
See: managementCustomMetricsPatch smart constructor.
Instances
Request Lenses
mcmpCustomMetricId :: Lens' ManagementCustomMetricsPatch Text Source #
Custom metric ID for the custom metric to update.
mcmpWebPropertyId :: Lens' ManagementCustomMetricsPatch Text Source #
Web property ID for the custom metric to update.
mcmpIgnoreCustomDataSourceLinks :: Lens' ManagementCustomMetricsPatch Bool Source #
Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.
mcmpPayload :: Lens' ManagementCustomMetricsPatch CustomMetric Source #
Multipart request metadata.
mcmpAccountId :: Lens' ManagementCustomMetricsPatch Text Source #
Account ID for the custom metric to update.