I would like to create an SQL query - targeting NPM 12.2 database - for retrieving the alert history of a specific node given by name (or NodeID or IP_Address, etc...)
I found below query on this thread what I could use a starting point, except it does not work with current database schema. How can I update this to work with current version ?
Select Nodes.Caption, Nodes.IP_Address, AlertLog.LogDateTime From Nodes
Join AlertLog on Nodes.NodeID = AlertLog.ObjectID
Where AlertLog.ObjectType = 'Node' and ..........
Thank you.