Package io.split.client.metrics
Class HttpMetrics
java.lang.Object
io.split.client.metrics.HttpMetrics
- All Implemented Interfaces:
DTOMetrics,Metrics
public class HttpMetrics extends Object implements Metrics, DTOMetrics
Created by adilaijaz on 9/4/15.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.split.engine.metrics.Metrics
Metrics.NoopMetrics -
Constructor Summary
Constructors Constructor Description HttpMetrics(org.apache.http.impl.client.CloseableHttpClient client, URI root) -
Method Summary
Modifier and Type Method Description voidcount(Counter dto)voidcount(String counter, long delta)Adjusts the specified counter by a given delta.static HttpMetricscreate(org.apache.http.impl.client.CloseableHttpClient client, URI root)voidtime(Latency dto)voidtime(String operation, long timeInMs)Records an execution time in milliseconds for the specified named operation.
-
Constructor Details
-
HttpMetrics
public HttpMetrics(org.apache.http.impl.client.CloseableHttpClient client, URI root) throws URISyntaxException- Throws:
URISyntaxException
-
-
Method Details
-
create
public static HttpMetrics create(org.apache.http.impl.client.CloseableHttpClient client, URI root) throws URISyntaxException- Throws:
URISyntaxException
-
time
- Specified by:
timein interfaceDTOMetrics
-
count
- Specified by:
countin interfaceDTOMetrics
-
count
Description copied from interface:MetricsAdjusts the specified counter by a given delta.This method is is non-blocking and is guaranteed not to throw an exception.
-
time
Description copied from interface:MetricsRecords an execution time in milliseconds for the specified named operation.This method is non-blocking and is guaranteed not to throw an exception.
-