Class SamplingStatisticsDocument
- java.lang.Object
-
- software.amazon.awssdk.services.xray.model.SamplingStatisticsDocument
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SamplingStatisticsDocument.Builder,SamplingStatisticsDocument>
@Generated("software.amazon.awssdk:codegen") public final class SamplingStatisticsDocument extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SamplingStatisticsDocument.Builder,SamplingStatisticsDocument>
Request sampling results for a single rule from a service. Results are for the last 10 seconds unless the service has been assigned a longer reporting interval after a previous call to GetSamplingTargets.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSamplingStatisticsDocument.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerborrowCount()The number of requests recorded with borrowed reservoir quota.static SamplingStatisticsDocument.Builderbuilder()StringclientID()A unique identifier for the service in hexadecimal.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerrequestCount()The number of requests that matched the rule.StringruleName()The name of the sampling rule.IntegersampledCount()The number of requests recorded.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SamplingStatisticsDocument.Builder>serializableBuilderClass()Instanttimestamp()The current time.SamplingStatisticsDocument.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
ruleName
public final String ruleName()
The name of the sampling rule.
- Returns:
- The name of the sampling rule.
-
clientID
public final String clientID()
A unique identifier for the service in hexadecimal.
- Returns:
- A unique identifier for the service in hexadecimal.
-
timestamp
public final Instant timestamp()
The current time.
- Returns:
- The current time.
-
requestCount
public final Integer requestCount()
The number of requests that matched the rule.
- Returns:
- The number of requests that matched the rule.
-
sampledCount
public final Integer sampledCount()
The number of requests recorded.
- Returns:
- The number of requests recorded.
-
borrowCount
public final Integer borrowCount()
The number of requests recorded with borrowed reservoir quota.
- Returns:
- The number of requests recorded with borrowed reservoir quota.
-
toBuilder
public SamplingStatisticsDocument.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SamplingStatisticsDocument.Builder,SamplingStatisticsDocument>
-
builder
public static SamplingStatisticsDocument.Builder builder()
-
serializableBuilderClass
public static Class<? extends SamplingStatisticsDocument.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-