Class MetricsReader
java.lang.Object
org.eclipse.microprofile.telemetry.metrics.tck.jvm.MetricsReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertLogMessage(String metricName, String metricDescription, String metricUnit, String metricType) This method asserts that a log line matching the following format "name=, description= , unit= , type= " Can be found in the log file pointed to by the system property mptelemetry.tck.log.file.path.
-
Constructor Details
-
MetricsReader
public MetricsReader()
-
-
Method Details
-
assertLogMessage
public static void assertLogMessage(String metricName, String metricDescription, String metricUnit, String metricType) This method asserts that a log line matching the following format "name=, description= , unit= , type= " Can be found in the log file pointed to by the system property mptelemetry.tck.log.file.path. It will wait for up to fifteen seconds for the log to appear. - Parameters:
metricName- The name of the metric we expect to find in the logsmetricDescription- The description of the metric we expect to find in the logsmetricUnit- The unit of the metric we expect to find in the logsmetricType- The type of the metric we expect to find in the logs
-