public class EventProcessingPolicyRule extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_TICKET |
static int |
DISABLED |
static int |
GENERATE_ALARM |
static int |
NEGATED_EVENTS |
static int |
NEGATED_SOURCE |
static int |
SEVERITY_ANY |
static int |
SEVERITY_CRITICAL |
static int |
SEVERITY_MAJOR |
static int |
SEVERITY_MINOR |
static int |
SEVERITY_NORMAL |
static int |
SEVERITY_WARNING |
static int |
STOP_PROCESSING |
static int |
TERMINATE_BY_REGEXP |
| Constructor and Description |
|---|
EventProcessingPolicyRule()
Create empty rule
|
EventProcessingPolicyRule(EventProcessingPolicyRule src)
Copy constructor
|
EventProcessingPolicyRule(org.netxms.base.NXCPMessage msg,
int ruleNumber)
Create rule from NXCP message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillMessage(org.netxms.base.NXCPMessage msg)
Fill NXCP message with rule's data
|
List<Long> |
getActions() |
List<Long> |
getAlarmCategories() |
String |
getAlarmKey() |
String |
getAlarmMessage() |
Severity |
getAlarmSeverity() |
int |
getAlarmTimeout() |
long |
getAlarmTimeoutEvent() |
String |
getComments()
Get rule's comments.
|
List<Long> |
getEvents() |
int |
getFlags() |
UUID |
getGuid() |
List<String> |
getPStorageDelete() |
Map<String,String> |
getPStorageSet() |
int |
getRuleNumber()
Get rule number
|
String |
getScript() |
List<Long> |
getSources() |
boolean |
isDisabled()
Check rule's DISABLED flag
|
boolean |
isEventsInverted()
Check rule's NEGATED_EVENTS flag
|
boolean |
isSourceInverted()
Check rule's NEGATED_SOURCE flag
|
void |
removeAlarmCategory(Long categoryId) |
void |
setActions(List<Long> actions) |
void |
setAlarmCategories(List<Long> alarmCategoryIds) |
void |
setAlarmKey(String alarmKey) |
void |
setAlarmMessage(String alarmMessage) |
void |
setAlarmSeverity(Severity alarmSeverity) |
void |
setAlarmTimeout(int alarmTimeout) |
void |
setAlarmTimeoutEvent(long alarmTimeoutEvent) |
void |
setComments(String comments)
Set rule's comments.
|
void |
setEvents(List<Long> events) |
void |
setFlags(int flags) |
void |
setPStorageDelete(List<String> persistentStorageDelete) |
void |
setPStorageSet(Map<String,String> persistentStorageSet) |
void |
setRuleNumber(int ruleNumber)
Set rule number
|
void |
setScript(String script) |
void |
setSources(List<Long> sources) |
public static final int STOP_PROCESSING
public static final int NEGATED_SOURCE
public static final int NEGATED_EVENTS
public static final int GENERATE_ALARM
public static final int DISABLED
public static final int TERMINATE_BY_REGEXP
public static final int SEVERITY_NORMAL
public static final int SEVERITY_WARNING
public static final int SEVERITY_MINOR
public static final int SEVERITY_MAJOR
public static final int SEVERITY_CRITICAL
public static final int CREATE_TICKET
public static final int SEVERITY_ANY
public EventProcessingPolicyRule()
public EventProcessingPolicyRule(EventProcessingPolicyRule src)
public EventProcessingPolicyRule(org.netxms.base.NXCPMessage msg,
int ruleNumber)
msg - NXCP messagepublic void fillMessage(org.netxms.base.NXCPMessage msg)
msg - NXCP messagepublic String getComments()
public void setComments(String comments)
comments - New commentspublic String getScript()
public void setScript(String script)
script - the script to setpublic int getFlags()
public void setFlags(int flags)
flags - the flags to setpublic String getAlarmKey()
public void setAlarmKey(String alarmKey)
alarmKey - the alarmKey to setpublic String getAlarmMessage()
public void setAlarmMessage(String alarmMessage)
alarmMessage - the alarmMessage to setpublic Severity getAlarmSeverity()
public void setAlarmSeverity(Severity alarmSeverity)
alarmSeverity - the alarmSeverity to setpublic int getAlarmTimeout()
public void setAlarmTimeout(int alarmTimeout)
alarmTimeout - the alarmTimeout to setpublic long getAlarmTimeoutEvent()
public void setAlarmTimeoutEvent(long alarmTimeoutEvent)
alarmTimeoutEvent - the alarmTimeoutEvent to setpublic List<Long> getAlarmCategories()
public void setAlarmCategories(List<Long> alarmCategoryIds)
alarmCategoryIds - the alarm category ids to setpublic void removeAlarmCategory(Long categoryId)
public void setPStorageSet(Map<String,String> persistentStorageSet)
persistentStorageSet - the persistentStorageSet to setpublic void setPStorageDelete(List<String> persistentStorageDelete)
persistentStorageDelete - the persistentStorageDelete to setpublic boolean isDisabled()
public boolean isSourceInverted()
public boolean isEventsInverted()
public UUID getGuid()
public int getRuleNumber()
public void setRuleNumber(int ruleNumber)
ruleNumber - to setCopyright © 2018. All rights reserved.