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
05-09-2017 11:33 AM - edited 05-09-2017 11:34 AM
My Question is simmilar to this question.
I couldn't follow the documentation and wasn't able to figure out how to define the HTTP params in an HTTP Data Collector.
I have a .net web API which has method signature like the following code. Also, the method can be used over Get & POST. The Parameters can be passed in the request body as a JSON in the POST request or over the url in a Get Request. What should be HTTP parameter name in these situations? Does it refers to the parameters of JSON body?
public HttpResponseMessage MethodName(HttpRequestMessage request)
public IHttpAsyncResult MethodName(HttpRequestMessage request)
Is it simmilar to HttpRequest.Params property which contains QueryString, Form, Cookies, and ServerVariables items ?
Solved! Go to Solution.
05-12-2017 04:59 AM
Hi Abhinav,
Thanks for contacting support.
If I understand correctly from the context, do you want capture the values of the properties defined under the HttpRequestMessage class from your request ? If yes. then you can configure the Method invocation data collector on the Class /MethodName to extract the values from the request object.
For more details for the Method invocation data collector, please refer the below document.
https://docs.appdynamics.com/display/PRO43/Data+Collectors
If you want to collect the HTTP parameter passed over the request in the specific BT, then you can configure the HTTP request data collector and for this you can first verify what are the parameters passed over the request, through below configuration under the HTTP request data collector section.
Display Name = HTTP All HTTP Parameter Name = *
Please refer the screenshot attached, how the result will come.
You can review the all the available HTTP Parameter and then define the parameter separately as per your scenarios
Please let us know, if i misunderstood anything or you have any question.
Thanks,
Ashish.
05-12-2017 07:25 AM
I have been able to see all the request Parameters using the * Parameter.
However, i need a confirmation from the team if it is correct to assume that HTTP Parameters would represent HttpRequest.Params property which contains QueryString, Form, Cookies, and ServerVariables items?
05-12-2017 10:35 AM
Hi Abhinav,
Yes, all the HTTP paramter which you are seeing after configuring * Parameter, are basically represent the NameValue paire collection of HttpRequest.Params property.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form