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 |
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
- 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)))))))))
- projectsTimeSeriesCreate :: CreateTimeSeriesRequest -> Text -> ProjectsTimeSeriesCreate
- data ProjectsTimeSeriesCreate
- ptscXgafv :: Lens' ProjectsTimeSeriesCreate (Maybe Xgafv)
- ptscUploadProtocol :: Lens' ProjectsTimeSeriesCreate (Maybe Text)
- ptscAccessToken :: Lens' ProjectsTimeSeriesCreate (Maybe Text)
- ptscUploadType :: Lens' ProjectsTimeSeriesCreate (Maybe Text)
- ptscPayload :: Lens' ProjectsTimeSeriesCreate CreateTimeSeriesRequest
- ptscName :: Lens' ProjectsTimeSeriesCreate Text
- ptscCallback :: Lens' ProjectsTimeSeriesCreate (Maybe Text)
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
Request Lenses
ptscUploadProtocol :: Lens' ProjectsTimeSeriesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptscAccessToken :: Lens' ProjectsTimeSeriesCreate (Maybe Text) Source #
OAuth access token.
ptscUploadType :: Lens' ProjectsTimeSeriesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptscPayload :: Lens' ProjectsTimeSeriesCreate CreateTimeSeriesRequest Source #
Multipart request metadata.
ptscName :: Lens' ProjectsTimeSeriesCreate Text Source #
The project on which to execute the request. The format is "projects/{project_id_or_number}".
ptscCallback :: Lens' ProjectsTimeSeriesCreate (Maybe Text) Source #
JSONP