|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.domain.correlation.NormalizationRule
org.rhq.domain.correlation.MetricNormalizationRule
public class MetricNormalizationRule
Normalization rule for metrics (Numeric, traits). The rule does not store the
conditions in itsels, but uses a list of MetricNormRuleItems for this.
MetricNormalizationRules are keyed by the ID of the MeasurementSchedule
they operate on.
| Constructor Summary | |
|---|---|
MetricNormalizationRule(int scheduleid,
java.lang.String name)
Create a new rule |
|
| Method Summary | |
|---|---|
void |
addItem(MetricNormRuleItem item)
Add a new MetricNormRuleItem to this rule. |
java.util.List<MetricNormRuleItem> |
getItems()
Obtain the list of rule items |
int |
getScheduleId()
Get the id of the MeasurementSchedule we're working on |
ResultState |
normalize(org.rhq.core.domain.measurement.MeasurementData data)
Normalize the passed data into a ResultState |
void |
setItems(java.util.List<MetricNormRuleItem> items)
Set a list of rule items |
| Methods inherited from class org.rhq.domain.correlation.NormalizationRule |
|---|
getId, getRuleName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricNormalizationRule(int scheduleid,
java.lang.String name)
scheduleid - The id of the MeasurementSchedule this rule is forname - name of the rule| Method Detail |
|---|
public int getScheduleId()
MeasurementSchedule we're working on
public java.util.List<MetricNormRuleItem> getItems()
public void setItems(java.util.List<MetricNormRuleItem> items)
items - a List of MetricNormRuleItempublic void addItem(MetricNormRuleItem item)
MetricNormRuleItem to this rule.
item - public ResultState normalize(org.rhq.core.domain.measurement.MeasurementData data)
ResultState
data - MeasurementData -- currently only MeasurementDataTrait and MeasurementDataNumeric
are supported. Other subtypes will return ResultState.INVALID.
ResultState for a matching item or ResultState.INVALID otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||