ManagementGroup.GetMonitoringDiagnostics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a collection of diagnostic objects from the management group.
Overloads
GetMonitoringDiagnostics() |
Obsolete.
Gets diagnostics. |
GetMonitoringDiagnostics(ManagementPackDiagnosticCriteria) |
Obsolete.
Gets diagnostics based on criteria. |
GetMonitoringDiagnostics<T>(ICollection<T>) |
Obsolete.
Gets all the diagnostics in this management group targeted to any of these instances. |
GetMonitoringDiagnostics<T>(ManagementPackDiagnosticCriteria, ICollection<T>) |
Obsolete.
Gets all the diagnostics in this management group targeted to any of these instances. |
GetMonitoringDiagnostics()
Caution
Please use Monitoring.GetDiagnostics()
Gets diagnostics.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringDiagnostic ^> ^ GetMonitoringDiagnostics();
[System.Obsolete("Please use Monitoring.GetDiagnostics()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic> GetMonitoringDiagnostics ();
member this.GetMonitoringDiagnostics : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic>
Public Function GetMonitoringDiagnostics () As ReadOnlyCollection(Of MonitoringDiagnostic)
Returns
A collection of diagnostics that match the criteria.
- Attributes
Applies to
GetMonitoringDiagnostics(ManagementPackDiagnosticCriteria)
Caution
Please use Monitoring.GetDiagnostics()
Gets diagnostics based on criteria.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringDiagnostic ^> ^ GetMonitoringDiagnostics(Microsoft::EnterpriseManagement::Configuration::ManagementPackDiagnosticCriteria ^ criteria);
[System.Obsolete("Please use Monitoring.GetDiagnostics()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic> GetMonitoringDiagnostics (Microsoft.EnterpriseManagement.Configuration.ManagementPackDiagnosticCriteria criteria);
member this.GetMonitoringDiagnostics : Microsoft.EnterpriseManagement.Configuration.ManagementPackDiagnosticCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic>
Public Function GetMonitoringDiagnostics (criteria As ManagementPackDiagnosticCriteria) As ReadOnlyCollection(Of MonitoringDiagnostic)
Parameters
- criteria
- ManagementPackDiagnosticCriteria
The criteria.
Returns
A collection of diagnostics that match the criteria.
- Attributes
Applies to
GetMonitoringDiagnostics<T>(ICollection<T>)
Caution
Please use Monitoring.GetDiagnostics<T>()
Gets all the diagnostics 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::MonitoringDiagnostic ^> ^ GetMonitoringDiagnostics(System::Collections::Generic::ICollection<T> ^ monitoringObjects);
[System.Obsolete("Please use Monitoring.GetDiagnostics<T>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic> GetMonitoringDiagnostics<T> (System.Collections.Generic.ICollection<T> monitoringObjects) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.GetMonitoringDiagnostics : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetMonitoringDiagnostics(Of T As PartialMonitoringObject) (monitoringObjects As ICollection(Of T)) As ReadOnlyCollection(Of MonitoringDiagnostic)
Type Parameters
- T
Must be of type PartialMonitoringObject.
Parameters
- monitoringObjects
- ICollection<T>
The diagnostic objects that target these monitoring objects.
Returns
A collection of MonitoringDiagnostic objects.
- Attributes
Exceptions
monitoringObjects is null
There was invalid data in the database corresponding to this method call.
Applies to
GetMonitoringDiagnostics<T>(ManagementPackDiagnosticCriteria, ICollection<T>)
Caution
Please use Monitoring.GetDiagnostics<T>()
Gets all the diagnostics 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::MonitoringDiagnostic ^> ^ GetMonitoringDiagnostics(Microsoft::EnterpriseManagement::Configuration::ManagementPackDiagnosticCriteria ^ criteria, System::Collections::Generic::ICollection<T> ^ monitoringObjects);
[System.Obsolete("Please use Monitoring.GetDiagnostics<T>()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic> GetMonitoringDiagnostics<T> (Microsoft.EnterpriseManagement.Configuration.ManagementPackDiagnosticCriteria criteria, System.Collections.Generic.ICollection<T> monitoringObjects) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.GetMonitoringDiagnostics : Microsoft.EnterpriseManagement.Configuration.ManagementPackDiagnosticCriteria * System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringDiagnostic> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetMonitoringDiagnostics(Of T As PartialMonitoringObject) (criteria As ManagementPackDiagnosticCriteria, monitoringObjects As ICollection(Of T)) As ReadOnlyCollection(Of MonitoringDiagnostic)
Type Parameters
- T
Must be of type PartialMonitoringObject
Parameters
- criteria
- ManagementPackDiagnosticCriteria
A value that specifies the kind of diagnostics to be returned.
- monitoringObjects
- ICollection<T>
The diagnostic objects that target these monitoring objects.
Returns
A collection of MonitoringDiagnostic objects.
- Attributes
Exceptions
monitoringObjects is null
There was invalid data in the database corresponding to this method call.