gogol-cloudtrace-0.0.1: Google Cloud Trace SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.CloudTrace

Contents

Description

The Google Cloud Trace API provides services for reading and writing runtime trace data for Cloud applications.

See: Google Cloud Trace API Reference

Synopsis

Service Configuration

cloudTraceService :: Service Source

Default request referring to version v1 of the Google Cloud Trace API. This contains the host and root path used as a starting point for constructing service requests.

API Declaration

type CloudTraceAPI = GetDiscoveryResource :<|> (ProjectsTracesListResource :<|> (ProjectsTracesGetResource :<|> ProjectsPatchTracesResource)) Source

Represents the entirety of the methods and resources available for the Google Cloud Trace API service.

Resources

cloudtrace.getDiscovery

cloudtrace.projects.patchTraces

cloudtrace.projects.traces.get

cloudtrace.projects.traces.list

Types

Empty

data Empty Source

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.

See: empty smart constructor.

empty :: Empty Source

Creates a value of Empty with the minimum fields required to make a request.

TraceSpanLabels

traceSpanLabels Source

Creates a value of TraceSpanLabels with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Traces

data Traces Source

A list of traces for the PatchTraces method.

See: traces smart constructor.

traces :: Traces Source

Creates a value of Traces with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tTraces :: Lens' Traces [Trace] Source

A list of traces.

TraceSpan

data TraceSpan Source

A span is the data recorded with a single span.

See: traceSpan smart constructor.

traceSpan :: TraceSpan Source

Creates a value of TraceSpan with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tsStartTime :: Lens' TraceSpan (Maybe Text) Source

The start time of the span in nanoseconds from the UNIX epoch.

tsKind :: Lens' TraceSpan (Maybe Text) Source

SpanKind distinguishes spans generated in a particular context. For example, two spans with the same name, one with the kind RPC_CLIENT, and the other with RPC_SERVER can indicate the queueing latency associated with the span.

tsName :: Lens' TraceSpan (Maybe Text) Source

The name of the trace. This is sanitized and displayed on the UI. This may be a method name or some other per-callsite name. For the same binary and the same call point, it is a good practice to choose a consistent name in order to correlate cross-trace spans.

tsEndTime :: Lens' TraceSpan (Maybe Text) Source

The end time of the span in nanoseconds from the UNIX epoch.

tsLabels :: Lens' TraceSpan (Maybe TraceSpanLabels) Source

Annotations via labels.

tsParentSpanId :: Lens' TraceSpan (Maybe Word64) Source

Identifies the parent of the current span. May be missing. Serialized bytes representation of SpanId.

tsSpanId :: Lens' TraceSpan (Maybe Word64) Source

Identifier of the span within the trace. Each span should have an identifier that is unique per trace.

ListTracesResponse

listTracesResponse :: ListTracesResponse Source

Creates a value of ListTracesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ltrNextPageToken :: Lens' ListTracesResponse (Maybe Text) Source

If defined, indicates that there are more topics that match the request, and this value should be passed to the next ListTopicsRequest to continue.

ltrTraces :: Lens' ListTracesResponse [Trace] Source

The list of trace records returned.

Trace

data Trace Source

A Trace is a collection of spans describing the execution timings of a single operation.

See: trace smart constructor.

trace :: Trace Source

Creates a value of Trace with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tTraceId :: Lens' Trace (Maybe Text) Source

A 128-bit numeric value, formatted as a 32-byte hex string, that represents a trace. Each trace should have an identifier that is globally unique.

tSpans :: Lens' Trace [TraceSpan] Source

The collection of span records within this trace. Spans that appear in calls to PatchTraces may be incomplete or partial.

tProjectId :: Lens' Trace (Maybe Text) Source

The Project ID of the Google Cloud project.