Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DowntimesApi: canceled downtime still visible in response of list_downtimes() #757

Closed
mseidl-sipfront opened this issue Feb 20, 2023 · 5 comments
Labels
kind/bug Bug related issue

Comments

@mseidl-sipfront
Copy link

Describe the bug
I created a downtime manually, to test DowntimesAPI.

list_downtimes works fine, however, after cancel_downtime(id), response is empty and the downtime is still visible when calling list_downtimes(), but not shown on the UI/Webpage.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Downtime in the future (I used 2024)
  2. Via datadogpy, cancel_downtime with id provided with list_downtimes()
  3. Response is empty, list_downtimes() still showing the manually created downtime. But it's not visible on the webpage / UI.

Expected behavior
After calling cancel_downtime(id), list_downtimes() should NOT show the canceled downtime.

@mseidl-sipfront mseidl-sipfront added the kind/bug Bug related issue label Feb 20, 2023
@therve
Copy link
Contributor

therve commented Feb 20, 2023

Hi,

In datadog-api-client, if you pass current_only=True you won't get soft-deleted downtimes returned: https://datadog-api-client.readthedocs.io/en/latest/datadog_api_client.v1.api.html#datadog_api_client.v1.api.downtimes_api.DowntimesApi.list_downtimes. Can you check if that works for you? Thanks.

@mseidl-sipfront
Copy link
Author

mseidl-sipfront commented Feb 20, 2023 via email

@mseidl-sipfront
Copy link
Author

mseidl-sipfront commented Feb 20, 2023 via email

@therve
Copy link
Contributor

therve commented Feb 22, 2023

Sorry I don't know. Can you contact support? Thank you.

@mseidl-sipfront
Copy link
Author

mseidl-sipfront commented Feb 22, 2023 via email

@therve therve closed this as completed Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug related issue
Projects
None yet
Development

No branches or pull requests

2 participants