Hello Everyone, I have an SQL query that I am trying to convert to SWQL and I am getting the error "Source entity [Orion.AlertHistory] not found in catalog. When I compare SQL studio tables to SWQL studio tables I do not see a Orion.AlertHistory table however in SQL studio the table dbo.AlertHistory does exist. Did I miss something or shouldnt the same tables be present between the two systems? Below is my query:
SELECT ADDDATE('HOUR',-7,AlertHistory.[TimeStamp]) as "Time"
,AlertObjects.EntityCaption as "Alert"
,AlertObjects.RelatedNodeCaption as "Node"
,"Details" =
Case
When AlertObjects.EntityType = 'Orion.APM.Application' Then 'Application is Down'
When AlertObjects.EntityType = 'Orion.Nodes' Then 'Node did not respond to ICMP call'
When AlertObjects.EntityType = 'Orion.NPM.Interfaces' Then 'Interface is down.'
When AlertObjects.EntityType = 'Orion.Volumes' Then 'Volume has reached a critical threshold'
Else 'Check Event Log for Details'
END
FROM [Orion].[AlertHistory]inner join [Orion].[AlertObjects] on AlertHistory.[AlertObjectID]=AlertObjects.[AlertObjectID]
where ActionID in
(SELECT [ActionID]
FROM [Orion].[Actions]
where Title = 'Execute program : C:\Program Files (x86)\Tools\bin\RATriggerAlarm.CMD')
and TimeStamp > ADDDATE('HOUR',7,DATEADD(DAY,-1,GETDATE()))
Order by TimeStamp desc