XRayClient Class

(QtAws::XRay::XRayClient)

The XRayClient class provides access to the AWS X-Ray service. More...

Header: #include <XRayClient>
Inherits: QtAws::Core::AwsAbstractClient

Public Functions

XRayClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)
XRayClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)

Public Slots

BatchGetTracesResponse *batchGetTraces(const BatchGetTracesRequest &request)
GetEncryptionConfigResponse *getEncryptionConfig(const GetEncryptionConfigRequest &request)
GetServiceGraphResponse *getServiceGraph(const GetServiceGraphRequest &request)
GetTraceGraphResponse *getTraceGraph(const GetTraceGraphRequest &request)
GetTraceSummariesResponse *getTraceSummaries(const GetTraceSummariesRequest &request)
PutEncryptionConfigResponse *putEncryptionConfig(const PutEncryptionConfigRequest &request)
PutTelemetryRecordsResponse *putTelemetryRecords(const PutTelemetryRecordsRequest &request)
PutTraceSegmentsResponse *putTraceSegments(const PutTraceSegmentsRequest &request)

Additional Inherited Members

Detailed Description

The XRayClient class provides access to the AWS X-Ray service.

AWS X-Ray provides APIs for managing debug traces and retrieving service maps and other data created by processing those

Member Function Documentation

XRayClient::XRayClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)

Constructs a XRayClient object.

The new client object will region, credentials, and manager for network operations.

The new object will be owned by parent, if set.

XRayClient::XRayClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)

This function overloads XRayClient().

This overload allows the caller to specify the specific endpoint to send requests to. Typically, it is easier to use the alternative constructor, which allows the caller to specify an AWS region instead, in which case this client will determine the correct endpoint for the given region automatically (via AwsEndpoint::getEndpoint).

See also QtAws::Core::AwsEndpoint::getEndpoint.

[slot] BatchGetTracesResponse *XRayClient::batchGetTraces(const BatchGetTracesRequest &request)

Sends request to the XRayClient service, and returns a pointer to an BatchGetTracesResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Retrieves a list of traces specified by ID. Each trace is a collection of segment documents that originates from a single request. Use <code>GetTraceSummaries</code> to get a list of trace

[slot] GetEncryptionConfigResponse *XRayClient::getEncryptionConfig(const GetEncryptionConfigRequest &request)

Sends request to the XRayClient service, and returns a pointer to an GetEncryptionConfigResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Retrieves the current encryption configuration for X-Ray

[slot] GetServiceGraphResponse *XRayClient::getServiceGraph(const GetServiceGraphRequest &request)

Sends request to the XRayClient service, and returns a pointer to an GetServiceGraphResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the AWS X-Ray SDK. Downstream services can be other applications, AWS resources, HTTP web APIs, or SQL

[slot] GetTraceGraphResponse *XRayClient::getTraceGraph(const GetTraceGraphRequest &request)

Sends request to the XRayClient service, and returns a pointer to an GetTraceGraphResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Retrieves a service graph for one or more specific trace

[slot] GetTraceSummariesResponse *XRayClient::getTraceSummaries(const GetTraceSummariesRequest &request)

Sends request to the XRayClient service, and returns a pointer to an GetTraceSummariesResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Retrieves IDs and metadata for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to

<code>BatchGetTraces</code>>

A filter expression can target traced requests that hit specific service nodes or edges, have errors, or come from a known user. For example, the following filter expression targets traces that pass through

<code>api.example.com</code>>

<code>service("api.example.com")</code>

</p

This filter expression finds traces that have an annotation named <code>account</code> with the value

<code>12345</code>>

<code>annotation.account = "12345"</code>

</p

For a full list of indexed fields and keywords that you can use in filter expressions, see <a href="http://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html">Using Filter Expressions</a> in the <i>AWS X-Ray Developer

[slot] PutEncryptionConfigResponse *XRayClient::putEncryptionConfig(const PutEncryptionConfigRequest &request)

Sends request to the XRayClient service, and returns a pointer to an PutEncryptionConfigResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Updates the encryption configuration for X-Ray

[slot] PutTelemetryRecordsResponse *XRayClient::putTelemetryRecords(const PutTelemetryRecordsRequest &request)

Sends request to the XRayClient service, and returns a pointer to an PutTelemetryRecordsResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Used by the AWS X-Ray daemon to upload

[slot] PutTraceSegmentsResponse *XRayClient::putTraceSegments(const PutTraceSegmentsRequest &request)

Sends request to the XRayClient service, and returns a pointer to an PutTraceSegmentsResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches. A segment document can be a completed segment, an in-progress segment, or an array of

subsegments>

Segments must include the following fields. For the full segment document schema, see <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html">AWS X-Ray Segment Documents</a> in the <i>AWS X-Ray Developer

Guide</i>> <p class="title"> <b>Required Segment Document Fields</b>

</p <ul> <li>

<code>name</code> - The name of the service that handled the

request> </li> <li>

<code>id</code> - A 64-bit identifier for the segment, unique among segments in the same trace, in 16 hexadecimal

digits> </li> <li>

<code>trace_id</code> - A unique identifier that connects all segments and subsegments originating from a single client

request> </li> <li>

<code>start_time</code> - Time the segment or subsegment was created, in floating point seconds in epoch time, accurate to milliseconds. For example, <code>1480615200.010</code> or

<code>1.480615200010E9</code>> </li> <li>

<code>end_time</code> - Time the segment or subsegment was closed. For example, <code>1480615200.090</code> or <code>1.480615200090E9</code>. Specify either an <code>end_time</code> or

<code>in_progress</code>> </li> <li>

<code>in_progress</code> - Set to <code>true</code> instead of specifying an <code>end_time</code> to record that a segment has been started, but is not complete. Send an in progress segment when your application receives a request that will take a long time to serve, to trace the fact that the request was received. When the response is sent, send the complete segment to overwrite the in-progress

segment> </li> </ul>

A <code>trace_id</code> consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This

includes> <p class="title"> <b>Trace ID Format</b>

</p <ul> <li>

The version number, i.e.

<code>1</code>> </li> <li>

The time of the original request, in Unix epoch time, in 8 hexadecimal digits. For example, 10:00AM December 2nd, 2016 PST in epoch time is <code>1480615200</code> seconds, or <code>58406520</code> in

hexadecimal> </li> <li>

A 96-bit identifier for the trace, globally unique, in 24 hexadecimal

© 2018 Paul Colby Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.