gogol-cloudmonitoring-0.2.0: Google Cloud Monitoring SDK.

Copyright(c) 2015-2016 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:

data MetricDescriptorsCreate Source #

Create a new metric.

See: metricDescriptorsCreate smart constructor.

Instances

Eq MetricDescriptorsCreate Source # 
Data MetricDescriptorsCreate Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MetricDescriptorsCreate -> c MetricDescriptorsCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MetricDescriptorsCreate #

toConstr :: MetricDescriptorsCreate -> Constr #

dataTypeOf :: MetricDescriptorsCreate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c MetricDescriptorsCreate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MetricDescriptorsCreate) #

gmapT :: (forall b. Data b => b -> b) -> MetricDescriptorsCreate -> MetricDescriptorsCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MetricDescriptorsCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MetricDescriptorsCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> MetricDescriptorsCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MetricDescriptorsCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MetricDescriptorsCreate -> m MetricDescriptorsCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MetricDescriptorsCreate -> m MetricDescriptorsCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MetricDescriptorsCreate -> m MetricDescriptorsCreate #

Show MetricDescriptorsCreate Source # 
Generic MetricDescriptorsCreate Source # 
GoogleRequest MetricDescriptorsCreate Source # 
type Rep MetricDescriptorsCreate Source # 
type Rep MetricDescriptorsCreate = D1 (MetaData "MetricDescriptorsCreate" "Network.Google.Resource.CloudMonitoring.MetricDescriptors.Create" "gogol-cloudmonitoring-0.2.0-96aZdd8ghJU7MrvziRnnxW" False) (C1 (MetaCons "MetricDescriptorsCreate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mdcProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_mdcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MetricDescriptor))))
type Scopes MetricDescriptorsCreate Source # 
type Scopes MetricDescriptorsCreate = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/monitoring" ([] Symbol))
type Rs MetricDescriptorsCreate Source # 

Request Lenses

mdcProject :: Lens' MetricDescriptorsCreate Text Source #

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