| 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.Types.SamplingTargetDocument
Description
Synopsis
- data SamplingTargetDocument = SamplingTargetDocument' {}
- newSamplingTargetDocument :: SamplingTargetDocument
- samplingTargetDocument_fixedRate :: Lens' SamplingTargetDocument (Maybe Double)
- samplingTargetDocument_interval :: Lens' SamplingTargetDocument (Maybe Int)
- samplingTargetDocument_reservoirQuota :: Lens' SamplingTargetDocument (Maybe Int)
- samplingTargetDocument_reservoirQuotaTTL :: Lens' SamplingTargetDocument (Maybe UTCTime)
- samplingTargetDocument_ruleName :: Lens' SamplingTargetDocument (Maybe Text)
Documentation
data SamplingTargetDocument Source #
Temporary changes to a sampling rule configuration. To meet the global sampling target for a rule, X-Ray calculates a new reservoir for each service based on the recent sampling results of all services that called GetSamplingTargets.
See: newSamplingTargetDocument smart constructor.
Constructors
| SamplingTargetDocument' | |
Fields
| |
Instances
newSamplingTargetDocument :: SamplingTargetDocument Source #
Create a value of SamplingTargetDocument 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:fixedRate:SamplingTargetDocument', samplingTargetDocument_fixedRate - The percentage of matching requests to instrument, after the reservoir
is exhausted.
$sel:interval:SamplingTargetDocument', samplingTargetDocument_interval - The number of seconds for the service to wait before getting sampling
targets again.
$sel:reservoirQuota:SamplingTargetDocument', samplingTargetDocument_reservoirQuota - The number of requests per second that X-Ray allocated for this service.
$sel:reservoirQuotaTTL:SamplingTargetDocument', samplingTargetDocument_reservoirQuotaTTL - When the reservoir quota expires.
$sel:ruleName:SamplingTargetDocument', samplingTargetDocument_ruleName - The name of the sampling rule.
samplingTargetDocument_fixedRate :: Lens' SamplingTargetDocument (Maybe Double) Source #
The percentage of matching requests to instrument, after the reservoir is exhausted.
samplingTargetDocument_interval :: Lens' SamplingTargetDocument (Maybe Int) Source #
The number of seconds for the service to wait before getting sampling targets again.
samplingTargetDocument_reservoirQuota :: Lens' SamplingTargetDocument (Maybe Int) Source #
The number of requests per second that X-Ray allocated for this service.
samplingTargetDocument_reservoirQuotaTTL :: Lens' SamplingTargetDocument (Maybe UTCTime) Source #
When the reservoir quota expires.
samplingTargetDocument_ruleName :: Lens' SamplingTargetDocument (Maybe Text) Source #
The name of the sampling rule.