It is possible to get the list of all TriggerEvent by filtering VideoOS::Platform::Configuration::Instance->GetItems() and checking their kind with VideoOS::Platform::Kind::TriggerEvent. But there is no AnalyticsEvent kind. Is there a way to get the list of AnalyticsEvent?
Actually, you cannot get the list if you use GetItems(). In order to get the list, you will need to use a method from ConfigurationAPI Client instead of GetItems(). Please see below code. I hope that code helps you.
private void ListAlarmDefinitions()
{
ManagementServer ms = new ManagementServer(EnvironmentManager.Instance.MasterSite.ServerId);
var alarmDefinitions = ms.AlarmDefinitionFolder.AlarmDefinitions;
foreach (var alarmDefinition in alarmDefinitions)
{
label1.Text += alarmDefinition.Name + Environment.NewLine;
}
}
Thanks, server.AnalyticsEventFolder.AnalyticsEvents is what I ended up using