Class InsightRuleMetricDatapoint
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InsightRuleMetricDatapoint.Builder,InsightRuleMetricDatapoint>
One data point from the metric time series returned in a Contributor Insights rule report.
For more information, see GetInsightRuleReport.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Doubleaverage()The average value from all contributors during the time period represented by that data point.builder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final DoubleThe maximum value provided by one contributor during this timestamp.final Doublemaximum()The maximum value from a single occurence from a single contributor during the time period represented by that data point.final Doubleminimum()The minimum value from a single contributor during the time period represented by that data point.final DoubleThe number of occurrences that matched the rule during this data point.static Class<? extends InsightRuleMetricDatapoint.Builder> final Doublesum()The sum of the values from all contributors during the time period represented by that data point.final InstantThe timestamp of the data point.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final DoubleThe number of unique contributors who published data during this timestamp.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
timestamp
The timestamp of the data point.
- Returns:
- The timestamp of the data point.
-
uniqueContributors
The number of unique contributors who published data during this timestamp.
This statistic is returned only if you included it in the
Metricsarray in your request.- Returns:
- The number of unique contributors who published data during this timestamp.
This statistic is returned only if you included it in the
Metricsarray in your request.
-
maxContributorValue
The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, so the identity of the max contributor could be different for each timestamp.
This statistic is returned only if you included it in the
Metricsarray in your request.- Returns:
- The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated
separately, so the identity of the max contributor could be different for each timestamp.
This statistic is returned only if you included it in the
Metricsarray in your request.
-
sampleCount
The number of occurrences that matched the rule during this data point.
This statistic is returned only if you included it in the
Metricsarray in your request.- Returns:
- The number of occurrences that matched the rule during this data point.
This statistic is returned only if you included it in the
Metricsarray in your request.
-
average
The average value from all contributors during the time period represented by that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.- Returns:
- The average value from all contributors during the time period represented by that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.
-
sum
The sum of the values from all contributors during the time period represented by that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.- Returns:
- The sum of the values from all contributors during the time period represented by that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.
-
minimum
The minimum value from a single contributor during the time period represented by that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.- Returns:
- The minimum value from a single contributor during the time period represented by that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.
-
maximum
The maximum value from a single occurence from a single contributor during the time period represented by that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.- Returns:
- The maximum value from a single occurence from a single contributor during the time period represented by
that data point.
This statistic is returned only if you included it in the
Metricsarray in your request.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InsightRuleMetricDatapoint.Builder,InsightRuleMetricDatapoint> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-