Skip to content

Commit

Permalink
feat(client-xray): This releases enhances GetTraceSummaries API to su…
Browse files Browse the repository at this point in the history
…pport new TimeRangeType Service to query trace summaries by segment end time.
  • Loading branch information
awstools committed Oct 16, 2023
1 parent 6dc7cd7 commit 8da8457
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Expand Up @@ -63,7 +63,7 @@ export interface GetTraceSummariesCommandOutput extends GetTraceSummariesResult,
* const input = { // GetTraceSummariesRequest
* StartTime: new Date("TIMESTAMP"), // required
* EndTime: new Date("TIMESTAMP"), // required
* TimeRangeType: "TraceId" || "Event",
* TimeRangeType: "TraceId" || "Event" || "Service",
* Sampling: true || false,
* SamplingStrategy: { // SamplingStrategy
* Name: "PartialScan" || "FixedRate",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-xray/src/models/models_0.ts
Expand Up @@ -2295,6 +2295,7 @@ export interface SamplingStrategy {
*/
export const TimeRangeType = {
Event: "Event",
Service: "Service",
TraceId: "TraceId",
} as const;

Expand All @@ -2321,7 +2322,7 @@ export interface GetTraceSummariesRequest {

/**
* @public
* <p>A parameter to indicate whether to query trace summaries by TraceId or Event time.</p>
* <p>A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time).</p>
*/
TimeRangeType?: TimeRangeType;

Expand Down
8 changes: 7 additions & 1 deletion codegen/sdk-codegen/aws-models/xray.json
Expand Up @@ -3287,7 +3287,7 @@
"TimeRangeType": {
"target": "com.amazonaws.xray#TimeRangeType",
"traits": {
"smithy.api#documentation": "<p>A parameter to indicate whether to query trace summaries by TraceId or Event time.</p>"
"smithy.api#documentation": "<p>A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time).</p>"
}
},
"Sampling": {
Expand Down Expand Up @@ -5558,6 +5558,12 @@
"traits": {
"smithy.api#enumValue": "Event"
}
},
"Service": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "Service"
}
}
}
},
Expand Down

0 comments on commit 8da8457

Please sign in to comment.