Share via


ManagementGroup.GetMonitoringDiscoveries Method

Definition

Retrieves the discovery objects.

Overloads

GetMonitoringDiscoveries()
Obsolete.

Gets discoveries.

GetMonitoringDiscoveries(ManagementPackDiscoveryCriteria)
Obsolete.

Gets discoveries based on criteria.

GetMonitoringDiscoveries<T>(ICollection<T>)
Obsolete.

Gets all the discoveries in this management group targeted to any of these instances.

GetMonitoringDiscoveries<T>(ManagementPackDiscoveryCriteria, ICollection<T>)
Obsolete.

Gets all the discoveries in this management group targeted to any of these instances.

GetMonitoringDiscoveries()

Caution

Please use Monitoring.GetDiscoveries()

Gets discoveries.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringDiscovery ^> ^ GetMonitoringDiscoveries();
[System.Obsolete("Please use Monitoring.GetDiscoveries()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery> GetMonitoringDiscoveries ();
member this.GetMonitoringDiscoveries : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery>
Public Function GetMonitoringDiscoveries () As ReadOnlyCollection(Of MonitoringDiscovery)

Returns

A collection of rules that match the criteria.

Attributes

Applies to

GetMonitoringDiscoveries(ManagementPackDiscoveryCriteria)

Caution

Please use Monitoring.GetDiscoveries()

Gets discoveries based on criteria.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringDiscovery ^> ^ GetMonitoringDiscoveries(Microsoft::EnterpriseManagement::Configuration::ManagementPackDiscoveryCriteria ^ criteria);
[System.Obsolete("Please use Monitoring.GetDiscoveries()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery> GetMonitoringDiscoveries (Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscoveryCriteria criteria);
member this.GetMonitoringDiscoveries : Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscoveryCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery>
Public Function GetMonitoringDiscoveries (criteria As ManagementPackDiscoveryCriteria) As ReadOnlyCollection(Of MonitoringDiscovery)

Parameters

criteria
ManagementPackDiscoveryCriteria

The criteria.

Returns

A collection of discoveries that match the criteria.

Attributes

Applies to

GetMonitoringDiscoveries<T>(ICollection<T>)

Caution

Please use Monitoring.GetDiscoveries<T>()

Gets all the discoveries in this management group targeted to any of these instances.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringDiscovery ^> ^ GetMonitoringDiscoveries(System::Collections::Generic::ICollection<T> ^ monitoringObjects);
[System.Obsolete("Please use Monitoring.GetDiscoveries<T>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery> GetMonitoringDiscoveries<T> (System.Collections.Generic.ICollection<T> monitoringObjects) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.GetMonitoringDiscoveries : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetMonitoringDiscoveries(Of T As PartialMonitoringObject) (monitoringObjects As ICollection(Of T)) As ReadOnlyCollection(Of MonitoringDiscovery)

Type Parameters

T

Must be of type PartialMonitoringObject

Parameters

monitoringObjects
ICollection<T>

The discovery objects that target these monitoring objects.

Returns

A collection of MonitoringDiscovery objects.

Attributes

Exceptions

monitoringObjects is null

There was invalid data in the database corresponding to this method call.

Applies to

GetMonitoringDiscoveries<T>(ManagementPackDiscoveryCriteria, ICollection<T>)

Caution

Please use Monitoring.GetDiscoveries<T>()

Gets all the discoveries in this management group targeted to any of these instances.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringDiscovery ^> ^ GetMonitoringDiscoveries(Microsoft::EnterpriseManagement::Configuration::ManagementPackDiscoveryCriteria ^ criteria, System::Collections::Generic::ICollection<T> ^ monitoringObjects);
[System.Obsolete("Please use Monitoring.GetDiscoveries<T>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery> GetMonitoringDiscoveries<T> (Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscoveryCriteria criteria, System.Collections.Generic.ICollection<T> monitoringObjects) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.GetMonitoringDiscoveries : Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscoveryCriteria * System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiscovery> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetMonitoringDiscoveries(Of T As PartialMonitoringObject) (criteria As ManagementPackDiscoveryCriteria, monitoringObjects As ICollection(Of T)) As ReadOnlyCollection(Of MonitoringDiscovery)

Type Parameters

T

Must be of typePartialMonitoringObject.

Parameters

criteria
ManagementPackDiscoveryCriteria

A value that specifies the kind of discovery objects to be returned.

monitoringObjects
ICollection<T>

The discovery objects that target these monitoring objects.

Returns

A collection of MonitoringDiscovery objects.

Attributes

Exceptions

monitoringObjects is null

There was invalid data in the database corresponding to this method call.

Applies to