Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves IDs and annotations for traces available for a specified time
frame using an optional filter. To get the full traces, pass the trace
IDs to BatchGetTraces
.
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
api.example.com
:
service("api.example.com")
This filter expression finds traces that have an annotation named
account
with the value 12345
:
annotation.account = "12345"
For a full list of indexed fields and keywords that you can use in filter expressions, see Using Filter Expressions in the Amazon Web Services X-Ray Developer Guide.
This operation returns paginated results.
Synopsis
- data GetTraceSummaries = GetTraceSummaries' {}
- newGetTraceSummaries :: UTCTime -> UTCTime -> GetTraceSummaries
- getTraceSummaries_filterExpression :: Lens' GetTraceSummaries (Maybe Text)
- getTraceSummaries_nextToken :: Lens' GetTraceSummaries (Maybe Text)
- getTraceSummaries_timeRangeType :: Lens' GetTraceSummaries (Maybe TimeRangeType)
- getTraceSummaries_samplingStrategy :: Lens' GetTraceSummaries (Maybe SamplingStrategy)
- getTraceSummaries_sampling :: Lens' GetTraceSummaries (Maybe Bool)
- getTraceSummaries_startTime :: Lens' GetTraceSummaries UTCTime
- getTraceSummaries_endTime :: Lens' GetTraceSummaries UTCTime
- data GetTraceSummariesResponse = GetTraceSummariesResponse' {}
- newGetTraceSummariesResponse :: Int -> GetTraceSummariesResponse
- getTraceSummariesResponse_tracesProcessedCount :: Lens' GetTraceSummariesResponse (Maybe Integer)
- getTraceSummariesResponse_nextToken :: Lens' GetTraceSummariesResponse (Maybe Text)
- getTraceSummariesResponse_approximateTime :: Lens' GetTraceSummariesResponse (Maybe UTCTime)
- getTraceSummariesResponse_traceSummaries :: Lens' GetTraceSummariesResponse (Maybe [TraceSummary])
- getTraceSummariesResponse_httpStatus :: Lens' GetTraceSummariesResponse Int
Creating a Request
data GetTraceSummaries Source #
See: newGetTraceSummaries
smart constructor.
GetTraceSummaries' | |
|
Instances
:: UTCTime | |
-> UTCTime | |
-> GetTraceSummaries |
Create a value of GetTraceSummaries
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:filterExpression:GetTraceSummaries'
, getTraceSummaries_filterExpression
- Specify a filter expression to retrieve trace summaries for services or
requests that meet certain requirements.
$sel:nextToken:GetTraceSummaries'
, getTraceSummaries_nextToken
- Specify the pagination token returned by a previous request to retrieve
the next page of results.
$sel:timeRangeType:GetTraceSummaries'
, getTraceSummaries_timeRangeType
- A parameter to indicate whether to query trace summaries by TraceId or
Event time.
$sel:samplingStrategy:GetTraceSummaries'
, getTraceSummaries_samplingStrategy
- A parameter to indicate whether to enable sampling on trace summaries.
Input parameters are Name and Value.
$sel:sampling:GetTraceSummaries'
, getTraceSummaries_sampling
- Set to true
to get summaries for only a subset of available traces.
$sel:startTime:GetTraceSummaries'
, getTraceSummaries_startTime
- The start of the time frame for which to retrieve traces.
$sel:endTime:GetTraceSummaries'
, getTraceSummaries_endTime
- The end of the time frame for which to retrieve traces.
Request Lenses
getTraceSummaries_filterExpression :: Lens' GetTraceSummaries (Maybe Text) Source #
Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements.
getTraceSummaries_nextToken :: Lens' GetTraceSummaries (Maybe Text) Source #
Specify the pagination token returned by a previous request to retrieve the next page of results.
getTraceSummaries_timeRangeType :: Lens' GetTraceSummaries (Maybe TimeRangeType) Source #
A parameter to indicate whether to query trace summaries by TraceId or Event time.
getTraceSummaries_samplingStrategy :: Lens' GetTraceSummaries (Maybe SamplingStrategy) Source #
A parameter to indicate whether to enable sampling on trace summaries. Input parameters are Name and Value.
getTraceSummaries_sampling :: Lens' GetTraceSummaries (Maybe Bool) Source #
Set to true
to get summaries for only a subset of available traces.
getTraceSummaries_startTime :: Lens' GetTraceSummaries UTCTime Source #
The start of the time frame for which to retrieve traces.
getTraceSummaries_endTime :: Lens' GetTraceSummaries UTCTime Source #
The end of the time frame for which to retrieve traces.
Destructuring the Response
data GetTraceSummariesResponse Source #
See: newGetTraceSummariesResponse
smart constructor.
GetTraceSummariesResponse' | |
|
Instances
newGetTraceSummariesResponse Source #
Create a value of GetTraceSummariesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tracesProcessedCount:GetTraceSummariesResponse'
, getTraceSummariesResponse_tracesProcessedCount
- The total number of traces processed, including traces that did not
match the specified filter expression.
$sel:nextToken:GetTraceSummaries'
, getTraceSummariesResponse_nextToken
- If the requested time frame contained more than one page of results, you
can use this token to retrieve the next page. The first page contains
the most recent results, closest to the end of the time frame.
$sel:approximateTime:GetTraceSummariesResponse'
, getTraceSummariesResponse_approximateTime
- The start time of this page of results.
$sel:traceSummaries:GetTraceSummariesResponse'
, getTraceSummariesResponse_traceSummaries
- Trace IDs and annotations for traces that were found in the specified
time frame.
$sel:httpStatus:GetTraceSummariesResponse'
, getTraceSummariesResponse_httpStatus
- The response's http status code.
Response Lenses
getTraceSummariesResponse_tracesProcessedCount :: Lens' GetTraceSummariesResponse (Maybe Integer) Source #
The total number of traces processed, including traces that did not match the specified filter expression.
getTraceSummariesResponse_nextToken :: Lens' GetTraceSummariesResponse (Maybe Text) Source #
If the requested time frame contained more than one page of results, you can use this token to retrieve the next page. The first page contains the most recent results, closest to the end of the time frame.
getTraceSummariesResponse_approximateTime :: Lens' GetTraceSummariesResponse (Maybe UTCTime) Source #
The start time of this page of results.
getTraceSummariesResponse_traceSummaries :: Lens' GetTraceSummariesResponse (Maybe [TraceSummary]) Source #
Trace IDs and annotations for traces that were found in the specified time frame.
getTraceSummariesResponse_httpStatus :: Lens' GetTraceSummariesResponse Int Source #
The response's http status code.