Skip to content

Commit a721414

Browse files
author
awstools
committed
feat(client-xray): Add StartTime field in GetTraceSummaries API response for each TraceSummary.
1 parent 1da1226 commit a721414

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

clients/client-xray/src/commands/GetTraceSummariesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export interface GetTraceSummariesCommandOutput extends GetTraceSummariesResult,
7777
* // TraceSummaries: [ // TraceSummaryList
7878
* // { // TraceSummary
7979
* // Id: "STRING_VALUE",
80+
* // StartTime: new Date("TIMESTAMP"),
8081
* // Duration: Number("double"),
8182
* // ResponseTime: Number("double"),
8283
* // HasFault: true || false,

clients/client-xray/src/models/models_0.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2720,6 +2720,12 @@ export interface TraceSummary {
27202720
*/
27212721
Id?: string;
27222722

2723+
/**
2724+
* @public
2725+
* <p>The start time of a trace, based on the earliest trace segment start time.</p>
2726+
*/
2727+
StartTime?: Date;
2728+
27232729
/**
27242730
* @public
27252731
* <p>The length of time in seconds between the start time of the root segment and the end

clients/client-xray/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3477,6 +3477,7 @@ const de_TraceSummary = (output: any, context: __SerdeContext): TraceSummary =>
34773477
ResponseTimeRootCauses: (_: any) => de_ResponseTimeRootCauses(_, context),
34783478
Revision: __expectInt32,
34793479
ServiceIds: _json,
3480+
StartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
34803481
Users: _json,
34813482
}) as any;
34823483
};

codegen/sdk-codegen/aws-models/xray.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5716,6 +5716,12 @@
57165716
"smithy.api#documentation": "<p>The unique identifier for the request that generated the trace's segments and\n subsegments.</p>"
57175717
}
57185718
},
5719+
"StartTime": {
5720+
"target": "com.amazonaws.xray#Timestamp",
5721+
"traits": {
5722+
"smithy.api#documentation": "<p>The start time of a trace, based on the earliest trace segment start time.</p>"
5723+
}
5724+
},
57195725
"Duration": {
57205726
"target": "com.amazonaws.xray#NullableDouble",
57215727
"traits": {
@@ -6165,4 +6171,4 @@
61656171
}
61666172
}
61676173
}
6168-
}
6174+
}

0 commit comments

Comments
 (0)