<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sum,count etc. are missing in the AppDynamics Python API client.get_metric method output in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/sum-count-etc-are-missing-in-the-AppDynamics-Python-API-client/m-p/719567#M1586</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;I am trying to do the same but one strange thing noticed there .&lt;BR /&gt;If I write a sample code using the python client&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;from appd.request import AppDynamicsClient
c = AppDynamicsClient('URL','group','appd@123')
for app in c.get_applications():
print app.id, app.name&lt;/PRE&gt;
&lt;P&gt;It works fine .&lt;/P&gt;

&lt;P&gt;But if I do a simple call like the following&amp;nbsp;&lt;/P&gt;


&lt;PRE&gt;import requests
usr =&amp;lt;uid&amp;gt;
pwd =&amp;lt;pwd&amp;gt;
url ='http://10.201.51.40:8090/controller/rest/applications?output=JSON'
response = requests.get(url,auth=(usr,pwd))
print 'response',response&lt;/PRE&gt;
&lt;P&gt;I get the following response&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;response &amp;lt;Response [401]&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Am I doing anything wrong here ?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2017 09:36:25 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2017-06-27T09:36:25Z</dc:date>
    <item>
      <title>sum,count etc. are missing in the AppDynamics Python API client.get_metric method output</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/sum-count-etc-are-missing-in-the-AppDynamics-Python-API-client/m-p/719565#M1584</link>
      <description>&lt;PRE&gt;Hi ,&lt;BR /&gt;When I am invoking a REST URI from the browser using an URL like the following &lt;BR /&gt;http://&amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt;/controller/rest/applications/4/metric-data?metric-path=Overall%20Application%20Performance%7CNumber%20of%20Very%20Slow%20Calls&amp;amp;time-range-type=BEFORE_NOW&amp;amp;duration-in-mins=60&amp;amp;rollup=true&lt;BR /&gt;I am getting the output like the following &lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;metric-datas&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="collapsible-content"&gt;
&lt;DIV id="collapsible1" class="collapsible"&gt;
&lt;DIV class="expanded"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;metric-data&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="collapsible-content"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;metricId&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;4226&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/metricId&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="collapsible2" class="collapsible"&gt;
&lt;DIV class="expanded"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;metricPath&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="collapsible-content"&gt;&lt;SPAN class="text"&gt;Overall Application Performance|Number of Very Slow Calls&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/metricPath&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;metricName&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;BTM|Application Summary|Number of Very Slow Calls&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/metricName&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;frequency&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;ONE_MIN&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/frequency&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="collapsible3" class="collapsible"&gt;
&lt;DIV class="expanded"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;metricValues&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="collapsible-content"&gt;
&lt;DIV id="collapsible4" class="collapsible"&gt;
&lt;DIV class="expanded"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;metric-value&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="collapsible-content"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;startTimeInMillis&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;1498138740000&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/startTimeInMillis&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;value&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;7&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;min&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;0&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/min&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;max&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;0&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/max&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;current&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;0&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/current&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;STRONG&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;sum&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;7&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/sum&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;STRONG&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;count&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;17&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/count&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;STRONG&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;standardDeviation&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;0.0&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/standardDeviation&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;STRONG&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;occurrences&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;0&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/occurrences&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;STRONG&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;useRange&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;false&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/useRange&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/metric-value&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/metricValues&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/metric-data&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/metric-datas&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;But when I am making the call using appdynamics python API using the following code&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;
&lt;PRE&gt;from appd.request import AppDynamicsClient
client = AppDynamicsClient("&amp;lt;URL&amp;gt;", "&amp;lt;USERID&amp;gt;", "&amp;lt;PASSWD&amp;gt;")
metrics = client.get_metrics('Overall Application Performance|Number of Very Slow Calls',4,'BEFORE_NOW',60,True)
print 'metrics details ',metrics.__dict__
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;I am getting response like the following&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;EM&gt;&lt;SPAN class="html-tag"&gt;metrics details &amp;nbsp;{'data': [&amp;lt;MetricDataSingle: _frequency=u'ONE_MIN', values=[&amp;lt;MetricValue: current=0, max=0, start_time_ms=1498139220000L, value=12, min=0&amp;gt;], path=u'Overall Application Performance|Number of Very Slow Calls'&amp;gt;]}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;Here attributes like sum,count,standardDeviation,occurrences etc are missing in the python API output .&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;I am new to python ,so may miss something here .&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;Please let me know if anybody has any idea on this .&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/sum-count-etc-are-missing-in-the-AppDynamics-Python-API-client/m-p/719565#M1584</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-06-22T15:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: sum,count etc. are missing in the AppDynamics Python API client.get_metric method output</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/sum-count-etc-are-missing-in-the-AppDynamics-Python-API-client/m-p/719566#M1585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Unfortunately i could not locate any internal docs or options for this get specific details, we suggest to use rest api for missing details&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/sum-count-etc-are-missing-in-the-AppDynamics-Python-API-client/m-p/719566#M1585</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2017-06-23T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: sum,count etc. are missing in the AppDynamics Python API client.get_metric method output</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/sum-count-etc-are-missing-in-the-AppDynamics-Python-API-client/m-p/719567#M1586</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;I am trying to do the same but one strange thing noticed there .&lt;BR /&gt;If I write a sample code using the python client&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;from appd.request import AppDynamicsClient
c = AppDynamicsClient('URL','group','appd@123')
for app in c.get_applications():
print app.id, app.name&lt;/PRE&gt;
&lt;P&gt;It works fine .&lt;/P&gt;

&lt;P&gt;But if I do a simple call like the following&amp;nbsp;&lt;/P&gt;


&lt;PRE&gt;import requests
usr =&amp;lt;uid&amp;gt;
pwd =&amp;lt;pwd&amp;gt;
url ='http://10.201.51.40:8090/controller/rest/applications?output=JSON'
response = requests.get(url,auth=(usr,pwd))
print 'response',response&lt;/PRE&gt;
&lt;P&gt;I get the following response&amp;nbsp;&lt;/P&gt;

&lt;PRE&gt;response &amp;lt;Response [401]&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Am I doing anything wrong here ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 09:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/sum-count-etc-are-missing-in-the-AppDynamics-Python-API-client/m-p/719567#M1586</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-06-27T09:36:25Z</dc:date>
    </item>
  </channel>
</rss>

