Package com.influxdb.client
Interface NotificationEndpointsApi
@ThreadSafe
public interface NotificationEndpointsApi
The client of the InfluxDB 2.x that implement NotificationEndpoint HTTP API.
- Author:
- Jakub Bednar (11/09/2019 09:20)
-
Method Summary
Modifier and TypeMethodDescriptionaddLabel
(Label label, NotificationEndpoint endpoint) Add a label to a notification endpoint.Add a label to a notification endpoint.cloneHTTPEndpoint
(String name, HTTPNotificationEndpoint endpoint) Clone a Http Notification endpoint without authentication.cloneHTTPEndpoint
(String name, String endpointID) Clone a Http Notification endpoint without authentication.cloneHTTPEndpointBasicAuth
(String name, String username, String password, HTTPNotificationEndpoint endpoint) Clone a Http Notification endpoint with Http Basic authentication.cloneHTTPEndpointBasicAuth
(String name, String username, String password, String endpointID) Clone a Http Notification endpoint with Http Basic authentication.cloneHTTPEndpointBearer
(String name, String token, HTTPNotificationEndpoint endpoint) Clone a Http Notification endpoint with Bearer authentication.cloneHTTPEndpointBearer
(String name, String token, String endpointID) Clone a Http Notification endpoint with Bearer authentication.clonePagerDutyEndpoint
(String name, String routingKey, PagerDutyNotificationEndpoint endpoint) Clone a PagerDuty Notification endpoint.clonePagerDutyEndpoint
(String name, String routingKey, String endpointID) Clone a PagerDuty Notification endpoint.cloneSlackEndpoint
(String name, String token, SlackNotificationEndpoint endpoint) Clone a Slack Notification endpoint.cloneSlackEndpoint
(String name, String token, String endpointID) Clone a Slack Notification endpoint.createEndpoint
(NotificationEndpoint notificationEndpoint) Add new notification endpoint.createHTTPEndpoint
(String name, String url, HTTPNotificationEndpoint.MethodEnum method, String orgID) Add new HTTP notification endpoint without authentication.createHTTPEndpointBasicAuth
(String name, String url, HTTPNotificationEndpoint.MethodEnum method, String username, String password, String orgID) Add new HTTP notification endpoint with Http Basic authentication.createHTTPEndpointBearer
(String name, String url, HTTPNotificationEndpoint.MethodEnum method, String token, String orgID) Add new HTTP notification endpoint with Bearer authentication.createPagerDutyEndpoint
(String name, String clientURL, String routingKey, String orgID) Add new PagerDuty notification endpoint.createSlackEndpoint
(String name, String url, String orgID) Add new Slack notification endpoint.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.findNotificationEndpointByID
(String endpointID) Get a notification endpoint.findNotificationEndpoints
(String orgID) Get notification endpoints.findNotificationEndpoints
(String orgID, FindOptions findOptions) Get all notification endpoints.getLabels
(NotificationEndpoint endpoint) List all labels for a notification endpoint.List all labels for a notification endpoint.updateEndpoint
(NotificationEndpoint notificationEndpoint) Update a notification endpoint.updateEndpoint
(String endpointID, NotificationEndpointUpdate notificationEndpointUpdate) Update a notification endpoint.
-
Method Details
-
createSlackEndpoint
@Nonnull SlackNotificationEndpoint createSlackEndpoint(@Nonnull String name, @Nonnull String url, @Nonnull String orgID) Add new Slack notification endpoint. Theurl
should be defined.- Parameters:
name
- Endpoint nameurl
- Slack WebHook URLorgID
- Owner of an endpoint- Returns:
- created Slack notification endpoint
-
createSlackEndpoint
@Nonnull SlackNotificationEndpoint createSlackEndpoint(@Nonnull String name, @Nonnull String url, @Nullable String token, @Nonnull String orgID) Add new Slack notification endpoint. Theurl
should be defined.- Parameters:
name
- Endpoint nameurl
- Slack WebHook URLtoken
- Slack WebHook TokenorgID
- Owner of an endpoint- Returns:
- created Slack notification endpoint
-
createPagerDutyEndpoint
@Nonnull PagerDutyNotificationEndpoint createPagerDutyEndpoint(@Nonnull String name, @Nonnull String clientURL, @Nonnull String routingKey, @Nonnull String orgID) Add new PagerDuty notification endpoint.- Parameters:
name
- Endpoint nameclientURL
- Client URLroutingKey
- Routing KeyorgID
- Owner of an endpoint- Returns:
- created PagerDuty notification endpoint
-
createHTTPEndpoint
@Nonnull HTTPNotificationEndpoint createHTTPEndpoint(@Nonnull String name, @Nonnull String url, @Nonnull HTTPNotificationEndpoint.MethodEnum method, @Nonnull String orgID) Add new HTTP notification endpoint without authentication.- Parameters:
name
- Endpoint nameurl
- URLmethod
- HTTP MethodorgID
- Owner of an endpoint- Returns:
- created HTTP notification endpoint
-
createHTTPEndpointBasicAuth
@Nonnull HTTPNotificationEndpoint createHTTPEndpointBasicAuth(@Nonnull String name, @Nonnull String url, @Nonnull HTTPNotificationEndpoint.MethodEnum method, @Nonnull String username, @Nonnull String password, @Nonnull String orgID) Add new HTTP notification endpoint with Http Basic authentication.- Parameters:
name
- Endpoint nameurl
- URLmethod
- HTTP Methodusername
- HTTP Basic Usernamepassword
- HTTP Basic PasswordorgID
- Owner of an endpoint- Returns:
- created HTTP notification endpoint
-
createHTTPEndpointBearer
@Nonnull HTTPNotificationEndpoint createHTTPEndpointBearer(@Nonnull String name, @Nonnull String url, @Nonnull HTTPNotificationEndpoint.MethodEnum method, @Nonnull String token, @Nonnull String orgID) Add new HTTP notification endpoint with Bearer authentication.- Parameters:
name
- Endpoint nameurl
- URLmethod
- HTTP Methodtoken
- Bearer tokenorgID
- Owner of an endpoint- Returns:
- created HTTP notification endpoint
-
createEndpoint
Add new notification endpoint.- Parameters:
notificationEndpoint
- notificationEndpoint to create- Returns:
- Notification endpoint created
-
updateEndpoint
Update a notification endpoint. The updates is used for fields fromNotificationEndpointUpdate
.- Parameters:
notificationEndpoint
- update to apply- Returns:
- An updated notification endpoint
-
updateEndpoint
@Nonnull NotificationEndpoint updateEndpoint(@Nonnull String endpointID, @Nonnull NotificationEndpointUpdate notificationEndpointUpdate) Update a notification endpoint.- Parameters:
endpointID
- ID of notification endpointnotificationEndpointUpdate
- update to apply- Returns:
- An updated notification endpoint
-
deleteNotificationEndpoint
Delete a notification endpoint.- Parameters:
notificationEndpoint
- notification endpoint
-
deleteNotificationEndpoint
Delete a notification endpoint.- Parameters:
endpointID
- ID of notification endpoint
-
findNotificationEndpoints
Get notification endpoints.- Parameters:
orgID
- only show notification endpoints belonging to specified organization- Returns:
- A list of notification endpoint
-
findNotificationEndpoints
@Nonnull NotificationEndpoints findNotificationEndpoints(@Nonnull String orgID, @Nonnull FindOptions findOptions) Get all notification endpoints.- Parameters:
orgID
- only show notification endpoints belonging to specified organizationfindOptions
- the find options- Returns:
- A list of notification endpoint
-
cloneSlackEndpoint
@Nonnull SlackNotificationEndpoint cloneSlackEndpoint(@Nonnull String name, @Nullable String token, @Nonnull String endpointID) Clone a Slack Notification endpoint.- Parameters:
name
- name of cloned endpointtoken
- Slack WebHook TokenendpointID
- ID of endpoint to clone- Returns:
- Notification endpoint cloned
-
cloneSlackEndpoint
@Nonnull SlackNotificationEndpoint cloneSlackEndpoint(@Nonnull String name, @Nullable String token, @Nonnull SlackNotificationEndpoint endpoint) Clone a Slack Notification endpoint.- Parameters:
name
- name of cloned endpointtoken
- Slack WebHook Tokenendpoint
- endpoint to clone- Returns:
- Notification endpoint cloned
-
clonePagerDutyEndpoint
@Nonnull PagerDutyNotificationEndpoint clonePagerDutyEndpoint(@Nonnull String name, @Nonnull String routingKey, @Nonnull String endpointID) Clone a PagerDuty Notification endpoint.- Parameters:
name
- name of cloned endpointroutingKey
- Routing KeyendpointID
- ID of endpoint to clone- Returns:
- Notification endpoint cloned
-
clonePagerDutyEndpoint
@Nonnull PagerDutyNotificationEndpoint clonePagerDutyEndpoint(@Nonnull String name, @Nonnull String routingKey, @Nonnull PagerDutyNotificationEndpoint endpoint) Clone a PagerDuty Notification endpoint.- Parameters:
name
- name of cloned endpointroutingKey
- Routing Keyendpoint
- endpoint to clone- Returns:
- Notification endpoint cloned
-
cloneHTTPEndpoint
@Nonnull HTTPNotificationEndpoint cloneHTTPEndpoint(@Nonnull String name, @Nonnull String endpointID) Clone a Http Notification endpoint without authentication.- Parameters:
name
- name of cloned endpointendpointID
- ID of endpoint to clone- Returns:
- Notification endpoint cloned
-
cloneHTTPEndpoint
@Nonnull HTTPNotificationEndpoint cloneHTTPEndpoint(@Nonnull String name, @Nonnull HTTPNotificationEndpoint endpoint) Clone a Http Notification endpoint without authentication.- Parameters:
name
- name of cloned endpointendpoint
- endpoint to clone- Returns:
- Notification endpoint cloned
-
cloneHTTPEndpointBasicAuth
@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBasicAuth(@Nonnull String name, @Nonnull String username, @Nonnull String password, @Nonnull String endpointID) Clone a Http Notification endpoint with Http Basic authentication.- Parameters:
name
- name of cloned endpointusername
- HTTP Basic Usernamepassword
- HTTP Basic PasswordendpointID
- ID of endpoint to clone- Returns:
- Notification endpoint cloned
-
cloneHTTPEndpointBasicAuth
@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBasicAuth(@Nonnull String name, @Nonnull String username, @Nonnull String password, @Nonnull HTTPNotificationEndpoint endpoint) Clone a Http Notification endpoint with Http Basic authentication.- Parameters:
name
- name of cloned endpointusername
- HTTP Basic Usernamepassword
- HTTP Basic Passwordendpoint
- endpoint to clone- Returns:
- Notification endpoint cloned
-
cloneHTTPEndpointBearer
@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBearer(@Nonnull String name, @Nonnull String token, @Nonnull String endpointID) Clone a Http Notification endpoint with Bearer authentication.- Parameters:
name
- name of cloned endpointtoken
- Bearer tokenendpointID
- ID of endpoint to clone- Returns:
- Notification endpoint cloned
-
cloneHTTPEndpointBearer
@Nonnull HTTPNotificationEndpoint cloneHTTPEndpointBearer(@Nonnull String name, @Nonnull String token, @Nonnull HTTPNotificationEndpoint endpoint) Clone a Http Notification endpoint with Bearer authentication.- Parameters:
name
- name of cloned endpointtoken
- Bearer tokenendpoint
- endpoint to clone- Returns:
- Notification endpoint cloned
-
findNotificationEndpointByID
Get a notification endpoint.- Parameters:
endpointID
- ID of notification endpoint- Returns:
- the notification endpoint requested
-
getLabels
List all labels for a notification endpoint.- Parameters:
endpoint
- the notification endpoint- Returns:
- a list of all labels for a notification endpoint
-
getLabels
List all labels for a notification endpoint.- Parameters:
endpointID
- ID of the notification endpoint- Returns:
- a list of all labels for a notification endpoint
-
addLabel
Add a label to a notification endpoint.- Parameters:
label
- label to addendpoint
- the notification endpoint- Returns:
- the label was added to the notification endpoint
-
addLabel
Add a label to a notification endpoint.- Parameters:
labelID
- the ID of label to addendpointID
- the ID of the notification endpoint- Returns:
- the label was added to the notification endpoint
-
deleteLabel
Delete label from a notification endpoint.- Parameters:
label
- the label to deleteendpoint
- the notification endpoint
-
deleteLabel
Delete label from a notification endpoint.- Parameters:
labelID
- the label id to deleteendpointID
- ID of the notification endpoint
-