Class AssertMetrics
java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.AssertMetrics
@ManagedResource(description="Assertion Metrics")
public class AssertMetrics
extends AbstractMonitor
JMX Metrics for assertions
- Author:
- Mark Pollack
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
getDb, getMongoClient, getServerStatus, hosts
-
Constructor Details
-
AssertMetrics
public AssertMetrics(com.mongodb.client.MongoClient mongoClient) - Parameters:
mongoClient
- must not be null.- Since:
- 2.2
-
-
Method Details
-
getRegular
@ManagedMetric(metricType=COUNTER, displayName="Regular") public int getRegular() -
getWarning
@ManagedMetric(metricType=COUNTER, displayName="Warning") public int getWarning() -
getMsg
@ManagedMetric(metricType=COUNTER, displayName="Msg") public int getMsg() -
getUser
@ManagedMetric(metricType=COUNTER, displayName="User") public int getUser() -
getRollovers
@ManagedMetric(metricType=GAUGE, displayName="Rollovers") public int getRollovers()
-