public abstract class AlertCondition extends MetricCondition
Modifier and Type | Class and Description |
---|---|
protected static class |
AlertCondition.Builder<T extends AlertCondition,B extends AlertCondition.Builder<T,B>>
Builder to make alert condition construction easier.
|
static class |
AlertCondition.ConditionScope
Represents a condition scope.
|
static class |
AlertCondition.ConditionType
Represents the available types for this condition.
|
static class |
AlertCondition.ViolationCloseTimerInterval
Represents a violation close timer duration (in hours).
|
Constructor and Description |
---|
AlertCondition()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getConditionScope()
Returns the condition scope of the alert condition.
|
String |
getGcMetric()
Returns the gc metric of the alert condition.
|
String |
getType()
Returns the type of the alert condition.
|
UserDefined |
getUserDefined()
Returns the user defined of the alert condition.
|
int |
getViolationCloseTimer()
Returns the violation close timer of the alert condition (in hours).
|
void |
setConditionScope(AlertCondition.ConditionScope conditionScope)
Sets the condition scope of the alert condition.
|
void |
setConditionScope(String conditionScope)
Sets the condition scope of the alert condition.
|
void |
setGcMetric(String gcMetric)
Sets the gc metric of the alert condition.
|
void |
setType(String type)
Sets the type of the alert condition.
|
void |
setUserDefined(UserDefined userDefined)
Sets the user defined of the alert condition.
|
void |
setViolationCloseTimer(AlertCondition.ViolationCloseTimerInterval violationCloseTimer)
Sets the violation close timer of the alert condition (in hours).
|
void |
setViolationCloseTimer(int violationCloseTimer)
Sets the violation close timer of the alert condition (in hours).
|
String |
toString()
Returns a string representation of the object.
|
addEntity, getEntities, getEntitiesArray, getMetric, setEntities, setMetric
addTerm, getTerms, setTerms
getEnabled, getRunbookUrl, setEnabled, setRunbookUrl
getName, setName
getId, setId
public void setType(String type)
type
- The type of the alert conditionpublic String getType()
public void setGcMetric(String gcMetric)
gcMetric
- The gc metric of the alert conditionpublic String getGcMetric()
public void setConditionScope(String conditionScope)
conditionScope
- The condition scope of the alert conditionpublic void setConditionScope(AlertCondition.ConditionScope conditionScope)
conditionScope
- The condition scope of the alert conditionpublic String getConditionScope()
public void setViolationCloseTimer(int violationCloseTimer)
violationCloseTimer
- The violation close timer of the alert conditionpublic void setViolationCloseTimer(AlertCondition.ViolationCloseTimerInterval violationCloseTimer)
violationCloseTimer
- The violation close timer of the alert conditionpublic int getViolationCloseTimer()
public void setUserDefined(UserDefined userDefined)
userDefined
- The user defined of the alert conditionpublic UserDefined getUserDefined()
public String toString()
toString
in class MetricCondition
Copyright © 2018. All rights reserved.