Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

SQL query to get alert information

$
0
0

Hello,

Would anyone help me with a query where we can find the all state change information of an alert. The below query I am using will give the last state change not all state change happening.

Any help is appreciated.

SELECTAlertStringName, MonitoringObjectDisplayName, MonitoringObjectPath,  ResolutionState,

Priority,Severity, ResolvedBy,TimeRaised,TimeAdded, LastModifiedBy,LastModified,TimeResolved, TimeResolutionStateLastModified

FROMAlertviewWITH (NOLOCK)

WHERETimeRaisedis notNULLand  TimeRaised>getdate()-1 orderbyTimeRaiseddesc

Thanks,

Binoy


Viewing all articles
Browse latest Browse all 11941

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>