DataDog/datadog-api-client-java

Unhandled EventAlertType "user_update"

ni3mm4nd opened this issue · 1 comments

Describe the bug
If event contains "alert_type":"user_update" an exception is raised.

To Reproduce
Steps to reproduce the behavior:

  1. fetch events from datadog
  2. try to parse it
  3. an exception occured
  4. See error

Caused by: com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of 'com.datadog.api.v1.client.model.EventAlertType', problem: Unexpected value 'user_update'

Expected behavior
All possible alert types should be covered in EventAlertType enum class

Environment and Versions (please complete the following information):
`

	<dependency>
		<groupId>com.datadoghq</groupId>
		<artifactId>datadog-api-client</artifactId>
		<version>1.0.0-beta.6</version>
	</dependency>`

Example of fetched events
{ "events": [ { "alert_type": "user_update", "comments": [], "date_happened": 1603179512, ...

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.