@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EventsApi.ListEventsOptionalParameters
Manage optional parameters to listEvents.
|
| Constructor and Description |
|---|
EventsApi() |
EventsApi(ApiClient apiClient) |
public EventsApi()
public EventsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic EventCreateResponse createEvent(EventCreateRequest body) throws ApiException
See createEventWithHttpInfo(com.datadog.api.client.v1.model.EventCreateRequest).
body - Event request object (required)ApiException - if fails to make API callpublic CompletableFuture<EventCreateResponse> createEventAsync(EventCreateRequest body)
See createEventWithHttpInfoAsync(com.datadog.api.client.v1.model.EventCreateRequest).
body - Event request object (required)public ApiResponse<EventCreateResponse> createEventWithHttpInfo(EventCreateRequest body) throws ApiException
body - Event request object (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | OK | - |
| 400 | Bad Request | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EventCreateResponse>> createEventWithHttpInfoAsync(EventCreateRequest body)
See createEventWithHttpInfo(com.datadog.api.client.v1.model.EventCreateRequest).
body - Event request object (required)public EventResponse getEvent(Long eventId) throws ApiException
eventId - The ID of the event. (required)ApiException - if fails to make API callpublic CompletableFuture<EventResponse> getEventAsync(Long eventId)
eventId - The ID of the event. (required)public ApiResponse<EventResponse> getEventWithHttpInfo(Long eventId) throws ApiException
Note: If the event you’re querying contains markdown formatting of any
kind, you may see characters such as %,\,n in your
output.
eventId - The ID of the event. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication Error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EventResponse>> getEventWithHttpInfoAsync(Long eventId)
eventId - The ID of the event. (required)public EventListResponse listEvents(Long start, Long end) throws ApiException
start - POSIX timestamp. (required)end - POSIX timestamp. (required)ApiException - if fails to make API callpublic CompletableFuture<EventListResponse> listEventsAsync(Long start, Long end)
start - POSIX timestamp. (required)end - POSIX timestamp. (required)public EventListResponse listEvents(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) throws ApiException
start - POSIX timestamp. (required)end - POSIX timestamp. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<EventListResponse> listEventsAsync(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters)
start - POSIX timestamp. (required)end - POSIX timestamp. (required)parameters - Optional parameters for the request.public ApiResponse<EventListResponse> listEventsWithHttpInfo(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters) throws ApiException
Notes: - If the event you’re querying contains markdown formatting of any
kind, you may see characters such as %,\,n in your
output.
1000 most recent results. To return
additional results, identify the last timestamp of the last result and set that as the
end query time to paginate the results. You can also use the page parameter
to specify which set of 1000 results to return.
start - POSIX timestamp. (required)end - POSIX timestamp. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication Error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EventListResponse>> listEventsWithHttpInfoAsync(Long start, Long end, EventsApi.ListEventsOptionalParameters parameters)
start - POSIX timestamp. (required)end - POSIX timestamp. (required)parameters - Optional parameters for the request.Copyright © 2024. All rights reserved.