Class CAMetricsService
java.lang.Object
com.io7m.cardant.server.service.telemetry.api.CAMetricsService
- All Implemented Interfaces:
CAMetricsServiceType,com.io7m.repetoir.core.RPServiceType,AutoCloseable
The metrics service.
-
Constructor Summary
ConstructorsConstructorDescriptionCAMetricsService(CAServerTelemetryServiceType telemetry) The metrics service. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidAn HTTP request resulted in a 2xx success.voidAn HTTP request resulted in a 4xx error.voidAn HTTP request resulted in a 5xx error.voidAn HTTP request was received.voidonHttpRequestSize(long size) An HTTP request was received of a given size.voidonHttpResponseSize(long size) An HTTP response was produced of a given size.voidonHttpResponseTime(Duration time) An HTTP response was produced in the given time.voidonLogin(long sizeNow) A login session was created.voidonLoginClosed(long sizeNow) A login session was closed.toString()
-
Constructor Details
-
CAMetricsService
The metrics service.- Parameters:
telemetry- The underlying telemetry system
-
-
Method Details
-
toString
-
description
- Specified by:
descriptionin interfacecom.io7m.repetoir.core.RPServiceType
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
onHttpRequested
public void onHttpRequested()Description copied from interface:CAMetricsServiceTypeAn HTTP request was received.- Specified by:
onHttpRequestedin interfaceCAMetricsServiceType
-
onHttp5xx
public void onHttp5xx()Description copied from interface:CAMetricsServiceTypeAn HTTP request resulted in a 5xx error.- Specified by:
onHttp5xxin interfaceCAMetricsServiceType
-
onHttp2xx
public void onHttp2xx()Description copied from interface:CAMetricsServiceTypeAn HTTP request resulted in a 2xx success.- Specified by:
onHttp2xxin interfaceCAMetricsServiceType
-
onHttp4xx
public void onHttp4xx()Description copied from interface:CAMetricsServiceTypeAn HTTP request resulted in a 4xx error.- Specified by:
onHttp4xxin interfaceCAMetricsServiceType
-
onHttpRequestSize
public void onHttpRequestSize(long size) Description copied from interface:CAMetricsServiceTypeAn HTTP request was received of a given size.- Specified by:
onHttpRequestSizein interfaceCAMetricsServiceType- Parameters:
size- The size
-
onHttpResponseSize
public void onHttpResponseSize(long size) Description copied from interface:CAMetricsServiceTypeAn HTTP response was produced of a given size.- Specified by:
onHttpResponseSizein interfaceCAMetricsServiceType- Parameters:
size- The size
-
onHttpResponseTime
Description copied from interface:CAMetricsServiceTypeAn HTTP response was produced in the given time.- Specified by:
onHttpResponseTimein interfaceCAMetricsServiceType- Parameters:
time- The time
-
onLogin
public void onLogin(long sizeNow) Description copied from interface:CAMetricsServiceTypeA login session was created.- Specified by:
onLoginin interfaceCAMetricsServiceType- Parameters:
sizeNow- The number of active sessions now
-
onLoginClosed
public void onLoginClosed(long sizeNow) Description copied from interface:CAMetricsServiceTypeA login session was closed.- Specified by:
onLoginClosedin interfaceCAMetricsServiceType- Parameters:
sizeNow- The number of active sessions now
-