public class TelegramNotificationEndpoint extends NotificationEndpoint
NotificationEndpointBase.StatusEnum| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_CHANNEL |
static String |
SERIALIZED_NAME_TOKEN |
SERIALIZED_NAME_CREATED_AT, SERIALIZED_NAME_DESCRIPTION, SERIALIZED_NAME_ID, SERIALIZED_NAME_LABELS, SERIALIZED_NAME_LINKS, SERIALIZED_NAME_NAME, SERIALIZED_NAME_ORG_I_D, SERIALIZED_NAME_STATUS, SERIALIZED_NAME_TYPE, SERIALIZED_NAME_UPDATED_AT, SERIALIZED_NAME_USER_I_D| Constructor and Description |
|---|
TelegramNotificationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
TelegramNotificationEndpoint |
channel(String channel) |
boolean |
equals(Object o) |
String |
getChannel()
ID of the telegram channel, a chat_id in https://core.telegram.org/bots/api#sendmessage .
|
String |
getToken()
Specifies the Telegram bot token.
|
int |
hashCode() |
void |
setChannel(String channel) |
void |
setToken(String token) |
TelegramNotificationEndpoint |
token(String token) |
String |
toString() |
addLabelsItem, description, getCreatedAt, getDescription, getId, getLabels, getLinks, getName, getOrgID, getStatus, getType, getUpdatedAt, getUserID, id, labels, links, name, orgID, setDescription, setId, setLabels, setLinks, setName, setOrgID, setStatus, setType, setUserID, status, type, userIDpublic static final String SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_CHANNEL
public TelegramNotificationEndpoint token(String token)
public String getToken()
public void setToken(String token)
public TelegramNotificationEndpoint channel(String channel)
public String getChannel()
public void setChannel(String channel)
public boolean equals(Object o)
equals in class NotificationEndpointpublic int hashCode()
hashCode in class NotificationEndpointpublic String toString()
toString in class NotificationEndpointCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.