The JSON body of the request. Contains properties of the new event.
body
optional
Request body objects
The EventIngest object
The configuration of an event to be ingested.
Element
Type
Description
Required
endTime
integer
The end time of the event, in UTC milliseconds.
If not set, the start time plus timeout is used.
optional
entitySelector
string
The entity selector, defining a set of Dynatrace entities to be associated with the event.
Only entities that have been active within the last 24 hours can be selected.
If not set, the event is associated with the environment (dt.entity.environment) entity.
optional
eventType
string
The type of the event.
AVAILABILITY_EVENT
CUSTOM_ALERT
CUSTOM_ANNOTATION
CUSTOM_CONFIGURATION
CUSTOM_DEPLOYMENT
CUSTOM_INFO
ERROR_EVENT
MARKED_FOR_TERMINATION
PERFORMANCE_EVENT
RESOURCE_CONTENTION_EVENT
required
properties
object
A map of event properties.
Keys with prefix dt.* are generally disallowed, with the exceptions of dt.event.*, dt.davis.* and dt.entity.*. These reserved keys may be used to set event properties with predefined semantics within the Dynatrace product.
dt.entity.* keys may be used to provide additional information on an event, but will not lead to the event being tied to the specified entities.
All other keys are interpreted as user-defined event properties.
Values of Dynatrace-reserved properties must fulfill the requirements of the respective property.
A maximum of 100 properties can be specified. A property key is allowed to contain up to 100 characters. A property value is allowed to contain up to 4096 characters.
optional
startTime
integer
The start time of the event, in UTC milliseconds.
If not set, the current timestamp is used.
Depending on the event type, the start time must not lie in the past more than 6 hours for problem-opening events and 30 days for info events.
Depending on the event type, the start time must not lie in the future more than 5 minutes for problem-opening events and 7 days for info events.
optional
timeout
integer
The timeout of the event, in minutes.
If not set, 15 is used.
The timeout will automatically be capped to a maximum of 360 minutes (6 hours).
Problem-opening events can be refreshed and therefore kept open by sending the same payload again.
optional
title
string
The title of the event.
required
Request body JSON model
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
An operations team wants to push a Marked for termination event to all the hosts that are planned to be removed. They also want to include the purpose for the deletion and a job identifier. The hosts to be removed are gathered in a designated host group.
In this example, the request sends a Marked for termination event to hosts that are planned to be removed. Such hosts are identified by the cloud-burst-hosts host group. The event automatically applies to all hosts that are part of the group. The purpose for termination and automation job number are provided as additional information.
The API token is passed in the Authorization header.
A DevOps team wants to connect their load test tool with Dynatrace to annotate a service that is currently undergoing a load test. Later, when Dynatrace raises a problem caused by the load test, the problem details will include this information, simplifying the triage process.
In this example, the request sends a Custom info event to the BookingService service, marking it as a target of a load test.
The API token is passed in the Authorization header.
The operations team of a large retailer wants to trigger an alert in Dynatrace whenever their catalog update batch process fails. They want to create an event and alert in Dynatrace, but they don’t want Davis to merge this externally created event with any larger incident.
In this example, the request sends an Error event to the BookingService service, indicating a failed update. The dt.event.allow_davis_merge property is set to false, preventing Davis from merging this event with any other event.
The API token is passed in the Authorization header.