Skip to content

Commit

Permalink
support mzSelector parameter on metric query
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynatrace-James-Kitson committed May 16, 2023
1 parent 6992538 commit 33ba104
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dynatrace/environment_v2/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def query(
time_from: Optional[Union[datetime, str]] = None,
time_to: Optional[Union[datetime, str]] = None,
entity_selector: Optional[str] = None,
mz_selector: Optional[str] = None,
) -> PaginatedList["MetricSeriesCollection"]:

params = {
Expand All @@ -45,6 +46,7 @@ def query(
"from": timestamp_to_string(time_from),
"to": timestamp_to_string(time_to),
"entitySelector": entity_selector,
"mzSelector": mz_selector
}
return PaginatedList(MetricSeriesCollection, self.__http_client, "/api/v2/metrics/query", params, list_item="result")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="dt",
version="1.1.60",
version="1.1.61",
packages=find_packages(),
install_requires=["requests>=2.22"],
tests_require=["pytest", "mock", "tox"],
Expand Down

0 comments on commit 33ba104

Please sign in to comment.