ArmRecoveryServicesSiteRecoveryModelFactory.SiteRecoveryEventProperties 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.
Initializes a new instance of SiteRecoveryEventProperties.
public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryEventProperties SiteRecoveryEventProperties(string eventCode = default, string description = default, string eventType = default, string affectedObjectFriendlyName = default, string affectedObjectCorrelationId = default, string severity = default, DateTimeOffset? occurredOn = default, Azure.Core.ResourceIdentifier fabricId = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryEventProviderSpecificDetails providerSpecificDetails = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryEventSpecificDetails eventSpecificDetails = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> healthErrors = default);
static member SiteRecoveryEventProperties : string * string * string * string * string * string * Nullable<DateTimeOffset> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryEventProviderSpecificDetails * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryEventSpecificDetails * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryEventProperties
Public Shared Function SiteRecoveryEventProperties (Optional eventCode As String = Nothing, Optional description As String = Nothing, Optional eventType As String = Nothing, Optional affectedObjectFriendlyName As String = Nothing, Optional affectedObjectCorrelationId As String = Nothing, Optional severity As String = Nothing, Optional occurredOn As Nullable(Of DateTimeOffset) = Nothing, Optional fabricId As ResourceIdentifier = Nothing, Optional providerSpecificDetails As SiteRecoveryEventProviderSpecificDetails = Nothing, Optional eventSpecificDetails As SiteRecoveryEventSpecificDetails = Nothing, Optional healthErrors As IEnumerable(Of SiteRecoveryHealthError) = Nothing) As SiteRecoveryEventProperties
Parameters
- eventCode
- String
The Id of the monitoring event.
- description
- String
The event name.
- eventType
- String
The type of the event. for example: VM Health, Server Health, Job Failure etc.
- affectedObjectFriendlyName
- String
The friendly name of the source of the event on which it is raised (for example, VM, VMM etc).
- affectedObjectCorrelationId
- String
The affected object correlationId for the event.
- severity
- String
The severity of the event.
- occurredOn
- Nullable<DateTimeOffset>
The time of occurrence of the event.
- fabricId
- ResourceIdentifier
The ARM ID of the fabric.
- providerSpecificDetails
- SiteRecoveryEventProviderSpecificDetails
The provider specific settings. Please note SiteRecoveryEventProviderSpecificDetails 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 A2AEventDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, HyperVReplicaBaseEventDetails, InMageAzureV2EventDetails, InMageRcmEventDetails, InMageRcmFailbackEventDetails and VMwareCbtEventDetails.
- eventSpecificDetails
- SiteRecoveryEventSpecificDetails
The event specific settings. Please note SiteRecoveryEventSpecificDetails 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 SiteRecoveryJobStatusEventDetails.
- healthErrors
- IEnumerable<SiteRecoveryHealthError>
The list of errors / warnings capturing details associated with the issue(s).
Returns
A new SiteRecoveryEventProperties instance for mocking.
Applies to
Azure SDK for .NET