public interface NotificationEndpointsApi
Modifier and Type | Method and Description |
---|---|
LabelResponse |
addLabel(Label label,
NotificationEndpoint endpoint)
Add a label to a notification endpoint.
|
LabelResponse |
addLabel(String labelID,
String endpointID)
Add a label to a notification endpoint.
|
HTTPNotificationEndpoint |
cloneHTTPEndpoint(String name,
HTTPNotificationEndpoint endpoint)
Clone a Http Notification endpoint without authentication.
|
HTTPNotificationEndpoint |
cloneHTTPEndpoint(String name,
String endpointID)
Clone a Http Notification endpoint without authentication.
|
HTTPNotificationEndpoint |
cloneHTTPEndpointBasicAuth(String name,
String username,
String password,
HTTPNotificationEndpoint endpoint)
Clone a Http Notification endpoint with Http Basic authentication.
|
HTTPNotificationEndpoint |
cloneHTTPEndpointBasicAuth(String name,
String username,
String password,
String endpointID)
Clone a Http Notification endpoint with Http Basic authentication.
|
HTTPNotificationEndpoint |
cloneHTTPEndpointBearer(String name,
String token,
HTTPNotificationEndpoint endpoint)
Clone a Http Notification endpoint with Bearer authentication.
|
HTTPNotificationEndpoint |
cloneHTTPEndpointBearer(String name,
String token,
String endpointID)
Clone a Http Notification endpoint with Bearer authentication.
|
PagerDutyNotificationEndpoint |
clonePagerDutyEndpoint(String name,
String routingKey,
PagerDutyNotificationEndpoint endpoint)
Clone a PagerDuty Notification endpoint.
|
PagerDutyNotificationEndpoint |
clonePagerDutyEndpoint(String name,
String routingKey,
String endpointID)
Clone a PagerDuty Notification endpoint.
|
SlackNotificationEndpoint |
cloneSlackEndpoint(String name,
String token,
SlackNotificationEndpoint endpoint)
Clone a Slack Notification endpoint.
|
SlackNotificationEndpoint |
cloneSlackEndpoint(String name,
String token,
String endpointID)
Clone a Slack Notification endpoint.
|
NotificationEndpoint |
createEndpoint(NotificationEndpoint notificationEndpoint)
Add new notification endpoint.
|
HTTPNotificationEndpoint |
createHTTPEndpoint(String name,
String url,
HTTPNotificationEndpoint.MethodEnum method,
String orgID)
Add new HTTP notification endpoint without authentication.
|
HTTPNotificationEndpoint |
createHTTPEndpointBasicAuth(String name,
String url,
HTTPNotificationEndpoint.MethodEnum method,
String username,
String password,
String orgID)
Add new HTTP notification endpoint with Http Basic authentication.
|
HTTPNotificationEndpoint |
createHTTPEndpointBearer(String name,
String url,
HTTPNotificationEndpoint.MethodEnum method,
String token,
String orgID)
Add new HTTP notification endpoint with Bearer authentication.
|
PagerDutyNotificationEndpoint |
createPagerDutyEndpoint(String name,
String clientURL,
String routingKey,
String orgID)
Add new PagerDuty notification endpoint.
|
SlackNotificationEndpoint |
createSlackEndpoint(String name,
String url,
String orgID)
Add new Slack notification endpoint.
|
SlackNotificationEndpoint |
createSlackEndpoint(String name,
String url,
String token,
String orgID)
Add new Slack notification endpoint.
|
void |
deleteLabel(Label label,
NotificationEndpoint endpoint)
Delete label from a notification endpoint.
|
void |
deleteLabel(String labelID,
String endpointID)
Delete label from a notification endpoint.
|
void |
deleteNotificationEndpoint(NotificationEndpoint notificationEndpoint)
Delete a notification endpoint.
|
void |
deleteNotificationEndpoint(String endpointID)
Delete a notification endpoint.
|
NotificationEndpoint |
findNotificationEndpointByID(String endpointID)
Get a notification endpoint.
|
List<NotificationEndpoint> |
findNotificationEndpoints(String orgID)
Get notification endpoints.
|
NotificationEndpoints |
findNotificationEndpoints(String orgID,
FindOptions findOptions)
Get all notification endpoints.
|
List<Label> |
getLabels(NotificationEndpoint endpoint)
List all labels for a notification endpoint.
|
List<Label> |
getLabels(String endpointID)
List all labels for a notification endpoint.
|
NotificationEndpoint |
updateEndpoint(NotificationEndpoint notificationEndpoint)
Update a notification endpoint.
|
NotificationEndpoint |
updateEndpoint(String endpointID,
NotificationEndpointUpdate notificationEndpointUpdate)
Update a notification endpoint.
|
@Nonnull SlackNotificationEndpoint createSlackEndpoint(@Nonnull String name, @Nonnull String url, @Nonnull String orgID)
url
should be defined.name
- Endpoint nameurl
- Slack WebHook URLorgID
- Owner of an endpoint@Nonnull SlackNotificationEndpoint createSlackEndpoint(@Nonnull String name, @Nonnull String url, @Nullable String token, @Nonnull String orgID)
url
should be defined.name
- Endpoint nameurl
- Slack WebHook URLtoken
- Slack WebHook TokenorgID
- Owner of an endpoint@Nonnull PagerDutyNotificationEndpoint createPagerDutyEndpoint(@Nonnull String name, @Nonnull String clientURL, @Nonnull String routingKey, @Nonnull String orgID)
name
- Endpoint nameclientURL
- Client URLroutingKey
- Routing KeyorgID
- Owner of an endpoint@Nonnull HTTPNotificationEndpoint createHTTPEndpoint(@Nonnull String name, @Nonnull String url, @Nonnull HTTPNotificationEndpoint.MethodEnum method, @Nonnull String orgID)
name
- Endpoint nameurl
- URLmethod
- HTTP MethodorgID
- Owner of an endpoint@Nonnull HTTPNotificationEndpoint createHTTPEndpointBasicAuth(@Nonnull String name, @Nonnull String url, @Nonnull HTTPNotificationEndpoint.MethodEnum method, @Nonnull String username, @Nonnull String password, @Nonnull String orgID)
name
- Endpoint nameurl
- URLmethod
- HTTP Methodusername
- HTTP Basic Usernamepassword
- HTTP Basic PasswordorgID
- Owner of an endpoint@Nonnull HTTPNotificationEndpoint createHTTPEndpointBearer(@Nonnull String name, @Nonnull String url, @Nonnull HTTPNotificationEndpoint.MethodEnum method, @Nonnull String token, @Nonnull String orgID)
name
- Endpoint nameurl
- URLmethod
- HTTP Methodtoken
- Bearer tokenorgID
- Owner of an endpoint@Nonnull NotificationEndpoint createEndpoint(@Nonnull NotificationEndpoint notificationEndpoint)
notificationEndpoint
- notificationEndpoint to create@Nonnull NotificationEndpoint updateEndpoint(@Nonnull NotificationEndpoint notificationEndpoint)
NotificationEndpointUpdate
.notificationEndpoint
- update to apply@Nonnull NotificationEndpoint updateEndpoint(@Nonnull String endpointID, @Nonnull NotificationEndpointUpdate notificationEndpointUpdate)
endpointID
- ID of notification endpointnotificationEndpointUpdate
- update to applyvoid deleteNotificationEndpoint(@Nonnull NotificationEndpoint notificationEndpoint)
notificationEndpoint
- notification endpointvoid deleteNotificationEndpoint(@Nonnull String endpointID)
endpointID
- ID of notification endpoint@Nonnull List<NotificationEndpoint> findNotificationEndpoints(@Nonnull String orgID)
orgID
- only show notification endpoints belonging to specified organization@Nonnull NotificationEndpoints findNotificationEndpoints(@Nonnull String orgID, @Nonnull FindOptions findOptions)
orgID
- only show notification endpoints belonging to specified organizationfindOptions
- the find options@Nonnull SlackNotificationEndpoint cloneSlackEndpoint(@Nonnull String name, @Nullable String token, @Nonnull String endpointID)
name
- name of cloned endpointtoken
- Slack WebHook TokenendpointID
- ID of endpoint to clone@Nonnull SlackNotificationEndpoint cloneSlackEndpoint(@Nonnull String name, @Nullable String token, @Nonnull SlackNotificationEndpoint endpoint)
name
- name of cloned endpointtoken
- Slack WebHook Tokenendpoint
- endpoint to clone@Nonnull PagerDutyNotificationEndpoint clonePagerDutyEndpoint(@Nonnull String name, @Nonnull String routingKey, @Nonnull String endpointID)
name
- name of cloned endpointroutingKey
- Routing KeyendpointID
- ID of endpoint to clone@Nonnull PagerDutyNotificationEndpoint clonePagerDutyEndpoint(@Nonnull String name, @Nonnull String routingKey, @Nonnull PagerDutyNotificationEndpoint endpoint)
name
- name of cloned endpointroutingKey
- Routing Keyendpoint
- endpoint to clone@Nonnull HTTPNotificationEndpoint cloneHTTPEndpoint(@Nonnull String name, @Nonnull String endpointID)
name
- name of cloned endpointendpointID
- ID of endpoint to clone@Nonnull HTTPNotificationEndpoint cloneHTTPEndpoint(@Nonnull String name, @Nonnull HTTPNotificationEndpoint endpoint)
name
- name of cloned endpointendpoint
- endpoint to clone@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBasicAuth(@Nonnull String name, @Nonnull String username, @Nonnull String password, @Nonnull String endpointID)
name
- name of cloned endpointusername
- HTTP Basic Usernamepassword
- HTTP Basic PasswordendpointID
- ID of endpoint to clone@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBasicAuth(@Nonnull String name, @Nonnull String username, @Nonnull String password, @Nonnull HTTPNotificationEndpoint endpoint)
name
- name of cloned endpointusername
- HTTP Basic Usernamepassword
- HTTP Basic Passwordendpoint
- endpoint to clone@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBearer(@Nonnull String name, @Nonnull String token, @Nonnull String endpointID)
name
- name of cloned endpointtoken
- Bearer tokenendpointID
- ID of endpoint to clone@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBearer(@Nonnull String name, @Nonnull String token, @Nonnull HTTPNotificationEndpoint endpoint)
name
- name of cloned endpointtoken
- Bearer tokenendpoint
- endpoint to clone@Nonnull NotificationEndpoint findNotificationEndpointByID(@Nonnull String endpointID)
endpointID
- ID of notification endpoint@Nonnull List<Label> getLabels(@Nonnull NotificationEndpoint endpoint)
endpoint
- the notification endpoint@Nonnull List<Label> getLabels(@Nonnull String endpointID)
endpointID
- ID of the notification endpoint@Nonnull LabelResponse addLabel(@Nonnull Label label, @Nonnull NotificationEndpoint endpoint)
label
- label to addendpoint
- the notification endpoint@Nonnull LabelResponse addLabel(@Nonnull String labelID, @Nonnull String endpointID)
endpointID
- the ID of the notification endpointlabelID
- the ID of label to addvoid deleteLabel(@Nonnull Label label, @Nonnull NotificationEndpoint endpoint)
label
- the label to deleteendpoint
- the notification endpointCopyright © 2018–2020 InfluxData, Inc.. All rights reserved.