Search in sources :

Example 1 with BasicInformational

use of com.netflix.servo.monitor.BasicInformational in project tutorials by eugenp.

the class MetricTypeTest method givenInformationalMonitor_whenRecord_thenInformationCollected.

@Test
public void givenInformationalMonitor_whenRecord_thenInformationCollected() throws Exception {
    BasicInformational informational = new BasicInformational(MonitorConfig.builder("test").build());
    informational.setValue("information collected");
    assertEquals("information collected", informational.getValue());
}
Also used : BasicInformational(com.netflix.servo.monitor.BasicInformational) Test(org.junit.Test)

Aggregations

BasicInformational (com.netflix.servo.monitor.BasicInformational)1 Test (org.junit.Test)1