use of com.tencent.polaris.api.plugin.stat.StatInfo in project polaris-java by polarismesh.
the class PrometheusPushHandlerTest method testPushInstanceGaugeConcurrency.
@Test
public void testPushInstanceGaugeConcurrency() throws InterruptedException {
batchDone(() -> {
StatInfo statInfo = new StatInfo();
statInfo.setRouterGauge(mockServiceCallResult());
handler.handle(statInfo);
}, 10);
Thread.sleep(pushInterval + 1000);
handler.stopHandle();
}
Aggregations