@ManagedResource(description="Background Flushing Metrics") public class BackgroundFlushingMetrics extends AbstractMonitor
| Constructor and Description |
|---|
BackgroundFlushingMetrics(com.mongodb.client.MongoClient mongoClient) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageMs() |
int |
getFlushes() |
Date |
getLastFinished() |
int |
getLastMs() |
int |
getTotalMs() |
getDb, getMongoClient, getServerStatus, hostspublic BackgroundFlushingMetrics(com.mongodb.client.MongoClient mongoClient)
mongoClient - must not be null.@ManagedMetric(metricType=COUNTER, displayName="Flushes") public int getFlushes()
@ManagedMetric(metricType=COUNTER, displayName="Total ms", unit="ms") public int getTotalMs()
@ManagedMetric(metricType=GAUGE, displayName="Average ms", unit="ms") public double getAverageMs()
@ManagedMetric(metricType=GAUGE, displayName="Last Ms", unit="ms") public int getLastMs()
@ManagedMetric(metricType=GAUGE, displayName="Last finished") public Date getLastFinished()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.