@Generated(value="software.amazon.awssdk:codegen") public final class SamplingTargetDocument extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SamplingTargetDocument.Builder,SamplingTargetDocument>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
SamplingTargetDocument.Builder |
Modifier and Type | Method and Description |
---|---|
static SamplingTargetDocument.Builder |
builder() |
boolean |
equals(Object obj) |
Double |
fixedRate()
The percentage of matching requests to instrument, after the reservoir is exhausted.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
interval()
The number of seconds for the service to wait before getting sampling targets again.
|
Integer |
reservoirQuota()
The number of requests per second that X-Ray allocated this service.
|
Instant |
reservoirQuotaTTL()
When the reservoir quota expires.
|
String |
ruleName()
The name of the sampling rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SamplingTargetDocument.Builder> |
serializableBuilderClass() |
SamplingTargetDocument.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String ruleName()
The name of the sampling rule.
public Double fixedRate()
The percentage of matching requests to instrument, after the reservoir is exhausted.
public Integer reservoirQuota()
The number of requests per second that X-Ray allocated this service.
public Instant reservoirQuotaTTL()
When the reservoir quota expires.
public Integer interval()
The number of seconds for the service to wait before getting sampling targets again.
public SamplingTargetDocument.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SamplingTargetDocument.Builder,SamplingTargetDocument>
public static SamplingTargetDocument.Builder builder()
public static Class<? extends SamplingTargetDocument.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.