An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Hi,
The easiest way would be probably to get the available metrics for the resource first via this API
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.