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 |
Sends new spans to new or existing traces. You cannot update existing spans.
See: Stackdriver Trace API Reference for cloudtrace.projects.traces.batchWrite
.
Synopsis
- type ProjectsTracesBatchWriteResource = "v2" :> (Capture "name" Text :> ("traces:batchWrite" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchWriteSpansRequest :> Post '[JSON] Empty)))))))))
- projectsTracesBatchWrite :: BatchWriteSpansRequest -> Text -> ProjectsTracesBatchWrite
- data ProjectsTracesBatchWrite
- ptbwXgafv :: Lens' ProjectsTracesBatchWrite (Maybe Xgafv)
- ptbwUploadProtocol :: Lens' ProjectsTracesBatchWrite (Maybe Text)
- ptbwAccessToken :: Lens' ProjectsTracesBatchWrite (Maybe Text)
- ptbwUploadType :: Lens' ProjectsTracesBatchWrite (Maybe Text)
- ptbwPayload :: Lens' ProjectsTracesBatchWrite BatchWriteSpansRequest
- ptbwName :: Lens' ProjectsTracesBatchWrite Text
- ptbwCallback :: Lens' ProjectsTracesBatchWrite (Maybe Text)
REST Resource
type ProjectsTracesBatchWriteResource = "v2" :> (Capture "name" Text :> ("traces:batchWrite" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchWriteSpansRequest :> Post '[JSON] Empty))))))))) Source #
A resource alias for cloudtrace.projects.traces.batchWrite
method which the
ProjectsTracesBatchWrite
request conforms to.
Creating a Request
projectsTracesBatchWrite Source #
Creates a value of ProjectsTracesBatchWrite
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTracesBatchWrite Source #
Sends new spans to new or existing traces. You cannot update existing spans.
See: projectsTracesBatchWrite
smart constructor.
Instances
Request Lenses
ptbwUploadProtocol :: Lens' ProjectsTracesBatchWrite (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptbwAccessToken :: Lens' ProjectsTracesBatchWrite (Maybe Text) Source #
OAuth access token.
ptbwUploadType :: Lens' ProjectsTracesBatchWrite (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptbwPayload :: Lens' ProjectsTracesBatchWrite BatchWriteSpansRequest Source #
Multipart request metadata.
ptbwName :: Lens' ProjectsTracesBatchWrite Text Source #
Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`.
ptbwCallback :: Lens' ProjectsTracesBatchWrite (Maybe Text) Source #
JSONP