gogol-cloudmonitoring-0.3.0: Google Cloud 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.CloudMonitoring.Timeseries.Write

Contents

Description

Put data points to one or more time series for one or more metrics. If a time series does not exist, a new time series will be created. It is not allowed to write a time series point that is older than the existing youngest point of that time series. Points that are older than the existing youngest point of that time series will be discarded silently. Therefore, users should make sure that points of a time series are written sequentially in the order of their end time.

See: Cloud Monitoring API Reference for cloudmonitoring.timeseries.write.

Synopsis

REST Resource

type TimeseriesWriteResource = "cloudmonitoring" :> ("v2beta2" :> ("projects" :> (Capture "project" Text :> ("timeseries:write" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WriteTimeseriesRequest :> Post '[JSON] WriteTimeseriesResponse)))))) Source #

A resource alias for cloudmonitoring.timeseries.write method which the TimeseriesWrite request conforms to.

Creating a Request

timeseriesWrite Source #

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

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

data TimeseriesWrite Source #

Put data points to one or more time series for one or more metrics. If a time series does not exist, a new time series will be created. It is not allowed to write a time series point that is older than the existing youngest point of that time series. Points that are older than the existing youngest point of that time series will be discarded silently. Therefore, users should make sure that points of a time series are written sequentially in the order of their end time.

See: timeseriesWrite smart constructor.

Instances

Eq TimeseriesWrite Source # 
Data TimeseriesWrite Source # 

Methods

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

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

toConstr :: TimeseriesWrite -> Constr #

dataTypeOf :: TimeseriesWrite -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TimeseriesWrite Source # 
Generic TimeseriesWrite Source # 
GoogleRequest TimeseriesWrite Source # 
type Rep TimeseriesWrite Source # 
type Rep TimeseriesWrite = D1 (MetaData "TimeseriesWrite" "Network.Google.Resource.CloudMonitoring.Timeseries.Write" "gogol-cloudmonitoring-0.3.0-DmCJWT7AZykHwyglp7dGn2" False) (C1 (MetaCons "TimeseriesWrite'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_twProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_twPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 WriteTimeseriesRequest))))
type Scopes TimeseriesWrite Source # 
type Scopes TimeseriesWrite = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/monitoring" ([] Symbol))
type Rs TimeseriesWrite Source # 

Request Lenses

twProject :: Lens' TimeseriesWrite Text Source #

The project ID. The value can be the numeric project ID or string-based project name.