gogol-monitoring-0.0.1: Google Cloud Monitoring 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.CloudMonitoring.MetricDescriptors.Create

Contents

Description

Create a new metric.

See: Cloud Monitoring API Reference for cloudmonitoring.metricDescriptors.create.

Synopsis

REST Resource

type MetricDescriptorsCreateResource = "cloudmonitoring" :> ("v2beta2" :> ("projects" :> (Capture "project" Text :> ("metricDescriptors" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` MetricDescriptor :> Post `[JSON]` MetricDescriptor)))))) Source

A resource alias for cloudmonitoring.metricDescriptors.create method which the MetricDescriptorsCreate request conforms to.

Creating a Request

metricDescriptorsCreate Source

Creates a value of MetricDescriptorsCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

mdcProject :: Lens' MetricDescriptorsCreate Text Source

The project id. The value can be the numeric project ID or string-based project name.