Skip to content

Commit

Permalink
Merge pull request #73 from Dynatrace-James-Kitson/mz-selector-metric…
Browse files Browse the repository at this point in the history
…s-query

support mzSelector parameter on metric query
  • Loading branch information
Dynatrace-James-Kitson authored May 16, 2023
2 parents 6992538 + 33ba104 commit 82c0931
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 82c0931

Please sign in to comment.