public class AlertDefinitionResponse extends Object
AlertDefinitionResponse encapsulates the definition information
that should be serialized and returned in REST requests for alerts, groups,
and targets.| Constructor and Description |
|---|
AlertDefinitionResponse() |
| Modifier and Type | Method and Description |
|---|---|
static AlertDefinitionResponse |
coerce(AlertDefinitionEntity entity)
Gets an
AlertDefinitionResponse from the supplied entity. |
String |
getComponentName() |
Long |
getDefinitionId() |
String |
getDescription() |
String |
getLabel() |
String |
getName() |
String |
getServiceName() |
SourceType |
getSourceType()
Gets the type of alert.
|
boolean |
isEnabled()
Gets whether this definition is enabled.
|
void |
setComponentName(String name) |
void |
setDefinitionId(Long definitionId) |
void |
setDescription(String definitionDescription)
Sets the description for this definition.
|
void |
setEnabled(boolean enabled)
Sets whether this definition is enabled.
|
void |
setLabel(String definitionLabel)
Sets the label for this definition.
|
void |
setName(String definitionName) |
void |
setServiceName(String name) |
void |
setSourceType(SourceType sourceType)
Sets the type of alert.
|
String |
toString() |
public Long getDefinitionId()
public void setDefinitionId(Long definitionId)
definitionId - the definitionId to setpublic String getServiceName()
public void setServiceName(String name)
name - the service namepublic String getComponentName()
public void setComponentName(String name)
name - the component namepublic String getName()
public void setName(String definitionName)
definitionName - the definition name.public String getLabel()
null if none.public void setLabel(String definitionLabel)
definitionLabel - public String getDescription()
null if none.public void setDescription(String definitionDescription)
definitionDescription - public boolean isEnabled()
true if enabled.public void setEnabled(boolean enabled)
enabled - true if enabled.public SourceType getSourceType()
public void setSourceType(SourceType sourceType)
sourceType - the sourceType to setpublic static AlertDefinitionResponse coerce(AlertDefinitionEntity entity)
AlertDefinitionResponse from the supplied entity.entity - the entity (not null).Copyright © 2022 Apache Software Foundation. All rights reserved.