gogol-monitoring-0.3.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.Categories.MetricAssociations.Create

Contents

Description

Create a MetricAssociation.

See: Stackdriver Monitoring API Reference for monitoring.projects.categories.metricAssociations.create.

Synopsis

REST Resource

type ProjectsCategoriesMetricAssociationsCreateResource = "v3" :> (Capture "parent" Text :> ("metricAssociations" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MetricAssociation :> Post '[JSON] MetricAssociation))))))))))) Source #

A resource alias for monitoring.projects.categories.metricAssociations.create method which the ProjectsCategoriesMetricAssociationsCreate request conforms to.

Creating a Request

data ProjectsCategoriesMetricAssociationsCreate Source #

Create a MetricAssociation.

See: projectsCategoriesMetricAssociationsCreate smart constructor.

Instances

Eq ProjectsCategoriesMetricAssociationsCreate Source # 
Data ProjectsCategoriesMetricAssociationsCreate Source # 

Methods

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

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

toConstr :: ProjectsCategoriesMetricAssociationsCreate -> Constr #

dataTypeOf :: ProjectsCategoriesMetricAssociationsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsCategoriesMetricAssociationsCreate Source # 
Generic ProjectsCategoriesMetricAssociationsCreate Source # 
GoogleRequest ProjectsCategoriesMetricAssociationsCreate Source # 
type Rep ProjectsCategoriesMetricAssociationsCreate Source # 
type Rep ProjectsCategoriesMetricAssociationsCreate = D1 (MetaData "ProjectsCategoriesMetricAssociationsCreate" "Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Create" "gogol-monitoring-0.3.0-IKEcNDS8vFXEWz92GSQ1Q9" False) (C1 (MetaCons "ProjectsCategoriesMetricAssociationsCreate'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pcmacParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pcmacXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)))) ((:*:) (S1 (MetaSel (Just Symbol "_pcmacUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pcmacPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pcmacAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pcmacUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_pcmacPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MetricAssociation)) ((:*:) (S1 (MetaSel (Just Symbol "_pcmacBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pcmacCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))
type Scopes ProjectsCategoriesMetricAssociationsCreate Source # 
type Scopes ProjectsCategoriesMetricAssociationsCreate = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/monitoring" ([] Symbol))
type Rs ProjectsCategoriesMetricAssociationsCreate Source # 

Request Lenses

pcmacParent :: Lens' ProjectsCategoriesMetricAssociationsCreate Text Source #

Resource parent of the category to get. Resource parent form is projects/{project_id_or_number}/categories/{short_name}.

pcmacUploadProtocol :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text) Source #

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

pcmacUploadType :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text) Source #

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