gogol-analytics-0.0.1: Google Analytics SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Analytics.Management.CustomMetrics.Insert

Contents

Description

Create a new custom metric.

See: Google Analytics API Reference for analytics.management.customMetrics.insert.

Synopsis

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:

Request Lenses

mcmiWebPropertyId :: Lens' ManagementCustomMetricsInsert Text Source

Web property ID for the custom dimension to create.

mcmiAccountId :: Lens' ManagementCustomMetricsInsert Text Source

Account ID for the custom metric to create.