Skip to content

Commit

Permalink
feat(client-xray): This release enhances GetServiceGraph API to suppo…
Browse files Browse the repository at this point in the history
…rt new type of edge to represent links between SQS and Lambda in event-driven applications.
  • Loading branch information
awstools committed Nov 14, 2022
1 parent ae0500b commit 0963adb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
23 changes: 19 additions & 4 deletions clients/client-xray/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ export interface Trace {
Duration?: number;

/**
* <p>LimitExceeded is set to true when the trace has exceeded one of the defined quotas. For
* more information about quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/xray.html">Amazon Web Services X-Ray endpoints and quotas</a>.</p>
* <p>LimitExceeded is set to true when the trace has exceeded the <code>Trace document size</code> limit. For
* more information about this limit and other X-Ray limits and quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/xray.html">Amazon Web Services X-Ray endpoints and quotas</a>.</p>
*/
LimitExceeded?: boolean;

Expand Down Expand Up @@ -1448,7 +1448,9 @@ export interface EdgeStatistics {
}

/**
* <p>Information about a connection between two services.</p>
* <p>Information about a connection between two services. An edge can be a synchronous connection, such as typical
* call between client and service, or an asynchronous link, such as a Lambda function which retrieves an event from an
* SNS queue.</p>
*/
export interface Edge {
/**
Expand All @@ -1472,14 +1474,27 @@ export interface Edge {
SummaryStatistics?: EdgeStatistics;

/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
* <p>A histogram that maps the spread of client response times on an edge. Only populated
* for synchronous edges.</p>
*/
ResponseTimeHistogram?: HistogramEntry[];

/**
* <p>Aliases for the edge.</p>
*/
Aliases?: Alias[];

/**
* <p>Describes an asynchronous connection, with a value of <code>link</code>.</p>
*/
EdgeType?: string;

/**
* <p>A histogram that maps the spread of event age when received by consumers.
* Age is calculated each time an event is received. Only populated when <i>EdgeType</i> is
* <code>link</code>.</p>
*/
ReceivedEventAgeHistogram?: HistogramEntry[];
}

/**
Expand Down
5 changes: 5 additions & 0 deletions clients/client-xray/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2493,8 +2493,13 @@ const deserializeAws_restJson1AvailabilityZoneDetail = (
const deserializeAws_restJson1Edge = (output: any, context: __SerdeContext): Edge => {
return {
Aliases: output.Aliases != null ? deserializeAws_restJson1AliasList(output.Aliases, context) : undefined,
EdgeType: __expectString(output.EdgeType),
EndTime:
output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
ReceivedEventAgeHistogram:
output.ReceivedEventAgeHistogram != null
? deserializeAws_restJson1Histogram(output.ReceivedEventAgeHistogram, context)
: undefined,
ReferenceId: __expectInt32(output.ReferenceId),
ResponseTimeHistogram:
output.ResponseTimeHistogram != null
Expand Down

0 comments on commit 0963adb

Please sign in to comment.