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

Drilldown URL Link Parameters?

nathan_evans
Newcomer

In some of our reports we want to be able to use the drilldown link to take us to another web site (web based CMDB). In the drilldown link we want to pass the client IP address - we would like to know what variables are available to go in the URL Parameters field?

13 REPLIES 13

adam_piotrowicz
Dynatrace Pro
Dynatrace Pro

Sure. If you pick Client IP adress on Subject data tab in DMI and go to Drilldown Links tab you will see:

URL is the address of your remote, 3rd party system,

Parameters are optional, constant parameters you must pas to your system,

Client IP address Apply as is name of the GET parameter of your remote system that will carry the IP.

The entire URL from above example looks like:

http://www.compuware.com/
?
param1=value1
&
dmiAction=Generate
&
timeResolution=PERIOD
&
uid=OEI0QUExQkI0N0I5NzEwMzREQTVBMEU2MkVEMUVGMzlCMTI1QTBGQzc1RUY1MDc1NjcyRjAwMTQzNjJGMTlGMw%3D%3D
&
client_ip=10.21.79.243
&
startTime=1402873200000
&
endTime=1402914300000
&
ptime_Begin_=6%2F16%2F14%2000%3A00
&
ptime_RangeType_=Today
&
ptime_RelativeBeginTime_=00%3A00
&
ptime_RelativeOrAbsolute_=a
&
ptime_Resolution_=r
&
ptime_StepUnit_=60000
&
ptime_Steps_=685
&

If you don't need time range and resolution - set both Time range and Resolution Settings to Ignore value and the URL will be as simple as:

http://www.compuware.com/
?
param1=value1
&
dmiAction=Generate
&
uid=OEI0QUExQkI0N0I5NzEwMzREQTVBMEU2MkVEMUVGMzlCMTI1QTBGQzc1RUY1MDc1NjcyRjAwMTQzNjJGMTlGMw%3D%3D
&
client_ip=10.21.79.243&

Hope it helps.

nathan_evans
Newcomer

Hi Adam, we've copied this exactly and it doesn't pass the client IP address on it's own, we do get the full URL as you described, so to try to be clear....

we want to go to http://servercmdb/q=10.1.1.1 

where we have http://servercmdb/q= as the URL and then pass 10.1.1.1 (client IP) as a parameter.

 

Thanks again

Having:

results in:

http://servercmdb/
?
dmiAction=Generate
&
uid=RTQ1NkFCNjYwOUQzODI2NjM2NjY1QjdBMEQxOTdFRDQxODBEOUU1MTFCQTRFMjgyMkNFOEY1RDIzQjUyODc1NA%3D%3D
&
q=2.2.62.234&

Do you mean that you would like to get rid of uid and dmiAction parameters and have only q? Your system will not accept/disregard these two parameters?

nathan_evans
Newcomer

yes, I only want to pass a variable, such as client IP (whatever has been clicked on the report)

I doubt this is possible, but will talk to Development and let you know.

Radoslaw_Szulgo
Dynatrace Leader
Dynatrace Leader

These parameters are generic and are used by DMI to correctly build a drill-down link with action name and user auth token. 

Why you simply cannot ignore these params in your external application ? 

Technical Product Manager,
Dynatrace Managed expert

nathan_evans
Newcomer

actually that seems to work now....

nathan_evans
Newcomer

just to follow on from this is there a list of these variables, like the "client_ip", I assume there's "server_ip" but how about all the other dimensions that are available?

Nathan,

As I said in my first post, Parameters are optional parameters that you need to hard code in the URL as the external system requires it.

The name of the GET parameter name that will carry the value of DMI dimension is defined by you, in appropriate Apply as field ...

Hope I'm clear, otherwise please let me know.

nathan_evans
Newcomer

Just had a test and think I've got it now! Thanks for your time Adam

nate_austin1
Inactive

Adam,

I'd like to piggyback onto this thread. I have a customer that is looking to link to an external site (no parameters at all need to be passed). Right now, they are doing report tabs and doing a custom report with their URL, but a bunch of those hard coded parameters are being passed as well. Is there anyway to not pass those? 

 

Example: DMI report with a TAB at the top that says, "Link to Intranet Site"

We want that to link to http://myintranetsite.com  but not to pass any parameters. I'd think this would be possible, but it's adding in those parameters.

Thanks!

Nate

 

 

Nate,

As you said they are hardcoded and they are not configurable.

But do they really break loading of http://myintranetsite.com?

Base on my tests I would expect that as long as destination page (meaning the PHP/ASP/whatever page code) does not accept (and it should since I guess it's not aware of CAS code (smile)) these params the page will load with no issues, despite having all these params glued.

Take a look at https://apm.demo.compuware.com/LSServlet?lsAction=LoadByName&lsEntryName=Custom+links&dmiAction=Gene...: BOA does not have any issues.

Or maybe the page accepts all params and reports 404?

Nate - to answer your problem with additional parameters that should not be there - this has been fixed in 12.3.