Skip to content

Commit

Permalink
feat(client-xray): Add StartTime field in GetTraceSummaries API respo…
Browse files Browse the repository at this point in the history
…nse for each TraceSummary.
  • Loading branch information
awstools committed Sep 13, 2023
1 parent 1da1226 commit a721414
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface GetTraceSummariesCommandOutput extends GetTraceSummariesResult,
* // TraceSummaries: [ // TraceSummaryList
* // { // TraceSummary
* // Id: "STRING_VALUE",
* // StartTime: new Date("TIMESTAMP"),
* // Duration: Number("double"),
* // ResponseTime: Number("double"),
* // HasFault: true || false,
Expand Down
6 changes: 6 additions & 0 deletions clients/client-xray/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2720,6 +2720,12 @@ export interface TraceSummary {
*/
Id?: string;

/**
* @public
* <p>The start time of a trace, based on the earliest trace segment start time.</p>
*/
StartTime?: Date;

/**
* @public
* <p>The length of time in seconds between the start time of the root segment and the end
Expand Down
1 change: 1 addition & 0 deletions clients/client-xray/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3477,6 +3477,7 @@ const de_TraceSummary = (output: any, context: __SerdeContext): TraceSummary =>
ResponseTimeRootCauses: (_: any) => de_ResponseTimeRootCauses(_, context),
Revision: __expectInt32,
ServiceIds: _json,
StartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
Users: _json,
}) as any;
};
Expand Down
8 changes: 7 additions & 1 deletion codegen/sdk-codegen/aws-models/xray.json
Original file line number Diff line number Diff line change
Expand Up @@ -5716,6 +5716,12 @@
"smithy.api#documentation": "<p>The unique identifier for the request that generated the trace's segments and\n subsegments.</p>"
}
},
"StartTime": {
"target": "com.amazonaws.xray#Timestamp",
"traits": {
"smithy.api#documentation": "<p>The start time of a trace, based on the earliest trace segment start time.</p>"
}
},
"Duration": {
"target": "com.amazonaws.xray#NullableDouble",
"traits": {
Expand Down Expand Up @@ -6165,4 +6171,4 @@
}
}
}
}
}

0 comments on commit a721414

Please sign in to comment.