Skip to content

Commit 9c1467b

Browse files
Merge pull request #115 from Dynatrace-James-Kitson/kitson
properly support datetime objects for problem listing
2 parents 262d1f6 + cb78f44 commit 9c1467b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dynatrace/environment_v2/problems.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from dynatrace.environment_v2.custom_tags import METag
2929
from dynatrace.configuration_v1.alerting_profiles import AlertingProfileStub
3030
from dynatrace.pagination import PaginatedList
31-
from dynatrace.utils import int64_to_datetime
31+
from dynatrace.utils import int64_to_datetime, timestamp_to_string
3232

3333

3434
class ProblemService:
@@ -55,8 +55,8 @@ def list(
5555
"problemSelector": problem_selector,
5656
"entitySelector": entity_selector,
5757
"fields": fields,
58-
"from": time_from,
59-
"to": time_to,
58+
"from": timestamp_to_string(time_from),
59+
"to": timestamp_to_string(time_to),
6060
"sort": sort,
6161
"pageSize": page_size,
6262
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dt"
3-
version = "1.1.72"
3+
version = "1.1.73"
44
description = "Dynatrace API Python client"
55
readme = "README.md"
66
authors = ["David Lopes <[email protected]>"]

0 commit comments

Comments
 (0)