gogol-logging-0.4.0: Google Stackdriver Logging 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.Logging.Projects.Metrics.Create

Contents

Description

Creates a logs-based metric.

See: Stackdriver Logging API Reference for logging.projects.metrics.create.

Synopsis

REST Resource

type ProjectsMetricsCreateResource = "v2" :> (Capture "parent" Text :> ("metrics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogMetric :> Post '[JSON] LogMetric))))))))) Source #

A resource alias for logging.projects.metrics.create method which the ProjectsMetricsCreate request conforms to.

Creating a Request

projectsMetricsCreate Source #

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

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

data ProjectsMetricsCreate Source #

Creates a logs-based metric.

See: projectsMetricsCreate smart constructor.

Instances
Eq ProjectsMetricsCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

Data ProjectsMetricsCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

Methods

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

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

toConstr :: ProjectsMetricsCreate -> Constr #

dataTypeOf :: ProjectsMetricsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsMetricsCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

Generic ProjectsMetricsCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

Associated Types

type Rep ProjectsMetricsCreate :: Type -> Type #

GoogleRequest ProjectsMetricsCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

type Rep ProjectsMetricsCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

type Rep ProjectsMetricsCreate = D1 (MetaData "ProjectsMetricsCreate" "Network.Google.Resource.Logging.Projects.Metrics.Create" "gogol-logging-0.4.0-Fkqxms3wLZh247ErmYpvHr" False) (C1 (MetaCons "ProjectsMetricsCreate'" PrefixI True) ((S1 (MetaSel (Just "_pmcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pmcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pmcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pmcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pmcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pmcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 LogMetric) :*: S1 (MetaSel (Just "_pmcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsMetricsCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

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

Defined in Network.Google.Resource.Logging.Projects.Metrics.Create

Request Lenses

pmcParent :: Lens' ProjectsMetricsCreate Text Source #

The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.

pmcUploadProtocol :: Lens' ProjectsMetricsCreate (Maybe Text) Source #

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

pmcUploadType :: Lens' ProjectsMetricsCreate (Maybe Text) Source #

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

pmcPayload :: Lens' ProjectsMetricsCreate LogMetric Source #

Multipart request metadata.