How can you test if an analytic event already exists?

I’m using a Protocol Integration to send Analytic Events to the Event Server. I would like to provide the user with a Test button that can ensure the system is well-configured (on both sides).

My current approach seems fragile…

I am submitting an analytic event with a Message value for each of the events I expect to be in the system while using an invalid source id (because I don’t want it triggering anything).

I have searched documentation for the ability to query all analytic event (types) in the system but I haven’t found any mechanism to do that. Additionally, I haven’t been able to find any mechanism to add an analytic event type remotely either.

My preferred solution would just be an API call to the Event Server or Management Server due to ease of development, however, I’m also open to creating an Event Server plug-in (to accept or pre-fill the expected Analytic Event types) if that better suits my case.

Thanks!

Please see Config API Client sample, you will be able to get all existing analytics events -

https://doc.developer.milestonesys.com/html/index.html?base=samples/configapiclient.html&tree=tree_2.html

Thanks for your response! I’ll look into implementing the check using this API.