PartialMonitoringObjectBase.GetMonitoringEvents Method (MonitoringEventCriteria)
Applies To: Operations Manager for System Center 2012
Gets all the event objects that are related to this monitoring object and that meet the specified criteria.
Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public ReadOnlyCollection<MonitoringEvent> GetMonitoringEvents(
MonitoringEventCriteria criteria
)
public:
ReadOnlyCollection<MonitoringEvent^>^ GetMonitoringEvents(
MonitoringEventCriteria^ criteria
)
member GetMonitoringEvents :
criteria:MonitoringEventCriteria -> ReadOnlyCollection<MonitoringEvent>
Public Function GetMonitoringEvents (
criteria As MonitoringEventCriteria
) As ReadOnlyCollection(Of MonitoringEvent)
Parameters
criteria
Type: Microsoft.EnterpriseManagement.Monitoring.MonitoringEventCriteriaThe criteria that filters the events. Only events that match the criteria are returned. For information about the criteria syntax, seeOperations Manager Data Queries Overview.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<MonitoringEvent>
Returns a ReadOnlyCollection<T> of MonitoringEvent objects.
See Also
GetMonitoringEvents Overload
PartialMonitoringObjectBase Class
Microsoft.EnterpriseManagement.Monitoring Namespace
Return to top