How to use query parameter in dimension?

akavikadu
Participant I

I am trying to use query parameter in custom report as dimension , but I am getting null every time.

url : http://akavikadu-eval-prod.apigee.net/odatatest/Products?$format=json

var count = context.getVariable('request.queryparams.count');

if (count > 0) { var queryString = context.getVariable('request.querystring'); context.setVariable("flow.analytics.queryparameters",queryString); }

I am using this variable in statistic collector (flow.analytics.queryparameters).

In trace window I can see the query parameter.

0 1 512
1 REPLY 1

In your url : http://akavikadu-eval-prod.apigee.net/odatatest/Products?$format=json, environment details are missing

Could you please try with below

$ curl https://api.enterprise.apigee.com/v1/o/{org_name}/environments/test/stats/location?"select=sum(message_count)&timeRange=11/19/2015%2000:00~11/21/2015%2000:00&timeUnit=day" -u email:password

reference:

https://docs.apigee.com/analytics-services/content/analyze-api-message-content-using-custom-analytic...