| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.XRay.GetSamplingTargets
Description
Requests a sampling quota for rules that the service is using to sample requests.
Synopsis
- data GetSamplingTargets = GetSamplingTargets' {}
- newGetSamplingTargets :: GetSamplingTargets
- getSamplingTargets_samplingStatisticsDocuments :: Lens' GetSamplingTargets [SamplingStatisticsDocument]
- data GetSamplingTargetsResponse = GetSamplingTargetsResponse' {}
- newGetSamplingTargetsResponse :: Int -> GetSamplingTargetsResponse
- getSamplingTargetsResponse_lastRuleModification :: Lens' GetSamplingTargetsResponse (Maybe UTCTime)
- getSamplingTargetsResponse_samplingTargetDocuments :: Lens' GetSamplingTargetsResponse (Maybe [SamplingTargetDocument])
- getSamplingTargetsResponse_unprocessedStatistics :: Lens' GetSamplingTargetsResponse (Maybe [UnprocessedStatistics])
- getSamplingTargetsResponse_httpStatus :: Lens' GetSamplingTargetsResponse Int
Creating a Request
data GetSamplingTargets Source #
See: newGetSamplingTargets smart constructor.
Constructors
| GetSamplingTargets' | |
Fields
| |
Instances
newGetSamplingTargets :: GetSamplingTargets Source #
Create a value of GetSamplingTargets 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:samplingStatisticsDocuments:GetSamplingTargets', getSamplingTargets_samplingStatisticsDocuments - Information about rules that the service is using to sample requests.
Request Lenses
getSamplingTargets_samplingStatisticsDocuments :: Lens' GetSamplingTargets [SamplingStatisticsDocument] Source #
Information about rules that the service is using to sample requests.
Destructuring the Response
data GetSamplingTargetsResponse Source #
See: newGetSamplingTargetsResponse smart constructor.
Constructors
| GetSamplingTargetsResponse' | |
Fields
| |
Instances
newGetSamplingTargetsResponse Source #
Arguments
| :: Int | |
| -> GetSamplingTargetsResponse |
Create a value of GetSamplingTargetsResponse 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:lastRuleModification:GetSamplingTargetsResponse', getSamplingTargetsResponse_lastRuleModification - The last time a user changed the sampling rule configuration. If the
sampling rule configuration changed since the service last retrieved it,
the service should call
GetSamplingRules
to get the latest version.
$sel:samplingTargetDocuments:GetSamplingTargetsResponse', getSamplingTargetsResponse_samplingTargetDocuments - Updated rules that the service should use to sample requests.
$sel:unprocessedStatistics:GetSamplingTargetsResponse', getSamplingTargetsResponse_unprocessedStatistics - Information about
SamplingStatisticsDocument
that X-Ray could not process.
GetSamplingTargetsResponse, getSamplingTargetsResponse_httpStatus - The response's http status code.
Response Lenses
getSamplingTargetsResponse_lastRuleModification :: Lens' GetSamplingTargetsResponse (Maybe UTCTime) Source #
The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version.
getSamplingTargetsResponse_samplingTargetDocuments :: Lens' GetSamplingTargetsResponse (Maybe [SamplingTargetDocument]) Source #
Updated rules that the service should use to sample requests.
getSamplingTargetsResponse_unprocessedStatistics :: Lens' GetSamplingTargetsResponse (Maybe [UnprocessedStatistics]) Source #
Information about SamplingStatisticsDocument that X-Ray could not process.
getSamplingTargetsResponse_httpStatus :: Lens' GetSamplingTargetsResponse Int Source #
The response's http status code.