Package com.datadog.api.client.v1.api
Class EventsApi
java.lang.Object
com.datadog.api.client.v1.api.EventsApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class EventsApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listEvents. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPost an event.Post an event.This endpoint allows you to post events to the stream.Post an event.Get the API client.Get an event.getEventAsync(Long eventId) Get an event.getEventWithHttpInfo(Long eventId) This endpoint allows you to query for event details.getEventWithHttpInfoAsync(Long eventId) Get an event.listEvents(Long start, Long end) Get a list of events.listEvents(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) Get a list of events.listEventsAsync(Long start, Long end) Get a list of events.listEventsAsync(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) Get a list of events.listEventsWithHttpInfo(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) The event stream can be queried and filtered by time, priority, sources and tags.listEventsWithHttpInfoAsync(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) Get a list of events.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
EventsApi
public EventsApi() -
EventsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createEvent
Post an event.See
createEventWithHttpInfo(com.datadog.api.client.v1.model.EventCreateRequest).- Parameters:
body- Event request object (required)- Returns:
- EventCreateResponse
- Throws:
ApiException- if fails to make API call
-
createEventAsync
Post an event.See
createEventWithHttpInfoAsync(com.datadog.api.client.v1.model.EventCreateRequest).- Parameters:
body- Event request object (required)- Returns:
- CompletableFuture<EventCreateResponse>
-
createEventWithHttpInfo
public ApiResponse<EventCreateResponse> createEventWithHttpInfo(EventCreateRequest body) throws ApiException This endpoint allows you to post events to the stream. Tag them, set priority and event aggregate them with other events.- Parameters:
body- Event request object (required)- Returns:
- ApiResponse<EventCreateResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 202 OK - 400 Bad Request - 429 Too many requests -
-
createEventWithHttpInfoAsync
public CompletableFuture<ApiResponse<EventCreateResponse>> createEventWithHttpInfoAsync(EventCreateRequest body) Post an event.See
createEventWithHttpInfo(com.datadog.api.client.v1.model.EventCreateRequest).- Parameters:
body- Event request object (required)- Returns:
- CompletableFuture<ApiResponse<EventCreateResponse>>
-
getEvent
Get an event.- Parameters:
eventId- The ID of the event. (required)- Returns:
- EventResponse
- Throws:
ApiException- if fails to make API call
-
getEventAsync
Get an event.- Parameters:
eventId- The ID of the event. (required)- Returns:
- CompletableFuture<EventResponse>
-
getEventWithHttpInfo
This endpoint allows you to query for event details.Note: If the event you’re querying contains markdown formatting of any kind, you may see characters such as
%,\,nin your output.- Parameters:
eventId- The ID of the event. (required)- Returns:
- ApiResponse<EventResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication Error - 404 Item Not Found - 429 Too many requests -
-
getEventWithHttpInfoAsync
Get an event.- Parameters:
eventId- The ID of the event. (required)- Returns:
- CompletableFuture<ApiResponse<EventResponse>>
-
listEvents
Get a list of events.- Parameters:
start- POSIX timestamp. (required)end- POSIX timestamp. (required)- Returns:
- EventListResponse
- Throws:
ApiException- if fails to make API call
-
listEventsAsync
Get a list of events.- Parameters:
start- POSIX timestamp. (required)end- POSIX timestamp. (required)- Returns:
- CompletableFuture<EventListResponse>
-
listEvents
public EventListResponse listEvents(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) throws ApiException Get a list of events.- Parameters:
start- POSIX timestamp. (required)end- POSIX timestamp. (required)parameters- Optional parameters for the request.- Returns:
- EventListResponse
- Throws:
ApiException- if fails to make API call
-
listEventsAsync
public CompletableFuture<EventListResponse> listEventsAsync(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) Get a list of events.- Parameters:
start- POSIX timestamp. (required)end- POSIX timestamp. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<EventListResponse>
-
listEventsWithHttpInfo
public ApiResponse<EventListResponse> listEventsWithHttpInfo(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) throws ApiException The event stream can be queried and filtered by time, priority, sources and tags.Notes: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as
%,\,nin your output.- This endpoint returns a maximum of
1000most recent results. To return additional results, identify the last timestamp of the last result and set that as theendquery time to paginate the results. You can also use the page parameter to specify which set of1000results to return.
- Parameters:
start- POSIX timestamp. (required)end- POSIX timestamp. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<EventListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication Error - 429 Too many requests -
- This endpoint returns a maximum of
-
listEventsWithHttpInfoAsync
public CompletableFuture<ApiResponse<EventListResponse>> listEventsWithHttpInfoAsync(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) Get a list of events.- Parameters:
start- POSIX timestamp. (required)end- POSIX timestamp. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<EventListResponse>>
-