I want to add whole SWQL query in Trigger Condition .
As of now we are not able add customize query in alert condition . Is there any way to add SWQL query in alert condition.?
thanks for reply @neomatrix1217 ,
But I want to write my own complex query Here.
As in Trigger condition Custom SWQL Alert , we are not able join table .
Is there any way to join tables or write complex query .
@rkshprb, you start it in the text field after the pre-populated query. you cant change the selection statement but you certainly can add in complexity using joins and such, you just start your join in the text field.
you have any sample join query ?. I tried to join table but its showing error . Query condition is not valid.
@christopher.t.jones123
@rkshprb, can you paste a screenshot of what you are attempting to do? It'll probably be more efficient for me to work with what you are trying to do.
Thank for reply @christopher.t.jones123
I want to use below query in custom SWQL
SELECT top 10 cs.Component.Application.Node.Caption AS NODE,cs.Component.Application.Node.DetailsUrl as [_linkfor_NODE],si.DisplayName,cs.Component.name AS [CMPNT],cs.Component.DetailsUrl as [_linkfor_CMPNT],'/Orion/Images/StatusIcons/Small-' + si.DisplayName + '.gif' AS [_iconfor_CMPNT],cs.Component.Application.Name AS [APP],cs.Component.Application.DetailsUrl as [_linkfor_APP]FROM Orion.APM.CurrentComponentStatus csJOIN Orion.APM.StatusMetadata si ON si.ApmStatusValue = cs.AvailabilityLeft JOIN orion.AlertSuppression als ON (als.Entityuri like concat('%ApplicationId=',cs.component.ApplicationID) OR als.Entityuri like concat('%NodeId=',cs.Component.Application.NodeID))Left outer JOIN Orion.NodesCustomProperties ncp On ncp.NodeID =cs.Component.Application.NodeIDLeft Join Orion.APM.Component ac on ac.ComponentID=cs.ComponentIDWHEREcs.component.Application.Node.status not in (9)and cs.Component.Application.Status not in (9)and si.DisplayName Not in ( 'Up', 'Disabled' , 'Unmanaged' , 'Not Running' , 'Critical' , 'Warning' )
and ac.Disabled=False
I Tried to use joins as shown in image,