gogol-logging-0.2.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 "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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 # 
Data ProjectsMetricsCreate Source # 

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 # 
Generic ProjectsMetricsCreate Source # 
GoogleRequest ProjectsMetricsCreate Source # 
type Rep ProjectsMetricsCreate Source # 
type Scopes ProjectsMetricsCreate Source # 
type Scopes ProjectsMetricsCreate = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/logging.admin" ((:) Symbol "https://www.googleapis.com/auth/logging.write" ([] Symbol)))
type Rs ProjectsMetricsCreate Source # 

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").

pmcPp :: Lens' ProjectsMetricsCreate Bool Source #

Pretty-print response.

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

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

pmcPayload :: Lens' ProjectsMetricsCreate LogMetric Source #

Multipart request metadata.