gogol-monitoring-0.0.1: Google Cloud Monitoring SDK.

Copyright(c) 2015 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.

Request Lenses

twProject :: Lens' TimeseriesWrite Text Source

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