Share via


ArmDataMigrationModelFactory.MongoDBDatabaseProgress Method

Definition

Initializes a new instance of MongoDBDatabaseProgress.

public static Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseProgress MongoDBDatabaseProgress (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.MongoDBCollectionProgress> collections = default);
static member MongoDBDatabaseProgress : 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.MongoDBCollectionProgress> -> Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseProgress
Public Shared Function MongoDBDatabaseProgress (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 collections As IReadOnlyDictionary(Of String, MongoDBCollectionProgress) = Nothing) As MongoDBDatabaseProgress

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.

collections
IReadOnlyDictionary<String,MongoDBCollectionProgress>

The progress of the collections in the database. The keys are the unqualified names of the collections.

Returns

A new MongoDBDatabaseProgress instance for mocking.

Applies to