cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am trying to update Dashboard filters in server. I tried through client APIs, but have not been able to save the filters on the dashboard in server.

martin_susai
Newcomer
 
3 REPLIES 3

martin_susai
Newcomer

I am using Dynatrace 6.3. Here is the api link - https://community.dynatrace.com/community/display/DOCDT63/Client+REST+Interface

andreas_grabner
Dynatrace Guru
Dynatrace Guru

You cannot change and persist the filters of a dashboard via a REST API. What you can do is to e.G: open a Dashboard in the Dynatrace client via the REST API and ask the Client to open this dashboard but also changing the source or comparision source. The REST API you need to use is this one: https://community.dynatrace.com/community/display/...

Now - this requires you to have the Dynatrace Client Open. Another option is to generate a report for a dashboard through the server-side reporting REST API. This API also allows you to change source and comparision source and delivers either an XML, CSV or HTML version of the dashboard: https://community.dynatrace.com/community/pages/vi...

I did a youtube performance clinic tutorial on "Talking REST with Dyntrace" - you might find that helpful as well: https://www.youtube.com/watch?v=RJK6spEXkX0&t=44s&...

Andi

martin_susai
Newcomer

Hi Andi, I tried to use the Server side REST APIs. Here is what I did.

1. Store a session for a time period. storepurepaths api. This stores all the transaction between specified time period.

2. Then ran a test by injecting the testRunID, in our Loadrunner tests to get report only for the test that we injected testRunID.

3. Then create a PDF report using "create" api, by using compare=stored:<sessionName>, and Dashboard.

The comparison report shows difference between stored and current executed test. Which is what we want. But we see the additional transactions that were stored when storing the initial session, which we want to filter out.

Is there a way to store a session with applying filters before saving, filters like test name.