How to get alarm journal datasource?

I don't find a way to get alarm journal datasource with script or the SDK

It's because you would have to know/cast the generic alarm journal into a db alarm journal, or, if dealing with the ORM, retrieve the DB specific settings record for the given profile name.

I would like to avoid ORM, I found com.inductiveautomation.ignition.gateway.alarming.journal but I don't find any specific "db alarm journal" class ?

The class is com.inductiveautomation.ignition.gateway.alarming.journal.DatabaseAlarmJournal, but it's not public in the SDK. Also, it doesn't expose the datasource name anyways.

Thanks, nevermind, I will add a parameter for the database associated to my alarm journal.
I want to check the database connection was ok before process a query