ArmRecoveryServicesDataReplicationModelFactory.DataReplicationEventProperties Method

Definition

Initializes a new instance of DataReplicationEventProperties.

public static Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationEventProperties DataReplicationEventProperties (Azure.Core.ResourceType? resourceType = default, string resourceName = default, string eventType = default, string eventName = default, DateTimeOffset? occurredOn = default, string severity = default, string description = default, string correlationId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationHealthErrorInfo> healthErrors = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.EventModelCustomProperties customProperties = default);
static member DataReplicationEventProperties : Nullable<Azure.Core.ResourceType> * string * string * string * Nullable<DateTimeOffset> * string * string * string * seq<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationHealthErrorInfo> * Azure.ResourceManager.RecoveryServicesDataReplication.Models.EventModelCustomProperties -> Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationEventProperties
Public Shared Function DataReplicationEventProperties (Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional resourceName As String = Nothing, Optional eventType As String = Nothing, Optional eventName As String = Nothing, Optional occurredOn As Nullable(Of DateTimeOffset) = Nothing, Optional severity As String = Nothing, Optional description As String = Nothing, Optional correlationId As String = Nothing, Optional healthErrors As IEnumerable(Of DataReplicationHealthErrorInfo) = Nothing, Optional customProperties As EventModelCustomProperties = Nothing) As DataReplicationEventProperties

Parameters

resourceType
Nullable<ResourceType>

Gets or sets the resource type.

resourceName
String

Gets or sets the resource name.

eventType
String

Gets or sets the event type.

eventName
String

Gets or sets the event name.

occurredOn
Nullable<DateTimeOffset>

Gets or sets the time at which the event occurred at source.

severity
String

Gets or sets the event severity.

description
String

Gets or sets the event description.

correlationId
String

Gets or sets the event correlation Id.

healthErrors
IEnumerable<DataReplicationHealthErrorInfo>

Gets or sets the errors associated with this event.

customProperties
EventModelCustomProperties

Event model custom properties. Please note EventModelCustomProperties is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include HyperVToAzStackHciEventModelCustomProperties.

Returns

A new DataReplicationEventProperties instance for mocking.

Applies to