Events API v1 has been deprecated with Dynatrace version 1.243. Its replacement is Events API v2. We recommend that you migrate to the new API at your earliest convenience.
The migration affects endpoint URLs, query parameters, and response/request body parameters, as well as the scope of the token for request authentication.
Events API v2 offers you the following new features:
The ingestion of custom events consumes Davis Data Units (DDUs) from the events pool.
/api/v2/events
/api/v1/events
events.read
)events.ingest
)DataExport
)To learn about new query/body parameters, see the documentation of individual requests in Events API v2.
Here are some examples of differences in API usage.
In this example, we query a list of open availability events on hosts that happened within the last two hours.
In this example, we ingest a custom info event affecting all hosts whose hostname begins with prod
.