{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/refs/heads/main/json-schema/events-api-v2-event-ingest-payload-schema.json", "title": "EventIngestPayload", "description": "The payload for ingesting a custom event into Dynatrace. All events require at least an eventType and title. Custom events can target specific entities, include a time window, and carry additional metadata as key-value properties.", "type": "object", "properties": { "eventType": { "type": "string", "description": "The type of the custom event. Determines how the event is categorized and whether it triggers alerts or problem detection.", "enum": [ "AVAILABILITY_EVENT", "CUSTOM_ALERT", "CUSTOM_ANNOTATION", "CUSTOM_CONFIGURATION", "CUSTOM_DEPLOYMENT", "ERROR_EVENT", "MARKED_FOR_TERMINATION", "PERFORMANCE_EVENT", "RESOURCE_CONTENTION_EVENT" ], "example": "AVAILABILITY_EVENT" }, "timeout": { "type": "integer", "description": "How long the event remains open, in minutes, if no endTime is specified. Range: 1 to 60 minutes. If not specified, the event closes after a short default duration.", "minimum": 1, "maximum": 60, "example": 1718153645993 }, "entitySelector": { "type": "string", "description": "The entity selector specifying which entities the event should be associated with. For example, type(SERVICE),tag(production). Required for most event types.", "example": "type(SERVICE)" }, "title": { "type": "string", "description": "The title of the event. This is displayed in the Dynatrace UI and in problem notifications. Required.", "example": "example-value" }, "startTime": { "type": "integer", "format": "int64", "description": "The start time of the event as a Unix timestamp in milliseconds. If not specified, defaults to the current time.", "example": 1718153645993 }, "endTime": { "type": "integer", "format": "int64", "description": "The end time of the event as a Unix timestamp in milliseconds. If specified, creates a closed event covering the time range.", "example": 1718153645993 }, "properties": { "type": "object", "description": "Additional key-value metadata to attach to the event. Maximum of 30 key-value pairs. Keys and values must be strings.", "additionalProperties": { "type": "string" }, "maxProperties": 30, "example": {} } }, "required": [ "eventType", "title" ] }