Share via


IMonitoringInstancesManagement.GetStateForObjects<T> Method

Definition

Gets monitoring state for a list of monitoring objects and monitors.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject System::Collections::Generic::Dictionary<T, System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Monitoring::MonitoringState ^> ^> ^ GetStateForObjects(System::Collections::Generic::IEnumerable<T> ^ instances, System::Collections::Generic::IEnumerable<Microsoft::EnterpriseManagement::Configuration::ManagementPackMonitor ^> ^ monitors);
public System.Collections.Generic.Dictionary<T,System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringState>> GetStateForObjects<T> (System.Collections.Generic.IEnumerable<T> instances, System.Collections.Generic.IEnumerable<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor> monitors) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
abstract member GetStateForObjects : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> * seq<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor> -> System.Collections.Generic.Dictionary<'T, System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringState> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetStateForObjects(Of T As PartialMonitoringObject) (instances As IEnumerable(Of T), monitors As IEnumerable(Of ManagementPackMonitor)) As Dictionary(Of T, IList(Of MonitoringState))

Type Parameters

T

At least a PartialMonitoringObject

Parameters

instances
IEnumerable<T>

The objects.

monitors
IEnumerable<ManagementPackMonitor>

The monitors.

Returns

A dictionary of monitoring objects to a collection of states.

Applies to