Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
06-22-2017 08:01 AM
Hi ,
When I am invoking a REST URI from the browser using an URL like the following
http://<IP>:<PORT>/controller/rest/applications/4/metric-data?metric-path=Overall%20Application%20Performance%7CNumber%20of%20Very%20Slow%20Calls&time-range-type=BEFORE_NOW&duration-in-mins=60&rollup=true
I am getting the output like the following
from appd.request import AppDynamicsClient client = AppDynamicsClient("<URL>", "<USERID>", "<PASSWD>") metrics = client.get_metrics('Overall Application Performance|Number of Very Slow Calls',4,'BEFORE_NOW',60,True) print 'metrics details ',metrics.__dict__
06-23-2017 08:54 AM
Hi,
Unfortunately i could not locate any internal docs or options for this get specific details, we suggest to use rest api for missing details
06-27-2017 02:36 AM
Hi ,
I am trying to do the same but one strange thing noticed there .
If I write a sample code using the python client
from appd.request import AppDynamicsClient c = AppDynamicsClient('URL','group','appd@123') for app in c.get_applications(): print app.id, app.name
It works fine .
But if I do a simple call like the following
import requests usr =<uid> pwd =<pwd> url ='http://10.201.51.40:8090/controller/rest/applications?output=JSON' response = requests.get(url,auth=(usr,pwd)) print 'response',response
I get the following response
response <Response [401]>
Am I doing anything wrong here ?
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form