Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

Metrics parameter renamed for 2018-01-01 api #4

Open
lukasmrtvy opened this issue Jun 11, 2019 · 0 comments
Open

Metrics parameter renamed for 2018-01-01 api #4

lukasmrtvy opened this issue Jun 11, 2019 · 0 comments

Comments

@lukasmrtvy
Copy link

Hello,
metrics parameter for 2018-01-01 api should be name metricnames
https://docs.microsoft.com/en-us/rest/api/monitor/Metrics/List#uri-parameters

Error:

code="BadRequest" message="Detected invalid query parameter for metric metric for apiVersion: 2018-01-01, should be metricnames"

It would be awesome if something like
metrics "ALL" exists -> query API for all available metrics

https://management.azure.com/{resourceUri}/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01  | jq .value[].name.value
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant