public class Threshold extends Object
Modifier and Type | Field and Description |
---|---|
static int |
F_AVERAGE |
static int |
F_DEVIATION |
static int |
F_DIFF |
static int |
F_ERROR |
static int |
F_LAST |
static int |
F_SCRIPT |
static int |
F_SUM |
static int |
OP_EQ |
static int |
OP_GT |
static int |
OP_GT_EQ |
static int |
OP_LE |
static int |
OP_LE_EQ |
static int |
OP_LIKE |
static int |
OP_NE |
static int |
OP_NOTLIKE |
Constructor and Description |
---|
Threshold()
Create new threshold object
|
Threshold(org.netxms.base.NXCPMessage msg,
long baseId)
Create DCI threshold object from NXCP message
|
Threshold(Threshold src)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
fillMessage(org.netxms.base.NXCPMessage msg,
long baseId)
Fill NXCP message with threshold's data.
|
int |
getCurrentSeverity() |
int |
getFireEvent() |
int |
getFunction() |
long |
getId() |
Date |
getLastEventTimestamp() |
int |
getOperation() |
int |
getRearmEvent() |
int |
getRepeatInterval() |
int |
getSampleCount() |
String |
getScript() |
String |
getValue() |
boolean |
isActive()
Returns true if threshold is currently active (it's condition was evaluated to true at last poll).
|
void |
setFireEvent(int fireEvent) |
void |
setFunction(int function) |
void |
setOperation(int operation) |
void |
setRearmEvent(int rearmEvent) |
void |
setRepeatInterval(int repeatInterval) |
void |
setSampleCount(int sampleCount)
Set sample count for threshold
|
void |
setScript(String script) |
void |
setValue(String value) |
public static final int F_LAST
public static final int F_AVERAGE
public static final int F_DEVIATION
public static final int F_DIFF
public static final int F_ERROR
public static final int F_SUM
public static final int F_SCRIPT
public static final int OP_LE
public static final int OP_LE_EQ
public static final int OP_EQ
public static final int OP_GT_EQ
public static final int OP_GT
public static final int OP_NE
public static final int OP_LIKE
public static final int OP_NOTLIKE
public Threshold(org.netxms.base.NXCPMessage msg, long baseId)
msg
- NXCP messagebaseId
- Base variable ID for this threshold in messagepublic Threshold()
public Threshold(Threshold src)
src
- source objectprotected void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)
msg
- NXCP messagebaseId
- Base variable identifierpublic int getFireEvent()
public void setFireEvent(int fireEvent)
fireEvent
- the fireEvent to setpublic int getRearmEvent()
public void setRearmEvent(int rearmEvent)
rearmEvent
- the rearmEvent to setpublic int getSampleCount()
public void setSampleCount(int sampleCount)
new
- sample countpublic int getFunction()
public void setFunction(int function)
function
- the function to setpublic int getOperation()
public void setOperation(int operation)
operation
- the operation to setpublic int getRepeatInterval()
public void setRepeatInterval(int repeatInterval)
repeatInterval
- the repeatInterval to setpublic String getValue()
public void setValue(String value)
value
- the value to setpublic long getId()
public boolean isActive()
public int getCurrentSeverity()
public Date getLastEventTimestamp()
public String getScript()
public void setScript(String script)
script
- the script to setCopyright © 2014. All rights reserved.