public class ModelCompletenessRequirements extends Object
This class allows different goals to specify different requirements for the cluster model. Currently the following requirements can be specified:
Constructor and Description |
---|
ModelCompletenessRequirements(int minNumValidWindows,
double minValidPartitionsRatio,
boolean includeAllTopics)
Constructor for the requirements.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getJsonStructure() |
boolean |
includeAllTopics() |
double |
minMonitoredPartitionsPercentage() |
int |
minRequiredNumWindows() |
ModelCompletenessRequirements |
stronger(ModelCompletenessRequirements other)
Combine the requirements of this ModelCompletenessRequirements and another one.
|
String |
toString() |
ModelCompletenessRequirements |
weaker(ModelCompletenessRequirements other)
Combine the requirements of this ModelCompletenessRequirements and another one.
|
public ModelCompletenessRequirements(int minNumValidWindows, double minValidPartitionsRatio, boolean includeAllTopics)
minNumValidWindows
- the minimum number of valid windows to generate the model. Tha value must positive.minValidPartitionsRatio
- The minimum required percentage of monitored partitions.includeAllTopics
- whether all the topics should be included to the time window. When set to true, all the
topics will be included even when there is not enough snapshots. An empty snapshot will
be used if there is no sample for a partition.public int minRequiredNumWindows()
public double minMonitoredPartitionsPercentage()
public boolean includeAllTopics()
public ModelCompletenessRequirements stronger(ModelCompletenessRequirements other)
other
- the other ModelCompletenessRequirementspublic ModelCompletenessRequirements weaker(ModelCompletenessRequirements other)
other
- the other ModelCompletenessRequirements