| 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 |
Network.Google.Resource.CloudTrace.Projects.Traces.Spans.CreateSpan
Description
Creates a new span.
See: Stackdriver Trace API Reference for cloudtrace.projects.traces.spans.createSpan.
Synopsis
- type ProjectsTracesSpansCreateSpanResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Span :> Post '[JSON] Span))))))))
- projectsTracesSpansCreateSpan :: Span -> Text -> ProjectsTracesSpansCreateSpan
- data ProjectsTracesSpansCreateSpan
- ptscsXgafv :: Lens' ProjectsTracesSpansCreateSpan (Maybe Xgafv)
- ptscsUploadProtocol :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text)
- ptscsAccessToken :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text)
- ptscsUploadType :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text)
- ptscsPayload :: Lens' ProjectsTracesSpansCreateSpan Span
- ptscsName :: Lens' ProjectsTracesSpansCreateSpan Text
- ptscsCallback :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text)
REST Resource
type ProjectsTracesSpansCreateSpanResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Span :> Post '[JSON] Span)))))))) Source #
A resource alias for cloudtrace.projects.traces.spans.createSpan method which the
ProjectsTracesSpansCreateSpan request conforms to.
Creating a Request
projectsTracesSpansCreateSpan Source #
Arguments
| :: Span | |
| -> Text | |
| -> ProjectsTracesSpansCreateSpan |
Creates a value of ProjectsTracesSpansCreateSpan with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTracesSpansCreateSpan Source #
Creates a new span.
See: projectsTracesSpansCreateSpan smart constructor.
Instances
Request Lenses
ptscsXgafv :: Lens' ProjectsTracesSpansCreateSpan (Maybe Xgafv) Source #
V1 error format.
ptscsUploadProtocol :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptscsAccessToken :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text) Source #
OAuth access token.
ptscsUploadType :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptscsPayload :: Lens' ProjectsTracesSpansCreateSpan Span Source #
Multipart request metadata.
ptscsName :: Lens' ProjectsTracesSpansCreateSpan Text Source #
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
ptscsCallback :: Lens' ProjectsTracesSpansCreateSpan (Maybe Text) Source #
JSONP