MongoDBProgress Class
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.
Base class for MongoDB migration outputs Please note MongoDBProgress 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 MongoDBCollectionProgress, MongoDBDatabaseProgress and MongoDBMigrationProgress.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.DataMigration.Models.UnknownMongoDBProgress))]
public abstract class MongoDBProgress : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataMigration.Models.MongoDBProgress>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DataMigration.Models.MongoDBProgress>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.DataMigration.Models.UnknownMongoDBProgress))>]
type MongoDBProgress = class
interface IJsonModel<MongoDBProgress>
interface IPersistableModel<MongoDBProgress>
Public MustInherit Class MongoDBProgress
Implements IJsonModel(Of MongoDBProgress), IPersistableModel(Of MongoDBProgress)
- Inheritance
-
MongoDBProgress
- Derived
- Attributes
- Implements
Constructors
MongoDBProgress(Int64, Int64, String, IReadOnlyDictionary<String,MongoDBError>, Int64, Int64, MongoDBMigrationState, Int64, Int64) |
Initializes a new instance of MongoDBProgress. |
Properties
BytesCopied |
The number of document bytes copied during the Copying stage. |
DocumentsCopied |
The number of documents copied during the Copying stage. |
ElapsedTime |
The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format). |
Errors |
The errors and warnings that have occurred for the current object. The keys are the error codes. |
EventsPending |
The number of oplog events awaiting replay. |
EventsReplayed |
The number of oplog events replayed so far. |
LastEventOn |
The timestamp of the last oplog event received, or null if no oplog event has been received yet. |
LastReplayOn |
The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet. |
Name |
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 |
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. |
State |
Gets the state. |
TotalBytes |
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 |
The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was unknown. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<MongoDBProgress>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<MongoDBProgress>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<MongoDBProgress>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<MongoDBProgress>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<MongoDBProgress>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET