共用方式為


ArmStorageModelFactory.GeoReplicationStatistics Method

Definition

Initializes a new instance of GeoReplicationStatistics.

public static Azure.ResourceManager.Storage.Models.GeoReplicationStatistics GeoReplicationStatistics (Azure.ResourceManager.Storage.Models.GeoReplicationStatus? status = default, DateTimeOffset? lastSyncOn = default, bool? canFailover = default, bool? canPlannedFailover = default, Azure.ResourceManager.Storage.Models.PostFailoverRedundancy? postFailoverRedundancy = default, Azure.ResourceManager.Storage.Models.PostPlannedFailoverRedundancy? postPlannedFailoverRedundancy = default);
static member GeoReplicationStatistics : Nullable<Azure.ResourceManager.Storage.Models.GeoReplicationStatus> * Nullable<DateTimeOffset> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.PostFailoverRedundancy> * Nullable<Azure.ResourceManager.Storage.Models.PostPlannedFailoverRedundancy> -> Azure.ResourceManager.Storage.Models.GeoReplicationStatistics
Public Shared Function GeoReplicationStatistics (Optional status As Nullable(Of GeoReplicationStatus) = Nothing, Optional lastSyncOn As Nullable(Of DateTimeOffset) = Nothing, Optional canFailover As Nullable(Of Boolean) = Nothing, Optional canPlannedFailover As Nullable(Of Boolean) = Nothing, Optional postFailoverRedundancy As Nullable(Of PostFailoverRedundancy) = Nothing, Optional postPlannedFailoverRedundancy As Nullable(Of PostPlannedFailoverRedundancy) = Nothing) As GeoReplicationStatistics

Parameters

status
Nullable<GeoReplicationStatus>

The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable.

lastSyncOn
Nullable<DateTimeOffset>

All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point in time may or may not be available for reads. Element may be default value if value of LastSyncTime is not available, this can happen if secondary is offline or we are in bootstrap.

canFailover
Nullable<Boolean>

A boolean flag which indicates whether or not account failover is supported for the account.

canPlannedFailover
Nullable<Boolean>

A boolean flag which indicates whether or not planned account failover is supported for the account.

postFailoverRedundancy
Nullable<PostFailoverRedundancy>

The redundancy type of the account after an account failover is performed.

postPlannedFailoverRedundancy
Nullable<PostPlannedFailoverRedundancy>

The redundancy type of the account after a planned account failover is performed.

Returns

A new GeoReplicationStatistics instance for mocking.

Applies to