| Constructor and Description |
|---|
ThresholdEntity(EntityScopeProvider entityScopeProvider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addThreshold(BaseThresholdDefConfigWrapper threshold,
ThresholdingSession thresholdingSession)
addThreshold
|
ThresholdEntity |
clone()
Returns a copy of this ThresholdEntity object.
|
void |
delete()
Delete this will check states and will send rearm for all triggered.
|
List<Event> |
evaluateAndCreateEvents(CollectionResourceWrapper resource,
Map<String,Double> values,
Date date)
Evaluates the threshold in light of the provided datasource value, for
the named instance (or the generic instance if instance is null) and
create any events for thresholds.
|
List<Event> |
evaluateAndCreateEvents(Map<String,Double> values,
Date date)
Evaluates the threshold in light of the provided datasource value and
create any events for thresholds.
|
String |
getDataSourceExpression()
Get datasource name
|
String |
getDatasourceLabel()
Get datasource Label
|
String |
getDatasourceType()
Get datasource type
|
Collection<String> |
getRequiredDatasources()
Returns the names of the dataousrces required to evaluate this threshold entity
|
BaseThresholdDefConfigWrapper |
getThresholdConfig()
getThresholdConfig
|
static List<ThresholdEvaluator> |
getThresholdEvaluators()
getThresholdEvaluators
|
List<ThresholdEvaluatorState> |
getThresholdEvaluatorStates(String instance)
Returns the evaluator states *for the given instance.
|
void |
merge(ThresholdEntity entity)
Merges the configuration and update states using parameter entity as a reference.
|
void |
setEventProxy(ThresholdingEventProxy eventProxy) |
String |
toString()
This method is responsible for returning a String object which represents
the content of this ThresholdEntity.
|
public ThresholdEntity(EntityScopeProvider entityScopeProvider)
public BaseThresholdDefConfigWrapper getThresholdConfig()
getThresholdConfig
BaseThresholdDefConfigWrapper object.public String getDataSourceExpression()
String object.public String getDatasourceLabel()
String object.public Collection<String> getRequiredDatasources()
public ThresholdEntity clone()
clone in class ObjectThresholdEntity object.public String toString()
public List<Event> evaluateAndCreateEvents(Map<String,Double> values, Date date)
values - map of values (by datasource name) to evaluate against the threshold (might be an expression)date - Date to use in created eventspublic List<Event> evaluateAndCreateEvents(CollectionResourceWrapper resource, Map<String,Double> values, Date date)
values - map of values (by datasource name) to evaluate against the threshold (might be an expression)date - Date to use in created eventsresource - a CollectionResourceWrapper object.public void addThreshold(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
addThreshold
threshold - a BaseThresholdDefConfigWrapper object.public List<ThresholdEvaluatorState> getThresholdEvaluatorStates(String instance)
instance - The key to use to identify the instance to get states for. Can be null to get the default instanceList object.public void merge(ThresholdEntity entity)
entity - a ThresholdEntity object.public void delete()
public static final List<ThresholdEvaluator> getThresholdEvaluators()
getThresholdEvaluators
List object.public void setEventProxy(ThresholdingEventProxy eventProxy)
Copyright © 2021. All rights reserved.