|
Create a ReshardingCumulativeMetrics subclass of ShardingDataTransformCumulativeMetrics. All logic associated with tracking and reporting fields which are specific to be resharding should be moved into this new subclass from ShardingDataTransformCumulativeMetrics. The resharding specific cumulative fields are as follows:
- oplogEntriesFetched
- oplogEntriesApplied
- insertsApplied
- updatesAppied
- deletesApplied
- oplogFetchingTotalRemoteBatchRetrievalTimeMillis
- oplogFetchingTotalRemoteBatchesRetrieved
- oplogFetchingTotalLocalInsertTimeMillis
- oplogFetchingTotalLocalInserts
- oplogApplyingTotalLocalBatchRetrievalTimeMillis
- oplogApplyingTotalLocalBatchesRetrieved
- oplogApplyingTotalLocalBatchApplyTimeMillis
- oplogApplyingTotalLocalBatchesApplied
- All state field names (i.e. those in the section "currentInSteps")
This class should accept an instance of ReshardingCumulativeMetricsFieldNameProvider and use it while reporting its fields.
|