Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
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.
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.
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.
Yes, all the HTTP paramter which you are seeing after configuring * Parameter, are basically represent the NameValue paire collection of HttpRequest.Params property.