libZSservicesZSamazonka-xrayZSamazonka-xray
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.XRay.Types.SamplingTargetDocument

Description

 
Synopsis

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

Instances details
Eq SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

Read SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

Show SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

Generic SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

Associated Types

type Rep SamplingTargetDocument :: Type -> Type #

NFData SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

Methods

rnf :: SamplingTargetDocument -> () #

Hashable SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

FromJSON SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

type Rep SamplingTargetDocument Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingTargetDocument

type Rep SamplingTargetDocument = D1 ('MetaData "SamplingTargetDocument" "Amazonka.XRay.Types.SamplingTargetDocument" "libZSservicesZSamazonka-xrayZSamazonka-xray" 'False) (C1 ('MetaCons "SamplingTargetDocument'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reservoirQuota") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "ruleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "fixedRate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "interval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "reservoirQuotaTTL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))))

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:reservoirQuota:SamplingTargetDocument', samplingTargetDocument_reservoirQuota - The number of requests per second that X-Ray allocated for this service.

$sel:ruleName:SamplingTargetDocument', samplingTargetDocument_ruleName - The name of the sampling rule.

$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:reservoirQuotaTTL:SamplingTargetDocument', samplingTargetDocument_reservoirQuotaTTL - When the reservoir quota expires.

samplingTargetDocument_reservoirQuota :: Lens' SamplingTargetDocument (Maybe Int) Source #

The number of requests per second that X-Ray allocated for this service.

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.