Skip to main content

15.1.5.3 Events API

EventResourceApi provides query and management operations on events.

Method List​

Java and Python SDK method names follow their respective generated-code conventions. Use the name in the column for your language.

Java MethodPython MethodHTTPDescription
apiV1EventsGetapi_v1_events_getGET /api/v1/eventsPaginated query of the event list
apiV1EventsEventIdGetapi_v1_events_event_id_getGET /api/v1/events/{eventId}Get a single event by ID
apiV1EventsEventIdConfirmPatchapi_v1_events_event_id_confirm_patchPATCH /api/v1/events/{eventId}/confirmConfirm an event
apiV1EventsEventIdDeleteapi_v1_events_event_id_deleteDELETE /api/v1/events/{eventId}Delete an event

Query Event List​

Returns a paginated list of events with optional filtering by time range, status, severity, and element.

Parameters​

NameTypeRequiredDescription
fromTimelongNoStart time, Unix millisecond timestamp
toTimelongNoEnd time, Unix millisecond timestamp
statusEventStatusNoFilter by event status
elementIdintegerNoFilter by element ID
currentintegerNoPage number, 1-based
sizeintegerNoRecords per page

Example​

EventResourceApi eventApi = apiClient.buildClient(EventResourceApi.class);
ApiV1EventsGetQueryParams params = new ApiV1EventsGetQueryParams()
.current(1)
.size(50)
.fromTime(System.currentTimeMillis() - 86400_000L);
PageOfEventDetailDTO events = eventApi.apiV1EventsGet(params);
System.out.println("Events: " + events.getTotal());
note

For the complete method signatures and parameters, refer to the OpenAPI spec file (idmp-v{{VERSION}}.json) included in the SDK package, or browse the Swagger UI at /swagger-ui.html on your IDMP server.