DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
609 stars 302 forks source link

Outdated Timeboard endpoint url #728

Closed acarneiro24 closed 2 years ago

acarneiro24 commented 2 years ago

Describe the bug The Timeboard api end point has changed. See in the documentation: https://docs.datadoghq.com/api/latest/dashboards/

To Reproduce Steps to reproduce the behavior:

  1. Create a time board Expected behavior 404 error will be triggered

Additional context Tested in the latest version

therve commented 2 years ago

Hi,

The timeboard URL didn't really change, it's just a deprecated object. You need to use the dashboard resource now.

acarneiro24 commented 2 years ago

Thank you @therve

arslan-autoscout24 commented 2 years ago

@therve @acarneiro24 Could we re-open the issue? Our organization has a lot of timeboards. Meanwhile, they are migrated, it would be nice if a fix can be provided in the library. Please check if the below PR could fix the issue. Thanks

https://github.com/DataDog/datadogpy/compare/master...arslan-autoscout24:datadogpy:patch-1

therve commented 2 years ago

You can use https://github.com/DataDog/datadogpy/blob/master/datadog/api/dashboards.py already.