@ThreadSafe public interface NotificationRulesApi
| Modifier and Type | Method and Description |
|---|---|
LabelResponse |
addLabel(Label label,
NotificationRule notificationRule)
Add a label to a notification rule.
|
LabelResponse |
addLabel(String labelID,
String ruleID)
Add a label to a notification rule.
|
HTTPNotificationRule |
createHTTPRule(String name,
String every,
RuleStatusLevel status,
List<TagRule> tagRules,
HTTPNotificationEndpoint endpoint,
String orgID)
Add a HTTP notification rule.
|
PagerDutyNotificationRule |
createPagerDutyRule(String name,
String every,
String messageTemplate,
RuleStatusLevel status,
List<TagRule> tagRules,
PagerDutyNotificationEndpoint endpoint,
String orgID)
Add a PagerDuty notification rule.
|
NotificationRule |
createRule(NotificationRule rule)
Add a notification rule.
|
SlackNotificationRule |
createSlackRule(String name,
String every,
String messageTemplate,
RuleStatusLevel status,
List<TagRule> tagRules,
SlackNotificationEndpoint endpoint,
String orgID)
Add a Slack notification rule.
|
SlackNotificationRule |
createSlackRule(String name,
String every,
String messageTemplate,
RuleStatusLevel status,
SlackNotificationEndpoint endpoint,
String orgID)
Add a Slack notification rule.
|
void |
deleteLabel(Label label,
NotificationRule notificationRule)
Delete label from a notification rule.
|
void |
deleteLabel(String labelID,
String ruleID)
Delete label from a notification rule.
|
void |
deleteNotificationRule(NotificationRule notificationRule)
Delete a notification rule.
|
void |
deleteNotificationRule(String ruleID)
Delete a notification rule.
|
NotificationRule |
findNotificationRuleByID(String ruleID)
Get a notification rule.
|
List<NotificationRule> |
findNotificationRules(String orgID)
Get notification rules.
|
NotificationRules |
findNotificationRules(String orgID,
FindOptions findOptions)
Get all notification rules.
|
List<Label> |
getLabels(NotificationRule notificationRule)
List all labels for a notification rule.
|
List<Label> |
getLabels(String ruleID)
List all labels for a notification rule.
|
NotificationRule |
updateNotificationRule(NotificationRule notificationRule)
Update a notification rule.
|
NotificationRule |
updateNotificationRule(String ruleID,
NotificationRuleUpdate update)
Update a notification rule.
|
@Nonnull SlackNotificationRule createSlackRule(@Nonnull String name, @Nonnull String every, @Nonnull String messageTemplate, @Nonnull RuleStatusLevel status, @Nonnull SlackNotificationEndpoint endpoint, @Nonnull String orgID)
name - Human-readable name describing the notification rule.every - The notification repetition interval.messageTemplate - The template used to generate notification.status - Status rule the notification rule attempts to match.endpoint - The endpoint to use for notification.orgID - The ID of the organization that owns this notification rule.@Nonnull SlackNotificationRule createSlackRule(@Nonnull String name, @Nonnull String every, @Nonnull String messageTemplate, @Nonnull RuleStatusLevel status, @Nonnull List<TagRule> tagRules, @Nonnull SlackNotificationEndpoint endpoint, @Nonnull String orgID)
name - Human-readable name describing the notification rule.every - The notification repetition interval.messageTemplate - The template used to generate notification.status - Status rule the notification rule attempts to match.tagRules - List of tag rules the notification rule attempts to match.endpoint - The endpoint to use for notification.orgID - The ID of the organization that owns this notification rule.@Nonnull PagerDutyNotificationRule createPagerDutyRule(@Nonnull String name, @Nonnull String every, @Nonnull String messageTemplate, @Nonnull RuleStatusLevel status, @Nonnull List<TagRule> tagRules, @Nonnull PagerDutyNotificationEndpoint endpoint, @Nonnull String orgID)
name - Human-readable name describing the notification rule.every - The notification repetition interval.messageTemplate - The template used to generate notification.status - Status rule the notification rule attempts to match.tagRules - List of tag rules the notification rule attempts to match.endpoint - The endpoint to use for notification.orgID - The ID of the organization that owns this notification rule.@Nonnull HTTPNotificationRule createHTTPRule(@Nonnull String name, @Nonnull String every, @Nonnull RuleStatusLevel status, @Nonnull List<TagRule> tagRules, @Nonnull HTTPNotificationEndpoint endpoint, @Nonnull String orgID)
name - Human-readable name describing the notification rule.every - The notification repetition interval.status - Status rule the notification rule attempts to match.tagRules - List of tag rules the notification rule attempts to match.endpoint - The endpoint to use for notification.orgID - The ID of the organization that owns this notification rule.@Nonnull NotificationRule createRule(@Nonnull NotificationRule rule)
rule - Notification rule to create@Nonnull NotificationRule updateNotificationRule(@Nonnull NotificationRule notificationRule)
notificationRule - Notification rule update to apply@Nonnull NotificationRule updateNotificationRule(@Nonnull String ruleID, @Nonnull NotificationRuleUpdate update)
ruleID - The notification rule ID.update - Notification rule update to applyvoid deleteNotificationRule(@Nonnull NotificationRule notificationRule)
notificationRule - The notification rulevoid deleteNotificationRule(@Nonnull String ruleID)
ruleID - The notification rule ID@Nonnull NotificationRule findNotificationRuleByID(@Nonnull String ruleID)
ruleID - The notification rule ID@Nonnull List<NotificationRule> findNotificationRules(@Nonnull String orgID)
orgID - Only show notification rules that belong to a specific organization ID.@Nonnull NotificationRules findNotificationRules(@Nonnull String orgID, @Nonnull FindOptions findOptions)
orgID - Only show notification rules that belong to a specific organization ID.findOptions - find options@Nonnull List<Label> getLabels(@Nonnull NotificationRule notificationRule)
notificationRule - The notification rule.@Nonnull List<Label> getLabels(@Nonnull String ruleID)
ruleID - The notification rule ID.@Nonnull LabelResponse addLabel(@Nonnull Label label, @Nonnull NotificationRule notificationRule)
label - Label to addnotificationRule - The notification rule.@Nonnull LabelResponse addLabel(@Nonnull String labelID, @Nonnull String ruleID)
labelID - Label to addruleID - The notification rule ID.void deleteLabel(@Nonnull Label label, @Nonnull NotificationRule notificationRule)
label - The label to delete.notificationRule - The notification rule.Copyright © 2018–2021 InfluxData, Inc.. All rights reserved.