Share via


ArmDataMigrationModelFactory.MongoDBMigrationProgress Method

Definition

Initializes a new instance of MongoDBMigrationProgress.

public static Azure.ResourceManager.DataMigration.Models.MongoDBMigrationProgress MongoDBMigrationProgress (long bytesCopied = 0, long documentsCopied = 0, string elapsedTime = default, System.Collections.Generic.IReadOnlyDictionary<string,Azure.ResourceManager.DataMigration.Models.MongoDBError> errors = default, long eventsPending = 0, long eventsReplayed = 0, DateTimeOffset? lastEventOn = default, DateTimeOffset? lastReplayOn = default, string name = default, string qualifiedName = default, Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState state = default, long totalBytes = 0, long totalDocuments = 0, System.Collections.Generic.IReadOnlyDictionary<string,Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseProgress> databases = default);
static member MongoDBMigrationProgress : int64 * int64 * string * System.Collections.Generic.IReadOnlyDictionary<string, Azure.ResourceManager.DataMigration.Models.MongoDBError> * int64 * int64 * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState * int64 * int64 * System.Collections.Generic.IReadOnlyDictionary<string, Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseProgress> -> Azure.ResourceManager.DataMigration.Models.MongoDBMigrationProgress
Public Shared Function MongoDBMigrationProgress (Optional bytesCopied As Long = 0, Optional documentsCopied As Long = 0, Optional elapsedTime As String = Nothing, Optional errors As IReadOnlyDictionary(Of String, MongoDBError) = Nothing, Optional eventsPending As Long = 0, Optional eventsReplayed As Long = 0, Optional lastEventOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastReplayOn As Nullable(Of DateTimeOffset) = Nothing, Optional name As String = Nothing, Optional qualifiedName As String = Nothing, Optional state As MongoDBMigrationState = Nothing, Optional totalBytes As Long = 0, Optional totalDocuments As Long = 0, Optional databases As IReadOnlyDictionary(Of String, MongoDBDatabaseProgress) = Nothing) As MongoDBMigrationProgress

Parameters

bytesCopied
Int64

The number of document bytes copied during the Copying stage.

documentsCopied
Int64

The number of documents copied during the Copying stage.

elapsedTime
String

The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format).

errors
IReadOnlyDictionary<String,MongoDBError>

The errors and warnings that have occurred for the current object. The keys are the error codes.

eventsPending
Int64

The number of oplog events awaiting replay.

eventsReplayed
Int64

The number of oplog events replayed so far.

lastEventOn
Nullable<DateTimeOffset>

The timestamp of the last oplog event received, or null if no oplog event has been received yet.

lastReplayOn
Nullable<DateTimeOffset>

The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet.

name
String

The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null.

qualifiedName
String

The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this is the database name. For the overall migration, this is null.

totalBytes
Int64

The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size was unknown.

totalDocuments
Int64

The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was unknown.

databases
IReadOnlyDictionary<String,MongoDBDatabaseProgress>

The progress of the databases in the migration. The keys are the names of the databases.

Returns

A new MongoDBMigrationProgress instance for mocking.

Applies to