Class AbstractResourceAlertResponse
java.lang.Object
com.iland.core.web.rest.response.notification.AbstractResourceAlertResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UserEdgeResourceAlertResponse,UserExtNetworkResourceAlertResponse,UserVappResourceAlertResponse,UserVdcResourceAlertResponse,UserVmResourceAlertResponse
Abstract Resource Alert Response.
- Author:
- Nick Kasprzak
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet action to perform when alert is triggered.intGet the breach period that is required in order for the alert to be triggered.getGroup()Get the performance counter group attached to this alert.getName()Get the performance counter name attached to this alert.Get equality relation.getType()Get the performance counter type attached to this alert.Get the username associated with the alert.inthashCode()booleanSet whether the alert is enabled.toString()protected com.google.common.base.MoreObjects.ToStringHelper
-
Field Details
-
group
-
name
-
type
-
username
-
action
-
equalityRelation
-
enabled
@Since(1.0) @Expose protected boolean enabled -
breachPeriod
@Since(1.0) @Expose @SerializedName("breach") protected int breachPeriod
-
-
Constructor Details
-
AbstractResourceAlertResponse
-
-
Method Details
-
getGroup
Get the performance counter group attached to this alert.- Returns:
Stringperformance counter group
-
getName
Get the performance counter name attached to this alert.- Returns:
Stringperformance counter name
-
getType
Get the performance counter type attached to this alert.- Returns:
Stringperformance counter type
-
getUsername
Get the username associated with the alert.- Returns:
Stringusername
-
getRelation
Get equality relation.e.g. '<=' or '>='
- Returns:
Stringequality relation
-
getAction
Get action to perform when alert is triggered.- Returns:
Stringaction
-
getBreachPeriod
public int getBreachPeriod()Get the breach period that is required in order for the alert to be triggered.i.e. the number of consecutive periods in which the threshold must be met before alert is sent.
- Returns:
- breach period
-
isEnabled
public boolean isEnabled()Set whether the alert is enabled.- Returns:
- enabled
-
equals
-
hashCode
public int hashCode() -
toString
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
-