Automation script in DataMiner v10.1, one should use InfoRepository and AlarmRepository to read Information Events and historic alarms.
But I can't work out how to call them, neither can I find any example code. Please anyone?
I want to read from existing and NOT to create new repos.
using SLDataGateway.API.Repositories;
using SLDataGateway.API.Repositories.Factory.Util;
InfoRepositoryBuilder builder = InfoRepository.Builder();
// how to call builder.Build(), builder.WithFactory(), builder.WithSession() etc. to get a 'repo'?
// then repo.Read() to get Info[]
On cassandra cluster you can indeed use the alarm and info repositories with an alarm filter, this will not work on a local cassandra setup, this is the new call that replaces the "GetAlarmDetailsFromDB" message
as an example:
alarmRepository.Read(alarmfilter, startime, endtime, squashed)
can you confirm this example is still not working on cassandra cluster + latest main release?
i want to add another comment here that there are apparently still some things not working properly even on cassandra cluster, it is adviced to still use the “old” way of retrieving alarms as described here:
https://community.dataminer.services/question/how-to-get-history-of-alarms-in-a-protocol/
Hello! could you please provide us your full name?