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 |
Creates a new Span.
See: Google Tracing API Reference for tracing.projects.traces.spans.create
.
Synopsis
- type ProjectsTracesSpansCreateResource = "v2" :> (Capture "name" Text :> (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] Span :> Put '[JSON] Span))))))))))
- projectsTracesSpansCreate :: Span -> Text -> ProjectsTracesSpansCreate
- data ProjectsTracesSpansCreate
- ptscXgafv :: Lens' ProjectsTracesSpansCreate (Maybe Xgafv)
- ptscUploadProtocol :: Lens' ProjectsTracesSpansCreate (Maybe Text)
- ptscPp :: Lens' ProjectsTracesSpansCreate Bool
- ptscAccessToken :: Lens' ProjectsTracesSpansCreate (Maybe Text)
- ptscUploadType :: Lens' ProjectsTracesSpansCreate (Maybe Text)
- ptscPayload :: Lens' ProjectsTracesSpansCreate Span
- ptscBearerToken :: Lens' ProjectsTracesSpansCreate (Maybe Text)
- ptscName :: Lens' ProjectsTracesSpansCreate Text
- ptscCallback :: Lens' ProjectsTracesSpansCreate (Maybe Text)
REST Resource
type ProjectsTracesSpansCreateResource = "v2" :> (Capture "name" Text :> (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] Span :> Put '[JSON] Span)))))))))) Source #
A resource alias for tracing.projects.traces.spans.create
method which the
ProjectsTracesSpansCreate
request conforms to.
Creating a Request
projectsTracesSpansCreate Source #
Creates a value of ProjectsTracesSpansCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTracesSpansCreate Source #
Creates a new Span.
See: projectsTracesSpansCreate
smart constructor.
Instances
Request Lenses
ptscUploadProtocol :: Lens' ProjectsTracesSpansCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptscAccessToken :: Lens' ProjectsTracesSpansCreate (Maybe Text) Source #
OAuth access token.
ptscUploadType :: Lens' ProjectsTracesSpansCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptscPayload :: Lens' ProjectsTracesSpansCreate Span Source #
Multipart request metadata.
ptscBearerToken :: Lens' ProjectsTracesSpansCreate (Maybe Text) Source #
OAuth bearer token.
ptscName :: Lens' ProjectsTracesSpansCreate Text Source #
The resource name of Span in the format `projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID`. `TRACE_ID` is a unique identifier for a trace within a project and is a base16-encoded, case-insensitive string and is required to be 32 char long. `SPAN_ID` is a unique identifier for a span within a trace. It is a base 16-encoded, case-insensitive string of a 8-bytes array and is required to be 16 char long.
ptscCallback :: Lens' ProjectsTracesSpansCreate (Maybe Text) Source #
JSONP