SnapshotMonitoringDiscoveryData Class

Definition

Caution

Use SnapshotDiscoveryData

Collect discovery data.

C#
[System.Obsolete("Use SnapshotDiscoveryData")]
public class SnapshotMonitoringDiscoveryData : Microsoft.EnterpriseManagement.ConnectorFramework.SnapshotDiscoveryData
Inheritance
SnapshotMonitoringDiscoveryData
Attributes

Examples

The following example:

  • Connects to a Management Group.

  • Creates a connector.

  • Initializes the newly created connector.

  • Imports a management pack (if it is not already loaded).

  • Gets the monitoring class for each of the defined SnapshotMonitoringDiscoveryData objects, MonitoringClass objects, CustomMonitoringObject, CustomMonitoringRelationshipObject, and MonitoringClassProperty objects for discovery.

  • Sets the monitoring property value for each of the objects.

  • Sets the source and target for the relationship object.

  • Adds the discovery data to the Operation Manager.

  • Commits the discovery data to the Operation Manager over the newly built connector.

Remarks

An instance of the SnapshotMonitoringDiscoveryData class represents a list of monitoring objects and monitoring relationships to add to or remove from Operations Manager.

The Snapshot discovery data replaces all data that was previously discovered by the connector. Any monitoring objects or relationships that were previously discovered but are not included in the instance of SnapshotMonitoringDiscoveryClass will be removed when <xref:Microsoft.EnterpriseManagement.ConnectorFramework.SnapshotMonitoringDiscoveryData.Commit%2A> is called.

The Snapshot discovery indicates to the system that this is everything it has discovered. The Snapshot discovery effectively deletes anything that was previously discovered and the current discovery is everything that has been discovered. This is all of the discovery data that a connector is aware of.

Constructors

SnapshotMonitoringDiscoveryData()

Initializes a new instance of the SnapshotMonitoringDiscoveryData class.

Applies to

Product Versions (Obsolete)
System Center OM SDK (2012, 2016, 2019)

See also