Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
.
- type TimeseriesWriteResource = "cloudmonitoring" :> ("v2beta2" :> ("projects" :> (Capture "project" Text :> ("timeseries:write" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WriteTimeseriesRequest :> Post '[JSON] WriteTimeseriesResponse))))))
- timeseriesWrite :: Text -> WriteTimeseriesRequest -> TimeseriesWrite
- data TimeseriesWrite
- twProject :: Lens' TimeseriesWrite Text
- twPayload :: Lens' TimeseriesWrite WriteTimeseriesRequest
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
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.
twPayload :: Lens' TimeseriesWrite WriteTimeseriesRequest Source #
Multipart request metadata.