|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Alarm
The Alarm interface provides methods to access monitor data from within an alarm script. Note: This interface is not available within normal a script context. It is only available for scripts running as Alarm script within a MIB Explorer monitor.
Method Summary | |
---|---|
java.lang.Integer |
getAlarmSeverity()
Gets the severity of the alarm. |
java.lang.String |
getAlarmValue()
Gets the result of the alarm's Value expression. |
java.lang.Double |
getLastMonitoredValue()
Gets the value of the latest data point in the series for which this alarm has been configured. |
java.lang.Double |
getLastMonitoredValue(int series)
Gets the value of the latest data point in the specified series. |
java.lang.String |
getMonitorName()
Gets the name of the monitor generating this alarm. |
boolean |
isRaised()
Returns whether this alarm is raised or cleared. |
boolean |
isTransient()
Returns whether this alarm is transient. |
void |
setCurrentTargetToAlarmTarget()
Sets the scripts current target to the target specified for the alarm. |
void |
setCurrentTargetToSource()
Sets the scripts current target to the target from which the series data is being collected. |
Method Detail |
---|
java.lang.Double getLastMonitoredValue(int series)
series
- an integer value representing series of the monitor (starting from 0).
series
.
If series
is out of range or if the data point identified by
series
is not a number, null
will be returned.java.lang.Double getLastMonitoredValue()
null
will
be returned.java.lang.String getAlarmValue()
null
will be returned.java.lang.Integer getAlarmSeverity()
boolean isRaised()
true
if this alarm is raised, false
if it is cleared.boolean isTransient()
true
if this alarm is transient, false
if it
is cleared or if it is raised but will never be cleared (i.e., because
there is not clear condition given).java.lang.String getMonitorName()
void setCurrentTargetToAlarmTarget()
Snmp.getCurrentTarget()
void setCurrentTargetToSource()
Snmp.getCurrentTarget()
|
Copyright 2003-2011, Frank Fock, All Rights Reserved. http://www.mibexplorer.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |