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 Stackdriver Trace or updates existing traces. If the name of a trace that you send matches that of an existing trace, new spans are added to the existing trace. Attempt to update existing spans results undefined behavior. If the name does not match, a new trace is created with given set of spans.
See: Google Tracing API Reference for tracing.projects.traces.batchWrite
.
Synopsis
- type ProjectsTracesBatchWriteResource = "v2" :> (Capture "name" Text :> ("traces:batchWrite" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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)
- ptbwPp :: Lens' ProjectsTracesBatchWrite Bool
- ptbwAccessToken :: Lens' ProjectsTracesBatchWrite (Maybe Text)
- ptbwUploadType :: Lens' ProjectsTracesBatchWrite (Maybe Text)
- ptbwPayload :: Lens' ProjectsTracesBatchWrite BatchWriteSpansRequest
- ptbwBearerToken :: Lens' ProjectsTracesBatchWrite (Maybe Text)
- 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 "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchWriteSpansRequest :> Post '[JSON] Empty))))))))))) Source #
A resource alias for tracing.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 Stackdriver Trace or updates existing traces. If the name of a trace that you send matches that of an existing trace, new spans are added to the existing trace. Attempt to update existing spans results undefined behavior. If the name does not match, a new trace is created with given set of 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.
ptbwBearerToken :: Lens' ProjectsTracesBatchWrite (Maybe Text) Source #
OAuth bearer token.
ptbwName :: Lens' ProjectsTracesBatchWrite Text Source #
Name of the project where the spans belong to. Format is `projects/PROJECT_ID`.
ptbwCallback :: Lens' ProjectsTracesBatchWrite (Maybe Text) Source #
JSONP