Hello @Haluk Yaşar.Erol,
I am the same Sahil, with just a new ID 😄
Thank you for your question. Here are a few things I can suggest:
#The script shared above works ONLY with Windows PowerShell. I used it so most of us can run it from our local desktop without any additional software.
1) Always copy the URL from Metric Browser. Check, screenshot1 attached
2) SUM-Calls-PER-MIN-ENDPOINT is NOT a valid API to call. We call the Calls%20per%20Minute API, the output of which gives us SUM/Count/current/Max/Min.
https://docs.appdynamics.com/21.7/en/extend-appdynamics/appdynamics-apis/metric-and-snapshot-api#MetricandSnapshotAPI-FullExample:.2
I will suggest you first try the basic AppDynamics APIs with PowerShell.
A good place to start? https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-use-REST-API-calls-in-a-PowerShell-script/ta-p/37193
Additional Info: How to change time in AppD REST API?
https://docs.appdynamics.com/21.7/en/extend-appdynamics/appdynamics-apis/metric-and-snapshot-api#MetricandSnapshotAPI-usingtimerangesUsingTimeRanges
More about AppD Metric REST API?
https://docs.appdynamics.com/21.7/en/extend-appdynamics/appdynamics-apis/metric-and-snapshot-api
Hope this helps!
Regards,
Sahil Gupta
... View more