Share via


Event Class

Definition

Implements the Event class.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.EventTypeConverter))]
public class Event : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IEvent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.EventTypeConverter))>]
type Event = class
    interface IEvent
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class Event
Implements IEvent, IValidates
Inheritance
Event
Attributes
Implements

Constructors

Event()

Creates an new Event instance.

Properties

AffectedObjectCorrelationId

The affected object correlationId for the event.

AffectedObjectFriendlyName

The friendly name of the source of the event on which it is raised (for example, VM, VMM etc).

Code

The Id of the monitoring event.

Description

The event name.

EventType

The type of the event. for example: VM Health, Server Health, Job Failure etc.

FabricId

The ARM ID of the fabric.

HealthError

The list of errors / warnings capturing details associated with the issue(s).

Id

Resource Id

Location

Resource Location

Name

Resource Name

ProviderSpecificDetailInstanceType

Gets the class type. Overridden in derived classes.

Severity

The severity of the event.

SpecificDetailInstanceType

Gets the class type. Overridden in derived classes.

TimeOfOccurrence

The time of occurrence of the event.

Type

Resource Type

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Event.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Event.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IEvent.

FromJsonString(String)

Creates a new instance of Event, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Event into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to