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 |
Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)
See: Stackdriver Logging API Reference for logging.entries.write
.
Synopsis
- type EntriesWriteResource = "v2" :> ("entries:write" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WriteLogEntriesRequest :> Post '[JSON] WriteLogEntriesResponse))))))))
- entriesWrite :: WriteLogEntriesRequest -> EntriesWrite
- data EntriesWrite
- ewXgafv :: Lens' EntriesWrite (Maybe Xgafv)
- ewUploadProtocol :: Lens' EntriesWrite (Maybe Text)
- ewAccessToken :: Lens' EntriesWrite (Maybe Text)
- ewUploadType :: Lens' EntriesWrite (Maybe Text)
- ewPayload :: Lens' EntriesWrite WriteLogEntriesRequest
- ewCallback :: Lens' EntriesWrite (Maybe Text)
REST Resource
type EntriesWriteResource = "v2" :> ("entries:write" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WriteLogEntriesRequest :> Post '[JSON] WriteLogEntriesResponse)))))))) Source #
A resource alias for logging.entries.write
method which the
EntriesWrite
request conforms to.
Creating a Request
Creates a value of EntriesWrite
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EntriesWrite Source #
Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)
See: entriesWrite
smart constructor.
Instances
Request Lenses
ewUploadProtocol :: Lens' EntriesWrite (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ewAccessToken :: Lens' EntriesWrite (Maybe Text) Source #
OAuth access token.
ewUploadType :: Lens' EntriesWrite (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ewPayload :: Lens' EntriesWrite WriteLogEntriesRequest Source #
Multipart request metadata.
ewCallback :: Lens' EntriesWrite (Maybe Text) Source #
JSONP