api-client-python
api-client-python copied to clipboard
Dynatrace API Python client
**Is your feature request related to a problem? Please describe.** I am looking to collect metrics around host unit consumption over time via the API. The smartscape_hosts.list() returns the information...
slos.get was is not having time_frame param, so it was always returning the default SLO timeframe. Added it the same way as it is done for slos.list.
- Tests for Maintenance Windows - MonitoredEntityFilter - POST Maintenance Windows
We are using this api client as part of a script that looks for hosts without the proper network zone set and then to set the correct network zone using...
**Describe the bug** If there is not unit field in the raw reply from the `https://{your-environment-id}.live.dynatrace.com/api/v2/metrics` API, the client doesn't handle it properly. https://github.com/dynatrace-oss/api-client-python/blob/620213cf7bfff5e214bb4c20e1bbd0a31cac41d4/dynatrace/environment_v2/metrics.py#L230 The `Unit` enum doesn't have any...
**Describe the bug** When calling `dt.audit_logs.list()` I'm seeing sporadic errors in my logs. The errors I see are ValueError exceptions complaining that specific values are not a valid Category. I...
**Describe the bug** Dynatrace API does not return milliseconds if they are 000, e.g., `2025-01-18T21:35:03.000Z` gets returned as `2025-01-18T21:35:03Z` That leads to the following error in the client API: ```...
Dynatrace API does not return milliseconds if they are 000, e.g., 2025-01-18T21:35:03.000Z gets converted to 2025-01-18T21:35:03Z That leads to the following error in the client API: ``` ValueError("time data '2025-01-18T21:35:03Z'...