public class NotificationRuleBase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NotificationRuleBase.LastRunStatusEnum
Gets or Sets lastRunStatus
|
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_DESCRIPTION |
static String |
SERIALIZED_NAME_ENDPOINT_I_D |
static String |
SERIALIZED_NAME_EVERY |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_LABELS |
static String |
SERIALIZED_NAME_LAST_RUN_ERROR |
static String |
SERIALIZED_NAME_LAST_RUN_STATUS |
static String |
SERIALIZED_NAME_LATEST_COMPLETED |
static String |
SERIALIZED_NAME_LIMIT |
static String |
SERIALIZED_NAME_LIMIT_EVERY |
static String |
SERIALIZED_NAME_LINKS |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_OFFSET |
static String |
SERIALIZED_NAME_ORG_I_D |
static String |
SERIALIZED_NAME_OWNER_I_D |
static String |
SERIALIZED_NAME_RUNBOOK_LINK |
static String |
SERIALIZED_NAME_SLEEP_UNTIL |
static String |
SERIALIZED_NAME_STATUS |
static String |
SERIALIZED_NAME_STATUS_RULES |
static String |
SERIALIZED_NAME_TAG_RULES |
static String |
SERIALIZED_NAME_TASK_I_D |
static String |
SERIALIZED_NAME_UPDATED_AT |
Constructor and Description |
---|
NotificationRuleBase() |
Modifier and Type | Method and Description |
---|---|
NotificationRuleBase |
addLabelsItem(Label labelsItem) |
NotificationRuleBase |
addStatusRulesItem(StatusRule statusRulesItem) |
NotificationRuleBase |
addTagRulesItem(TagRule tagRulesItem) |
NotificationRuleBase |
description(String description) |
NotificationRuleBase |
endpointID(String endpointID) |
boolean |
equals(Object o) |
NotificationRuleBase |
every(String every) |
OffsetDateTime |
getCreatedAt()
Get createdAt
|
String |
getDescription()
An optional description of the notification rule.
|
String |
getEndpointID()
Get endpointID
|
String |
getEvery()
The notification repetition interval.
|
String |
getId()
Get id
|
List<Label> |
getLabels()
Get labels
|
String |
getLastRunError()
Get lastRunError
|
NotificationRuleBase.LastRunStatusEnum |
getLastRunStatus()
Get lastRunStatus
|
OffsetDateTime |
getLatestCompleted()
Timestamp (in RFC3339 date/time format](https://datatracker.ietf.org/doc/html/rfc3339)) of the latest scheduled and completed run.
|
Integer |
getLimit()
Don't notify me more than <limit> times every <limitEvery> seconds.
|
Integer |
getLimitEvery()
Don't notify me more than <limit> times every <limitEvery> seconds.
|
NotificationRuleBaseLinks |
getLinks()
Get links
|
String |
getName()
Human-readable name describing the notification rule.
|
String |
getOffset()
Duration to delay after the schedule, before executing check.
|
String |
getOrgID()
The ID of the organization that owns this notification rule.
|
String |
getOwnerID()
The ID of creator used to create this notification rule.
|
String |
getRunbookLink()
Get runbookLink
|
String |
getSleepUntil()
Get sleepUntil
|
TaskStatusType |
getStatus()
Get status
|
List<StatusRule> |
getStatusRules()
List of status rules the notification rule attempts to match.
|
List<TagRule> |
getTagRules()
List of tag rules the notification rule attempts to match.
|
String |
getTaskID()
The ID of the task associated with this notification rule.
|
OffsetDateTime |
getUpdatedAt()
Get updatedAt
|
int |
hashCode() |
NotificationRuleBase |
labels(List<Label> labels) |
NotificationRuleBase |
limit(Integer limit) |
NotificationRuleBase |
limitEvery(Integer limitEvery) |
NotificationRuleBase |
links(NotificationRuleBaseLinks links) |
NotificationRuleBase |
name(String name) |
NotificationRuleBase |
offset(String offset) |
NotificationRuleBase |
orgID(String orgID) |
NotificationRuleBase |
runbookLink(String runbookLink) |
void |
setDescription(String description) |
void |
setEndpointID(String endpointID) |
void |
setEvery(String every) |
void |
setLabels(List<Label> labels) |
void |
setLimit(Integer limit) |
void |
setLimitEvery(Integer limitEvery) |
void |
setLinks(NotificationRuleBaseLinks links) |
void |
setName(String name) |
void |
setOffset(String offset) |
void |
setOrgID(String orgID) |
void |
setRunbookLink(String runbookLink) |
void |
setSleepUntil(String sleepUntil) |
void |
setStatus(TaskStatusType status) |
void |
setStatusRules(List<StatusRule> statusRules) |
void |
setTagRules(List<TagRule> tagRules) |
void |
setTaskID(String taskID) |
NotificationRuleBase |
sleepUntil(String sleepUntil) |
NotificationRuleBase |
status(TaskStatusType status) |
NotificationRuleBase |
statusRules(List<StatusRule> statusRules) |
NotificationRuleBase |
tagRules(List<TagRule> tagRules) |
NotificationRuleBase |
taskID(String taskID) |
String |
toString() |
public static final String SERIALIZED_NAME_LATEST_COMPLETED
public static final String SERIALIZED_NAME_LAST_RUN_STATUS
public static final String SERIALIZED_NAME_LAST_RUN_ERROR
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ENDPOINT_I_D
public static final String SERIALIZED_NAME_ORG_I_D
public static final String SERIALIZED_NAME_TASK_I_D
public static final String SERIALIZED_NAME_OWNER_I_D
public static final String SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_SLEEP_UNTIL
public static final String SERIALIZED_NAME_EVERY
public static final String SERIALIZED_NAME_OFFSET
public static final String SERIALIZED_NAME_RUNBOOK_LINK
public static final String SERIALIZED_NAME_LIMIT_EVERY
public static final String SERIALIZED_NAME_LIMIT
public static final String SERIALIZED_NAME_TAG_RULES
public static final String SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_STATUS_RULES
public static final String SERIALIZED_NAME_LABELS
public static final String SERIALIZED_NAME_LINKS
public OffsetDateTime getLatestCompleted()
public NotificationRuleBase.LastRunStatusEnum getLastRunStatus()
public String getLastRunError()
public String getId()
public NotificationRuleBase endpointID(String endpointID)
public String getEndpointID()
public void setEndpointID(String endpointID)
public NotificationRuleBase orgID(String orgID)
public String getOrgID()
public void setOrgID(String orgID)
public NotificationRuleBase taskID(String taskID)
public String getTaskID()
public void setTaskID(String taskID)
public String getOwnerID()
public OffsetDateTime getCreatedAt()
public OffsetDateTime getUpdatedAt()
public NotificationRuleBase status(TaskStatusType status)
public TaskStatusType getStatus()
public void setStatus(TaskStatusType status)
public NotificationRuleBase name(String name)
public String getName()
public void setName(String name)
public NotificationRuleBase sleepUntil(String sleepUntil)
public String getSleepUntil()
public void setSleepUntil(String sleepUntil)
public NotificationRuleBase every(String every)
public String getEvery()
public void setEvery(String every)
public NotificationRuleBase offset(String offset)
public String getOffset()
public void setOffset(String offset)
public NotificationRuleBase runbookLink(String runbookLink)
public String getRunbookLink()
public void setRunbookLink(String runbookLink)
public NotificationRuleBase limitEvery(Integer limitEvery)
public Integer getLimitEvery()
public void setLimitEvery(Integer limitEvery)
public NotificationRuleBase limit(Integer limit)
public Integer getLimit()
public void setLimit(Integer limit)
public NotificationRuleBase tagRules(List<TagRule> tagRules)
public NotificationRuleBase addTagRulesItem(TagRule tagRulesItem)
public List<TagRule> getTagRules()
public NotificationRuleBase description(String description)
public String getDescription()
public void setDescription(String description)
public NotificationRuleBase statusRules(List<StatusRule> statusRules)
public NotificationRuleBase addStatusRulesItem(StatusRule statusRulesItem)
public List<StatusRule> getStatusRules()
public void setStatusRules(List<StatusRule> statusRules)
public NotificationRuleBase labels(List<Label> labels)
public NotificationRuleBase addLabelsItem(Label labelsItem)
public NotificationRuleBase links(NotificationRuleBaseLinks links)
public NotificationRuleBaseLinks getLinks()
public void setLinks(NotificationRuleBaseLinks links)
Copyright © 2018–2022 InfluxData, Inc.. All rights reserved.