gogol-monitoring-0.5.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.TimeSeries.Create

Contents

Description

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

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

Synopsis

REST Resource

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

A resource alias for monitoring.projects.timeSeries.create method which the ProjectsTimeSeriesCreate request conforms to.

Creating a Request

projectsTimeSeriesCreate Source #

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

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

data ProjectsTimeSeriesCreate Source #

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

See: projectsTimeSeriesCreate smart constructor.

Instances
Eq ProjectsTimeSeriesCreate Source # 
Instance details

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

Data ProjectsTimeSeriesCreate Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsTimeSeriesCreate -> Constr #

dataTypeOf :: ProjectsTimeSeriesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsTimeSeriesCreate Source # 
Instance details

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

Generic ProjectsTimeSeriesCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsTimeSeriesCreate :: Type -> Type #

GoogleRequest ProjectsTimeSeriesCreate Source # 
Instance details

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

type Rep ProjectsTimeSeriesCreate Source # 
Instance details

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

type Rep ProjectsTimeSeriesCreate = D1 (MetaData "ProjectsTimeSeriesCreate" "Network.Google.Resource.Monitoring.Projects.TimeSeries.Create" "gogol-monitoring-0.5.0-8BEIaK0A2dpLU9Sl7hmnOg" False) (C1 (MetaCons "ProjectsTimeSeriesCreate'" PrefixI True) ((S1 (MetaSel (Just "_ptscXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_ptscUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptscAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ptscUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptscPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateTimeSeriesRequest)) :*: (S1 (MetaSel (Just "_ptscName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ptscCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsTimeSeriesCreate Source # 
Instance details

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

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

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

Request Lenses

ptscUploadProtocol :: Lens' ProjectsTimeSeriesCreate (Maybe Text) Source #

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

ptscUploadType :: Lens' ProjectsTimeSeriesCreate (Maybe Text) Source #

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

ptscName :: Lens' ProjectsTimeSeriesCreate Text Source #

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