Delen via


ArmDataMigrationModelFactory.MongoDBProgress Method

Definition

Initializes a new instance of MongoDBProgress.

public static Azure.ResourceManager.DataMigration.Models.MongoDBProgress MongoDBProgress (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, string resultType = "Unknown", Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState state = default, long totalBytes = 0, long totalDocuments = 0);
static member MongoDBProgress : int64 * int64 * string * System.Collections.Generic.IReadOnlyDictionary<string, Azure.ResourceManager.DataMigration.Models.MongoDBError> * int64 * int64 * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * string * Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState * int64 * int64 -> Azure.ResourceManager.DataMigration.Models.MongoDBProgress
Public Shared Function MongoDBProgress (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 resultType As String = "Unknown", Optional state As MongoDBMigrationState = Nothing, Optional totalBytes As Long = 0, Optional totalDocuments As Long = 0) As MongoDBProgress

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.

resultType
String

The type of progress object.

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.

Returns

A new MongoDBProgress instance for mocking.

Applies to