public class AlertTarget extends Object
AlertTarget
class represents a dispatch mechanism and audience
that will receive information about alerts in the system.Constructor and Description |
---|
AlertTarget() |
Modifier and Type | Method and Description |
---|---|
static AlertTarget |
coerce(AlertTargetEntity entity) |
String |
getDescription() |
Long |
getId() |
String |
getName() |
String |
getNotificationType() |
Map<String,String> |
getProperties() |
boolean |
isEnabled()
Gets whether the alert target is enabled.
|
boolean |
isGlobal()
Gets whether the alert target is global.
|
void |
setDescription(String description) |
void |
setEnabled(boolean isEnabled)
Sets whether the alert target is enabled.
|
void |
setGlobal(boolean isGlobal)
Sets whether the alert target is global.
|
void |
setId(Long id) |
void |
setName(String name) |
void |
setNotificationType(String notificationType) |
void |
setProperties(Map<String,String> properties) |
public Long getId()
public void setId(Long id)
id
- the id to setpublic String getName()
public void setName(String name)
name
- the name to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic String getNotificationType()
public void setNotificationType(String notificationType)
notificationType
- the notificationType to setpublic void setProperties(Map<String,String> properties)
properties
- the properties to setpublic boolean isGlobal()
true
if global.public void setGlobal(boolean isGlobal)
isGlobal
- true
if the alert target is global.public boolean isEnabled()
true
if enabled.public void setEnabled(boolean isEnabled)
isEnabled
- true
if the alert target is enabled.public static AlertTarget coerce(AlertTargetEntity entity)
entity
- Copyright © 2022 Apache Software Foundation. All rights reserved.