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.SamplingRuleUpdate

Description

 
Synopsis

Documentation

data SamplingRuleUpdate Source #

A document specifying changes to a sampling rule's configuration.

See: newSamplingRuleUpdate smart constructor.

Constructors

SamplingRuleUpdate' 

Fields

  • hTTPMethod :: Maybe Text

    Matches the HTTP method of a request.

  • priority :: Maybe Int

    The priority of the sampling rule.

  • ruleName :: Maybe Text

    The name of the sampling rule. Specify a rule by either name or ARN, but not both.

  • reservoirSize :: Maybe Int

    A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.

  • fixedRate :: Maybe Double

    The percentage of matching requests to instrument, after the reservoir is exhausted.

  • resourceARN :: Maybe Text

    Matches the ARN of the Amazon Web Services resource on which the service runs.

  • attributes :: Maybe (HashMap Text Text)

    Matches attributes derived from the request.

  • serviceName :: Maybe Text

    Matches the name that the service uses to identify itself in segments.

  • serviceType :: Maybe Text

    Matches the origin that the service uses to identify its type in segments.

  • host :: Maybe Text

    Matches the hostname from a request URL.

  • ruleARN :: Maybe Text

    The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

  • uRLPath :: Maybe Text

    Matches the path from a request URL.

Instances

Instances details
Eq SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

Read SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

Show SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

Generic SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

Associated Types

type Rep SamplingRuleUpdate :: Type -> Type #

NFData SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

Methods

rnf :: SamplingRuleUpdate -> () #

Hashable SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

ToJSON SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

type Rep SamplingRuleUpdate Source # 
Instance details

Defined in Amazonka.XRay.Types.SamplingRuleUpdate

type Rep SamplingRuleUpdate = D1 ('MetaData "SamplingRuleUpdate" "Amazonka.XRay.Types.SamplingRuleUpdate" "libZSservicesZSamazonka-xrayZSamazonka-xray" 'False) (C1 ('MetaCons "SamplingRuleUpdate'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "hTTPMethod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "priority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "ruleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "reservoirSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "fixedRate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "resourceARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "serviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "serviceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "host") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ruleARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "uRLPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newSamplingRuleUpdate :: SamplingRuleUpdate Source #

Create a value of SamplingRuleUpdate 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:hTTPMethod:SamplingRuleUpdate', samplingRuleUpdate_hTTPMethod - Matches the HTTP method of a request.

$sel:priority:SamplingRuleUpdate', samplingRuleUpdate_priority - The priority of the sampling rule.

$sel:ruleName:SamplingRuleUpdate', samplingRuleUpdate_ruleName - The name of the sampling rule. Specify a rule by either name or ARN, but not both.

$sel:reservoirSize:SamplingRuleUpdate', samplingRuleUpdate_reservoirSize - A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.

$sel:fixedRate:SamplingRuleUpdate', samplingRuleUpdate_fixedRate - The percentage of matching requests to instrument, after the reservoir is exhausted.

$sel:resourceARN:SamplingRuleUpdate', samplingRuleUpdate_resourceARN - Matches the ARN of the Amazon Web Services resource on which the service runs.

$sel:attributes:SamplingRuleUpdate', samplingRuleUpdate_attributes - Matches attributes derived from the request.

$sel:serviceName:SamplingRuleUpdate', samplingRuleUpdate_serviceName - Matches the name that the service uses to identify itself in segments.

$sel:serviceType:SamplingRuleUpdate', samplingRuleUpdate_serviceType - Matches the origin that the service uses to identify its type in segments.

$sel:host:SamplingRuleUpdate', samplingRuleUpdate_host - Matches the hostname from a request URL.

$sel:ruleARN:SamplingRuleUpdate', samplingRuleUpdate_ruleARN - The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

$sel:uRLPath:SamplingRuleUpdate', samplingRuleUpdate_uRLPath - Matches the path from a request URL.

samplingRuleUpdate_hTTPMethod :: Lens' SamplingRuleUpdate (Maybe Text) Source #

Matches the HTTP method of a request.

samplingRuleUpdate_priority :: Lens' SamplingRuleUpdate (Maybe Int) Source #

The priority of the sampling rule.

samplingRuleUpdate_ruleName :: Lens' SamplingRuleUpdate (Maybe Text) Source #

The name of the sampling rule. Specify a rule by either name or ARN, but not both.

samplingRuleUpdate_reservoirSize :: Lens' SamplingRuleUpdate (Maybe Int) Source #

A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.

samplingRuleUpdate_fixedRate :: Lens' SamplingRuleUpdate (Maybe Double) Source #

The percentage of matching requests to instrument, after the reservoir is exhausted.

samplingRuleUpdate_resourceARN :: Lens' SamplingRuleUpdate (Maybe Text) Source #

Matches the ARN of the Amazon Web Services resource on which the service runs.

samplingRuleUpdate_attributes :: Lens' SamplingRuleUpdate (Maybe (HashMap Text Text)) Source #

Matches attributes derived from the request.

samplingRuleUpdate_serviceName :: Lens' SamplingRuleUpdate (Maybe Text) Source #

Matches the name that the service uses to identify itself in segments.

samplingRuleUpdate_serviceType :: Lens' SamplingRuleUpdate (Maybe Text) Source #

Matches the origin that the service uses to identify its type in segments.

samplingRuleUpdate_host :: Lens' SamplingRuleUpdate (Maybe Text) Source #

Matches the hostname from a request URL.

samplingRuleUpdate_ruleARN :: Lens' SamplingRuleUpdate (Maybe Text) Source #

The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

samplingRuleUpdate_uRLPath :: Lens' SamplingRuleUpdate (Maybe Text) Source #

Matches the path from a request URL.