Search in sources :

Example 1 with UriStatInfo

use of com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatInfo in project pinpoint by naver.

the class GrpcUriStatMessageConverterTest method convertTest.

@Test
public void convertTest() {
    long currentTimeMillis = System.currentTimeMillis();
    AgentUriStatData agentUriStatData = new AgentUriStatData(currentTimeMillis);
    List<UriStatInfo> uriStatInfoList = createRandomUriStatInfo(100);
    for (UriStatInfo uriStatInfo : uriStatInfoList) {
        agentUriStatData.add(uriStatInfo);
    }
    GrpcUriStatMessageConverter converter = new GrpcUriStatMessageConverter();
    PAgentUriStat agentUriStat = converter.toMessage(agentUriStatData);
    List<PEachUriStat> eachUriStatList = agentUriStat.getEachUriStatList();
    assertData(uriStatInfoList, eachUriStatList);
}
Also used : AgentUriStatData(com.navercorp.pinpoint.profiler.monitor.metric.uri.AgentUriStatData) PAgentUriStat(com.navercorp.pinpoint.grpc.trace.PAgentUriStat) PEachUriStat(com.navercorp.pinpoint.grpc.trace.PEachUriStat) UriStatInfo(com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatInfo) Test(org.junit.Test)

Example 2 with UriStatInfo

use of com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatInfo in project pinpoint by naver.

the class AsyncQueueingUriStatStorage method store.

@Override
public void store(String uri, boolean status, long elapsedTime) {
    Objects.requireNonNull(uri, "uri");
    UriStatInfo uriStatInfo = new UriStatInfo(uri, status, elapsedTime);
    execute(uriStatInfo);
}
Also used : UriStatInfo(com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatInfo)

Aggregations

UriStatInfo (com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatInfo)2 PAgentUriStat (com.navercorp.pinpoint.grpc.trace.PAgentUriStat)1 PEachUriStat (com.navercorp.pinpoint.grpc.trace.PEachUriStat)1 AgentUriStatData (com.navercorp.pinpoint.profiler.monitor.metric.uri.AgentUriStatData)1 Test (org.junit.Test)1