• Home
  • API
  • Account management
  • Dynatrace Platform Subscription
  • Cost monitors
  • GET events

Dynatrace Platform Subscription API - GET events

Lists cost and forecast events of a Dynatrace Platform Subscription detected by account management.

The request produces an application/json payload.

GET

https://api.dynatrace.com/sub/v2/accounts/{accountUuid}/subscriptions/events

Authentication

To execute this request, you need the Allow read access for usage and consumption resources (account-uac-read) scope assigned to your token. To learn how to obtain and use it, see Authentication.

Parameters

ParameterTypeDescriptionInRequired
accountUuidstring

The ID of the required account.

You can find the UUID on the Account > Account management API page, during creation of an OAuth client.

pathrequired
startTimestring

Date as ISO string

queryoptional
endTimestring

Date as ISO string

queryoptional
eventTypestring-
The element can hold these values
  • cost
  • forecast
queryoptional

Response

Response codes

CodeTypeDescription
200Event[]-
400

The request was unacceptable, often due to missing a required parameter

401

The bearer token is incorrect/expired or the requested account information does not match the bearer token

403

Access denied

404

The requested resource was not found

500

Something went wrong on Account Management API's end

Response body objects

The ResponseBody object

The object doesn't provide any parameters.

The Event object

ElementTypeDescription
environmentUuidstring

The UUID of the environment that threw the event.

capabilitystring

The subscription capability name.

datestring

The date the event was fired in 2021-05-01T15:11:00Z format.

createdAtstring

The date the notification was created in 2021-05-01T15:11:00Z format.

severitystring

The severity of the even.

messagestring

The message from the event.

eventTypestring

The type of event: Forecast or usage.

notificationLevelstring

The notification level of the event.

Response body JSON model

json
[ { "environmentUuid": "string", "capability": "string", "date": "string", "createdAt": "string", "severity": "string", "message": "string", "eventType": "string", "notificationLevel": "string" } ]