public class AlertingGroupStatus
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
AlertGroup |
alertGroup |
int |
currentRunErrorAlerts |
int |
currentRunExecutedAlerts |
int |
currentRunExecutedUsers |
long |
currentRunStartTime |
static int |
DEFAULT_CURRENT_RUN_ERROR_ALERTS |
static int |
DEFAULT_CURRENT_RUN_EXECUTED_ALERTS |
static int |
DEFAULT_CURRENT_RUN_EXECUTED_USERS |
static long |
DEFAULT_CURRENT_RUN_START_TIME |
static boolean |
DEFAULT_ENABLED |
static boolean |
DEFAULT_PAUSED |
static int |
DEFAULT_PREVIOUS_RUN_ERROR_ALERTS |
static int |
DEFAULT_PREVIOUS_RUN_EXECUTED_ALERTS |
static int |
DEFAULT_PREVIOUS_RUN_EXECUTED_USERS |
static long |
DEFAULT_PREVIOUS_RUN_TIME |
static boolean |
DEFAULT_RUNNING |
java.lang.String |
description |
boolean |
enabled |
java.lang.String |
name |
int |
nbAlerts |
boolean |
paused |
int |
previousRunErrorAlerts |
int |
previousRunExecutedAlerts |
int |
previousRunExecutedUsers |
long |
previousRunTime |
boolean |
running |
Constructor and Description |
---|
AlertingGroupStatus() |
AlertingGroupStatus(AlertingGroupStatus o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this AlertingGroupStatus.
|
static AlertingGroupStatus |
fromString(java.lang.String s)
String representation of this AlertingGroupStatus.
|
AlertGroup |
getAlertGroup()
The configuration of the group
|
int |
getCurrentRunErrorAlerts()
Number of alerts executed with error in this run.
This is only valid for running groups not using interval-based scheduling. Else, value is -1. Always -1 for real-time alerting groups. |
int |
getCurrentRunExecutedAlerts()
Number of alerts executed in this run (either successfully or not).
This is only valid for running groups not using interval-based scheduling. Else, value is -1. Always -1 for real-time alerting groups. |
int |
getCurrentRunExecutedUsers()
Number of users for whom alerts were executed in this run (either successfully or not).
This is only valid for running groups not using interval-based scheduling, and using per-user execution. Else, value is -1. Always -1 for real-time alerting groups. |
long |
getCurrentRunStartTime()
In ms since epoch.
|
java.lang.String |
getDescription() |
java.lang.String |
getName()
Name of this group
|
int |
getNbAlerts()
Number of registered alerts in this group.
|
int |
getPreviousRunErrorAlerts()
Number of alerts executed with error in this run.
This is only valid for groups not using interval-based scheduling that have already been run. Else, value is -1. Always -1 for real-time alerting groups. |
int |
getPreviousRunExecutedAlerts()
Number of alerts executed in this run (either successfully or not).
This is only valid for groups not using interval-based scheduling that have already been run Else, value is -1. Always -1 for real-time alerting groups. |
int |
getPreviousRunExecutedUsers()
Number of users for whom alerts were executed in this run (either successfully or not).
This is only valid for groups not using interval-based scheduling, that have already been run, and using per-user execution. Else, value is -1. Always -1 for real-time alerting groups. |
long |
getPreviousRunTime()
Always -1 for real-time alerting groups.
|
boolean |
isEnabled()
Is auto-run of this group enabled ? Always false for real-time alerting groups.
|
boolean |
isPaused()
Is this group currently paused ? Always false for real-time alerting groups.
|
boolean |
isRunning()
Is this group currently executing alerts.
|
AlertingGroupStatus |
makeCopy()
Creates and returns a deep copy of this AlertingGroupStatus.
|
static AlertingGroupStatus |
readFrom(java.io.InputStream is)
Read this AlertingGroupStatus from an XML fragment.
|
void |
setAlertGroup(AlertGroup alertGroup)
The configuration of the group
|
void |
setCurrentRunErrorAlerts(int currentRunErrorAlerts)
Number of alerts executed with error in this run.
This is only valid for running groups not using interval-based scheduling. Else, value is -1. Always -1 for real-time alerting groups. |
void |
setCurrentRunExecutedAlerts(int currentRunExecutedAlerts)
Number of alerts executed in this run (either successfully or not).
This is only valid for running groups not using interval-based scheduling. Else, value is -1. Always -1 for real-time alerting groups. |
void |
setCurrentRunExecutedUsers(int currentRunExecutedUsers)
Number of users for whom alerts were executed in this run (either successfully or not).
This is only valid for running groups not using interval-based scheduling, and using per-user execution. Else, value is -1. Always -1 for real-time alerting groups. |
void |
setCurrentRunStartTime(long currentRunStartTime)
In ms since epoch.
|
void |
setDescription(java.lang.String description) |
void |
setEnabled(boolean enabled)
Is auto-run of this group enabled ? Always false for real-time alerting groups.
|
void |
setName(java.lang.String name)
Name of this group
|
void |
setNbAlerts(int nbAlerts)
Number of registered alerts in this group.
|
void |
setPaused(boolean paused)
Is this group currently paused ? Always false for real-time alerting groups.
|
void |
setPreviousRunErrorAlerts(int previousRunErrorAlerts)
Number of alerts executed with error in this run.
This is only valid for groups not using interval-based scheduling that have already been run. Else, value is -1. Always -1 for real-time alerting groups. |
void |
setPreviousRunExecutedAlerts(int previousRunExecutedAlerts)
Number of alerts executed in this run (either successfully or not).
This is only valid for groups not using interval-based scheduling that have already been run Else, value is -1. Always -1 for real-time alerting groups. |
void |
setPreviousRunExecutedUsers(int previousRunExecutedUsers)
Number of users for whom alerts were executed in this run (either successfully or not).
This is only valid for groups not using interval-based scheduling, that have already been run, and using per-user execution. Else, value is -1. Always -1 for real-time alerting groups. |
void |
setPreviousRunTime(long previousRunTime)
Always -1 for real-time alerting groups.
|
void |
setRunning(boolean running)
Is this group currently executing alerts.
|
java.lang.String |
toString()
String representation of this AlertingGroupStatus.
|
AlertingGroupStatus |
withAlertGroup(AlertGroup alertGroup) |
AlertingGroupStatus |
withCurrentRunErrorAlerts(int currentRunErrorAlerts) |
AlertingGroupStatus |
withCurrentRunErrorAlerts(java.lang.Integer currentRunErrorAlerts) |
AlertingGroupStatus |
withCurrentRunExecutedAlerts(int currentRunExecutedAlerts) |
AlertingGroupStatus |
withCurrentRunExecutedAlerts(java.lang.Integer currentRunExecutedAlerts) |
AlertingGroupStatus |
withCurrentRunExecutedUsers(int currentRunExecutedUsers) |
AlertingGroupStatus |
withCurrentRunExecutedUsers(java.lang.Integer currentRunExecutedUsers) |
AlertingGroupStatus |
withCurrentRunStartTime(long currentRunStartTime) |
AlertingGroupStatus |
withCurrentRunStartTime(java.lang.Long currentRunStartTime) |
AlertingGroupStatus |
withDescription(java.lang.String description) |
AlertingGroupStatus |
withEnabled(boolean enabled) |
AlertingGroupStatus |
withEnabled(java.lang.Boolean enabled) |
AlertingGroupStatus |
withName(java.lang.String name) |
AlertingGroupStatus |
withNbAlerts(int nbAlerts) |
AlertingGroupStatus |
withNbAlerts(java.lang.Integer nbAlerts) |
AlertingGroupStatus |
withPaused(boolean paused) |
AlertingGroupStatus |
withPaused(java.lang.Boolean paused) |
AlertingGroupStatus |
withPreviousRunErrorAlerts(int previousRunErrorAlerts) |
AlertingGroupStatus |
withPreviousRunErrorAlerts(java.lang.Integer previousRunErrorAlerts) |
AlertingGroupStatus |
withPreviousRunExecutedAlerts(int previousRunExecutedAlerts) |
AlertingGroupStatus |
withPreviousRunExecutedAlerts(java.lang.Integer previousRunExecutedAlerts) |
AlertingGroupStatus |
withPreviousRunExecutedUsers(int previousRunExecutedUsers) |
AlertingGroupStatus |
withPreviousRunExecutedUsers(java.lang.Integer previousRunExecutedUsers) |
AlertingGroupStatus |
withPreviousRunTime(long previousRunTime) |
AlertingGroupStatus |
withPreviousRunTime(java.lang.Long previousRunTime) |
AlertingGroupStatus |
withRunning(boolean running) |
AlertingGroupStatus |
withRunning(java.lang.Boolean running) |
void |
writeTo(java.io.OutputStream os)
Write this AlertingGroupStatus as an XML fragment
|
public java.lang.String name
public AlertGroup alertGroup
public java.lang.String description
public int nbAlerts
public boolean running
public static final boolean DEFAULT_RUNNING
public boolean paused
public static final boolean DEFAULT_PAUSED
public boolean enabled
public static final boolean DEFAULT_ENABLED
public long currentRunStartTime
public static final long DEFAULT_CURRENT_RUN_START_TIME
public int currentRunExecutedAlerts
public static final int DEFAULT_CURRENT_RUN_EXECUTED_ALERTS
public int currentRunExecutedUsers
public static final int DEFAULT_CURRENT_RUN_EXECUTED_USERS
public int currentRunErrorAlerts
public static final int DEFAULT_CURRENT_RUN_ERROR_ALERTS
public long previousRunTime
public static final long DEFAULT_PREVIOUS_RUN_TIME
public int previousRunExecutedAlerts
public static final int DEFAULT_PREVIOUS_RUN_EXECUTED_ALERTS
public int previousRunExecutedUsers
public static final int DEFAULT_PREVIOUS_RUN_EXECUTED_USERS
public int previousRunErrorAlerts
public static final int DEFAULT_PREVIOUS_RUN_ERROR_ALERTS
public AlertingGroupStatus()
public AlertingGroupStatus(AlertingGroupStatus o)
public void setName(java.lang.String name)
public java.lang.String getName()
public AlertingGroupStatus withName(java.lang.String name)
public void setAlertGroup(AlertGroup alertGroup)
public AlertGroup getAlertGroup()
public AlertingGroupStatus withAlertGroup(AlertGroup alertGroup)
public void setDescription(java.lang.String description)
public java.lang.String getDescription()
public AlertingGroupStatus withDescription(java.lang.String description)
public void setNbAlerts(int nbAlerts)
public int getNbAlerts()
public AlertingGroupStatus withNbAlerts(int nbAlerts)
public AlertingGroupStatus withNbAlerts(java.lang.Integer nbAlerts)
public void setRunning(boolean running)
public boolean isRunning()
public AlertingGroupStatus withRunning(boolean running)
public AlertingGroupStatus withRunning(java.lang.Boolean running)
public void setPaused(boolean paused)
public boolean isPaused()
public AlertingGroupStatus withPaused(boolean paused)
public AlertingGroupStatus withPaused(java.lang.Boolean paused)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public AlertingGroupStatus withEnabled(boolean enabled)
public AlertingGroupStatus withEnabled(java.lang.Boolean enabled)
public void setCurrentRunStartTime(long currentRunStartTime)
public long getCurrentRunStartTime()
public AlertingGroupStatus withCurrentRunStartTime(long currentRunStartTime)
public AlertingGroupStatus withCurrentRunStartTime(java.lang.Long currentRunStartTime)
public void setCurrentRunExecutedAlerts(int currentRunExecutedAlerts)
public int getCurrentRunExecutedAlerts()
public AlertingGroupStatus withCurrentRunExecutedAlerts(int currentRunExecutedAlerts)
public AlertingGroupStatus withCurrentRunExecutedAlerts(java.lang.Integer currentRunExecutedAlerts)
public void setCurrentRunExecutedUsers(int currentRunExecutedUsers)
public int getCurrentRunExecutedUsers()
public AlertingGroupStatus withCurrentRunExecutedUsers(int currentRunExecutedUsers)
public AlertingGroupStatus withCurrentRunExecutedUsers(java.lang.Integer currentRunExecutedUsers)
public void setCurrentRunErrorAlerts(int currentRunErrorAlerts)
public int getCurrentRunErrorAlerts()
public AlertingGroupStatus withCurrentRunErrorAlerts(int currentRunErrorAlerts)
public AlertingGroupStatus withCurrentRunErrorAlerts(java.lang.Integer currentRunErrorAlerts)
public void setPreviousRunTime(long previousRunTime)
public long getPreviousRunTime()
public AlertingGroupStatus withPreviousRunTime(long previousRunTime)
public AlertingGroupStatus withPreviousRunTime(java.lang.Long previousRunTime)
public void setPreviousRunExecutedAlerts(int previousRunExecutedAlerts)
public int getPreviousRunExecutedAlerts()
public AlertingGroupStatus withPreviousRunExecutedAlerts(int previousRunExecutedAlerts)
public AlertingGroupStatus withPreviousRunExecutedAlerts(java.lang.Integer previousRunExecutedAlerts)
public void setPreviousRunExecutedUsers(int previousRunExecutedUsers)
public int getPreviousRunExecutedUsers()
public AlertingGroupStatus withPreviousRunExecutedUsers(int previousRunExecutedUsers)
public AlertingGroupStatus withPreviousRunExecutedUsers(java.lang.Integer previousRunExecutedUsers)
public void setPreviousRunErrorAlerts(int previousRunErrorAlerts)
public int getPreviousRunErrorAlerts()
public AlertingGroupStatus withPreviousRunErrorAlerts(int previousRunErrorAlerts)
public AlertingGroupStatus withPreviousRunErrorAlerts(java.lang.Integer previousRunErrorAlerts)
public AlertingGroupStatus makeCopy()
public static AlertingGroupStatus readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static AlertingGroupStatus fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.