public class AlertSummaryDTO extends Object
Constructor and Description |
---|
AlertSummaryDTO(Number ok,
Number warning,
Number critical,
Number unknown,
Number maintenance)
Constructor, used by JPA.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCriticalCount() |
int |
getMaintenanceCount() |
int |
getOkCount() |
int |
getUnknownCount() |
int |
getWarningCount() |
int |
hashCode() |
void |
setCriticalCount(int criticalCount)
Sets the count of
AlertState.CRITICAL states. |
void |
setMaintenanceCount(int maintenanceCount)
Sets the count of alerts in maintenance state.
|
void |
setOkCount(int okCount)
Sets the count of
AlertState.OK states. |
void |
setUnknownCount(int unknownCount)
Sets the count of
AlertState.UNKNOWN states. |
void |
setWarningCount(int warningCount)
Sets the count of
AlertState.WARNING states. |
public int getOkCount()
AlertState.OK
statespublic int getWarningCount()
AlertState.WARNING
statespublic int getCriticalCount()
AlertState.CRITICAL
statespublic int getUnknownCount()
AlertState.UNKNOWN
statespublic int getMaintenanceCount()
public void setOkCount(int okCount)
AlertState.OK
states.okCount
- the okCount to setpublic void setWarningCount(int warningCount)
AlertState.WARNING
states.warningCount
- the warningCount to setpublic void setCriticalCount(int criticalCount)
AlertState.CRITICAL
states.criticalCount
- the criticalCount to setpublic void setUnknownCount(int unknownCount)
AlertState.UNKNOWN
states.unknownCount
- the unknownCount to setpublic void setMaintenanceCount(int maintenanceCount)
maintenanceCount
- the maintenanceCount to setCopyright © 2022 Apache Software Foundation. All rights reserved.