Compartilhar via


CustomMonitoringEvent Class

 

Applies To: Operations Manager for System Center 2012

Represents a custom monitoring event that can be inserted into the Operations Manager system.

Namespace:   Microsoft.EnterpriseManagement.Monitoring
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Inheritance Hierarchy

System.Object
  Microsoft.EnterpriseManagement.Monitoring.CustomMonitoringEvent

Syntax

[DataContractAttribute]
public class CustomMonitoringEvent
[DataContractAttribute]
public ref class CustomMonitoringEvent 
[<DataContractAttribute>]
type CustomMonitoringEvent = class end
<DataContractAttribute>
Public Class CustomMonitoringEvent

Constructors

Name Description
System_CAPS_pubmethod CustomMonitoringEvent(String, Int32)

Initializes a new CustomMonitoringEvent object.

Properties

Name Description
System_CAPS_pubproperty Channel

Gets or sets the name of the channel that the event gets published in.

System_CAPS_pubproperty EventData

Gets or sets the data for the event.

System_CAPS_pubproperty LevelId

Gets or sets the identifier for the level of the event.

System_CAPS_pubproperty LoggingComputer

Gets or sets the name of the computer that logged the event.

System_CAPS_pubproperty Message

Gets or sets the event message.

System_CAPS_pubproperty Number

Gets the number of the event.

System_CAPS_pubproperty OriginalId

Gets the original globally unique identifier (GUID) for the event.

System_CAPS_pubproperty Parameters

Gets a list of parameters for the event.

System_CAPS_pubproperty PublisherId

Gets the globally unique identifier (GUID) for the event publisher.

System_CAPS_pubproperty PublisherName

Gets the event publisher name.

System_CAPS_pubproperty TimeGenerated

Gets or sets the time, in UTC DateTime format, that the event was generated.

System_CAPS_pubproperty User

Gets or sets the user that inserted the event. The current user is the default value.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Examples

For a code example using the CustomMonitoringEvent class, see How to Insert Custom Event and Performance Data.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.EnterpriseManagement.Monitoring Namespace

Return to top