@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SamplingTargetDocument extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
SamplingTargetDocument() |
Modifier and Type | Method and Description |
---|---|
SamplingTargetDocument |
clone() |
boolean |
equals(Object obj) |
Double |
getFixedRate()
The percentage of matching requests to instrument, after the reservoir is exhausted.
|
Integer |
getInterval()
The number of seconds for the service to wait before getting sampling targets again.
|
Integer |
getReservoirQuota()
The number of requests per second that X-Ray allocated for this service.
|
Date |
getReservoirQuotaTTL()
When the reservoir quota expires.
|
String |
getRuleName()
The name of the sampling rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setFixedRate(Double fixedRate)
The percentage of matching requests to instrument, after the reservoir is exhausted.
|
void |
setInterval(Integer interval)
The number of seconds for the service to wait before getting sampling targets again.
|
void |
setReservoirQuota(Integer reservoirQuota)
The number of requests per second that X-Ray allocated for this service.
|
void |
setReservoirQuotaTTL(Date reservoirQuotaTTL)
When the reservoir quota expires.
|
void |
setRuleName(String ruleName)
The name of the sampling rule.
|
String |
toString()
Returns a string representation of this object.
|
SamplingTargetDocument |
withFixedRate(Double fixedRate)
The percentage of matching requests to instrument, after the reservoir is exhausted.
|
SamplingTargetDocument |
withInterval(Integer interval)
The number of seconds for the service to wait before getting sampling targets again.
|
SamplingTargetDocument |
withReservoirQuota(Integer reservoirQuota)
The number of requests per second that X-Ray allocated for this service.
|
SamplingTargetDocument |
withReservoirQuotaTTL(Date reservoirQuotaTTL)
When the reservoir quota expires.
|
SamplingTargetDocument |
withRuleName(String ruleName)
The name of the sampling rule.
|
public void setRuleName(String ruleName)
The name of the sampling rule.
ruleName
- The name of the sampling rule.public String getRuleName()
The name of the sampling rule.
public SamplingTargetDocument withRuleName(String ruleName)
The name of the sampling rule.
ruleName
- The name of the sampling rule.public void setFixedRate(Double fixedRate)
The percentage of matching requests to instrument, after the reservoir is exhausted.
fixedRate
- The percentage of matching requests to instrument, after the reservoir is exhausted.public Double getFixedRate()
The percentage of matching requests to instrument, after the reservoir is exhausted.
public SamplingTargetDocument withFixedRate(Double fixedRate)
The percentage of matching requests to instrument, after the reservoir is exhausted.
fixedRate
- The percentage of matching requests to instrument, after the reservoir is exhausted.public void setReservoirQuota(Integer reservoirQuota)
The number of requests per second that X-Ray allocated for this service.
reservoirQuota
- The number of requests per second that X-Ray allocated for this service.public Integer getReservoirQuota()
The number of requests per second that X-Ray allocated for this service.
public SamplingTargetDocument withReservoirQuota(Integer reservoirQuota)
The number of requests per second that X-Ray allocated for this service.
reservoirQuota
- The number of requests per second that X-Ray allocated for this service.public void setReservoirQuotaTTL(Date reservoirQuotaTTL)
When the reservoir quota expires.
reservoirQuotaTTL
- When the reservoir quota expires.public Date getReservoirQuotaTTL()
When the reservoir quota expires.
public SamplingTargetDocument withReservoirQuotaTTL(Date reservoirQuotaTTL)
When the reservoir quota expires.
reservoirQuotaTTL
- When the reservoir quota expires.public void setInterval(Integer interval)
The number of seconds for the service to wait before getting sampling targets again.
interval
- The number of seconds for the service to wait before getting sampling targets again.public Integer getInterval()
The number of seconds for the service to wait before getting sampling targets again.
public SamplingTargetDocument withInterval(Integer interval)
The number of seconds for the service to wait before getting sampling targets again.
interval
- The number of seconds for the service to wait before getting sampling targets again.public String toString()
toString
in class Object
Object.toString()
public SamplingTargetDocument clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.