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 traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.
See: Google Cloud Trace API Reference for cloudtrace.projects.patchTraces
.
- type ProjectsPatchTracesResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("traces" :> (QueryParam "$.xgafv" Text :> (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] Traces :> Patch '[JSON] Empty))))))))))))
- projectsPatchTraces :: Traces -> Text -> ProjectsPatchTraces
- data ProjectsPatchTraces
- pptXgafv :: Lens' ProjectsPatchTraces (Maybe Text)
- pptUploadProtocol :: Lens' ProjectsPatchTraces (Maybe Text)
- pptPp :: Lens' ProjectsPatchTraces Bool
- pptAccessToken :: Lens' ProjectsPatchTraces (Maybe Text)
- pptUploadType :: Lens' ProjectsPatchTraces (Maybe Text)
- pptPayload :: Lens' ProjectsPatchTraces Traces
- pptBearerToken :: Lens' ProjectsPatchTraces (Maybe Text)
- pptProjectId :: Lens' ProjectsPatchTraces Text
- pptCallback :: Lens' ProjectsPatchTraces (Maybe Text)
REST Resource
type ProjectsPatchTracesResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("traces" :> (QueryParam "$.xgafv" Text :> (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] Traces :> Patch '[JSON] Empty)))))))))))) Source #
A resource alias for cloudtrace.projects.patchTraces
method which the
ProjectsPatchTraces
request conforms to.
Creating a Request
Creates a value of ProjectsPatchTraces
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsPatchTraces Source #
Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.
See: projectsPatchTraces
smart constructor.
Request Lenses
pptUploadProtocol :: Lens' ProjectsPatchTraces (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pptAccessToken :: Lens' ProjectsPatchTraces (Maybe Text) Source #
OAuth access token.
pptUploadType :: Lens' ProjectsPatchTraces (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pptPayload :: Lens' ProjectsPatchTraces Traces Source #
Multipart request metadata.
pptBearerToken :: Lens' ProjectsPatchTraces (Maybe Text) Source #
OAuth bearer token.
pptProjectId :: Lens' ProjectsPatchTraces Text Source #
ID of the Cloud project where the trace data is stored.
pptCallback :: Lens' ProjectsPatchTraces (Maybe Text) Source #
JSONP