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

Custom Event data publishing using XML

Anonymous
Not applicable

Is it possible to use XML instead of JSON for the custom event data publish.

If it possible could you post an example similar to this.

Thanks

curl -X POST "<events_service_endpoint>:9080/events/publish/myProducts" -H"X-Events-API-AccountName:customer1_1234-567a-bccc-123" -H"X-Events-API-Key:a123b456-c789-1d23-e456-nnn" -H"Content-type: application/vnd.appd.events+json;v=2" -d '[{"id": "5653b879ab33a","productBrand": "ACME","userRating": 3,"price": 2006.41,"productName": "Watch","description": "new watch"},{"id": "5653b879700","productBrand": "Widget","userRating": 1,"price": 3800.13,"productName": "Watch","description": "2015 watch"}]'

3 REPLIES 3

Gaurav.Soni
AppDynamics Team (Retired)

Hi Atul,

 

Unfortunately, The Analytics events API only works with JSON payload.

 

Regards,

Gaurav Soni

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Anonymous
Not applicable

OK, Thanks for confirming that XML cannot be used by the REST API for Analytics.

Atul

Gaurav.Soni
AppDynamics Team (Retired)

URW. :)



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Ask the Experts Session: Hybrid Application Monitoring Deployment

Join us on Feb 26 to explore Splunk AppDynamics deployment strategies, SaaS models, agent rollout plans, and expert best practices.


Register Now

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here
Top Kudoed Authors