BoxedIce.ServerDensity.Agent.Checks.ExtendedMongoDBCheck.FillBackgroundFlushingStatistics C# (CSharp) Méthode

FillBackgroundFlushingStatistics() private méthode

private FillBackgroundFlushingStatistics ( BsonDocument statusOutput, object>.IDictionary status ) : void
statusOutput BsonDocument
status object>.IDictionary
Résultat void
        private void FillBackgroundFlushingStatistics(BsonDocument statusOutput, IDictionary<string, object> status)
        {
            if (statusOutput.Contains("backgroundFlushing"))
            {
                BsonDocument backgroundFlushingOutput = (BsonDocument)statusOutput["backgroundFlushing"];
                IDictionary<string, object> backgroundFlushing = new Dictionary<string, object>();
                status.Add("backgroundFlushing", backgroundFlushing);
                TimeSpan delta = DateTime.Now - (DateTime)backgroundFlushingOutput["last_finished"];
                backgroundFlushing.Add("secondsSinceLastFlush", delta.TotalSeconds);
                backgroundFlushing.Add("lastFlushLength", backgroundFlushingOutput["last_ms"]);
                backgroundFlushing.Add("flushLengthAvrg", backgroundFlushingOutput["average_ms"]);
            }
        }