gogol-monitoring-0.4.0: Google Stackdriver 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.Monitoring.Projects.MetricDescriptors.Create

Contents

Description

Creates a new metric descriptor. User-created metric descriptors define custom metrics.

See: Stackdriver Monitoring API Reference for monitoring.projects.metricDescriptors.create.

Synopsis

REST Resource

type ProjectsMetricDescriptorsCreateResource = "v3" :> (Capture "name" Text :> ("metricDescriptors" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MetricDescriptor :> Post '[JSON] MetricDescriptor))))))))) Source #

A resource alias for monitoring.projects.metricDescriptors.create method which the ProjectsMetricDescriptorsCreate request conforms to.

Creating a Request

projectsMetricDescriptorsCreate Source #

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

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

data ProjectsMetricDescriptorsCreate Source #

Creates a new metric descriptor. User-created metric descriptors define custom metrics.

See: projectsMetricDescriptorsCreate smart constructor.

Instances
Eq ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

Data ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

Methods

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

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

toConstr :: ProjectsMetricDescriptorsCreate -> Constr #

dataTypeOf :: ProjectsMetricDescriptorsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

Generic ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

Associated Types

type Rep ProjectsMetricDescriptorsCreate :: Type -> Type #

GoogleRequest ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

type Rep ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

type Rep ProjectsMetricDescriptorsCreate = D1 (MetaData "ProjectsMetricDescriptorsCreate" "Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create" "gogol-monitoring-0.4.0-2c26UZAXxP5IDqve62RFQh" False) (C1 (MetaCons "ProjectsMetricDescriptorsCreate'" PrefixI True) ((S1 (MetaSel (Just "_pmdcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pmdcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pmdcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pmdcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pmdcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MetricDescriptor)) :*: (S1 (MetaSel (Just "_pmdcName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pmdcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

type Scopes ProjectsMetricDescriptorsCreate = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/monitoring" ': ("https://www.googleapis.com/auth/monitoring.write" ': ([] :: [Symbol])))
type Rs ProjectsMetricDescriptorsCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create

Request Lenses

pmdcUploadProtocol :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pmdcUploadType :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pmdcName :: Lens' ProjectsMetricDescriptorsCreate Text Source #

The project on which to execute the request. The format is "projects/{project_id_or_number}".