Class Metric
- java.lang.Object
-
- software.amazon.awssdk.services.lookoutmetrics.model.Metric
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Metric.Builder,Metric>
@Generated("software.amazon.awssdk:codegen") public final class Metric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Metric.Builder,Metric>
A calculation made by contrasting a measure and a dimension from your source data.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetric.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregationFunctionaggregationFunction()The function with which the metric is calculated.StringaggregationFunctionAsString()The function with which the metric is calculated.static Metric.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmetricName()The name of the metric.Stringnamespace()The namespace for the metric.List<SdkField<?>>sdkFields()static Class<? extends Metric.Builder>serializableBuilderClass()Metric.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
-
metricName
public final String metricName()
The name of the metric.
- Returns:
- The name of the metric.
-
aggregationFunction
public final AggregationFunction aggregationFunction()
The function with which the metric is calculated.
If the service returns an enum value that is not available in the current SDK version,
aggregationFunctionwill returnAggregationFunction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationFunctionAsString().- Returns:
- The function with which the metric is calculated.
- See Also:
AggregationFunction
-
aggregationFunctionAsString
public final String aggregationFunctionAsString()
The function with which the metric is calculated.
If the service returns an enum value that is not available in the current SDK version,
aggregationFunctionwill returnAggregationFunction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationFunctionAsString().- Returns:
- The function with which the metric is calculated.
- See Also:
AggregationFunction
-
namespace
public final String namespace()
The namespace for the metric.
- Returns:
- The namespace for the metric.
-
toBuilder
public Metric.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Metric.Builder,Metric>
-
builder
public static Metric.Builder builder()
-
serializableBuilderClass
public static Class<? extends Metric.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.
-
-