Modifier and Type | Class and Description |
---|---|
static class |
AggregationOptions.Granularity
The granularity of the aggregation.
|
Constructor and Description |
---|
AggregationOptions(double minValidEntityRatio,
double minValidEntityGroupRatio,
int minValidWindows,
int maxAllowedExtrapolationsPerEntity,
Set<E> interestedEntities,
AggregationOptions.Granularity granularity,
boolean includeInvalidEntities)
Construct an AggregationOptions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AggregationOptions.Granularity |
granularity() |
int |
hashCode() |
boolean |
includeInvalidEntities() |
Set<E> |
interestedEntities() |
Set<String> |
interestedEntityGroups() |
int |
maxAllowedExtrapolationsPerEntity() |
double |
minValidEntityGroupRatio() |
double |
minValidEntityRatio() |
int |
minValidWindows() |
String |
toString() |
public AggregationOptions(double minValidEntityRatio, double minValidEntityGroupRatio, int minValidWindows, int maxAllowedExtrapolationsPerEntity, Set<E> interestedEntities, AggregationOptions.Granularity granularity, boolean includeInvalidEntities)
MetricSampleAggregator
how
to aggregate the metrics.minValidEntityRatio
- The minimum required percentage of valid entities out of all the interestedEntities.minValidEntityGroupRatio
- The minimum required percentage of the valid entity groups out of all the interested
entities groups (the groups of interested entities).minValidWindows
- The minimum required number of valid windows required in the result. A valid window
is a window within which both Min Valid Entity Ratio and
Min Valid Entity Group Ratio are met.maxAllowedExtrapolationsPerEntity
- the maximum allowed Extrapolation
s per entity in the aggregation.interestedEntities
- All the entities to include in this aggregation. Sometimes not all the entities are
interested. This option allows users to aggregate only part of the entities.granularity
- The granularity of the aggregation.includeInvalidEntities
- Whether to include invalid entities in the aggregation result as well. The
metric values of the invalid entities are provided at the best effort. When no
metric value is available, 0 will be used.MetricSampleAggregator
,
MetricSampleAggregationResult
,
MetricSampleCompleteness
public double minValidEntityRatio()
public double minValidEntityGroupRatio()
public int minValidWindows()
public int maxAllowedExtrapolationsPerEntity()
public Set<E> interestedEntities()
public AggregationOptions.Granularity granularity()
public boolean includeInvalidEntities()
public Set<String> interestedEntityGroups()