Interface IdMetricsServiceType
- All Superinterfaces:
AutoCloseable, com.io7m.repetoir.core.RPServiceType
- All Known Implementing Classes:
IdMetricsService
The interface exposed by the metrics service.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonClosedForMaintenance(boolean closed) The server is open for business, or closed for maintenance.voidonHttp2xx(IdUserDomain type) An HTTP request resulted in a 2xx success.voidonHttp4xx(IdUserDomain type) An HTTP request resulted in a 4xx error.voidonHttp5xx(IdUserDomain type) An HTTP request resulted in a 5xx error.voidonHttpRequested(IdUserDomain type) An HTTP request was received.voidonHttpRequestSize(IdUserDomain type, long size) An HTTP request was received of a given size.voidonHttpResponseSize(IdUserDomain type, long size) An HTTP response was produced of a given size.voidonHttpResponseTime(IdUserDomain type, Duration time) An HTTP response was produced in the given time.voidonLogin(IdUserDomain type, long countNow) A login session was created.voidonLoginClosed(IdUserDomain type, long countNow) A login session was closed or expired.voidonLoginPauseTime(IdUserDomain type, Duration duration) The login pause time is known.voidonMailFailed(IdEmail address, Duration time) Mail could not be sent to the given address.voidonMailSent(IdEmail address, Duration time) Mail was sent to the given address.voidonRateLimitTriggered(String name, String host, String user, String operation) A rate limit was triggered.Methods inherited from interface AutoCloseable
closeMethods inherited from interface com.io7m.repetoir.core.RPServiceType
description
-
Method Details
-
onHttpRequested
An HTTP request was received.- Parameters:
type- The user domain
-
onHttp5xx
An HTTP request resulted in a 5xx error.- Parameters:
type- The user domain
-
onHttp2xx
An HTTP request resulted in a 2xx success.- Parameters:
type- The user domain
-
onHttp4xx
An HTTP request resulted in a 4xx error.- Parameters:
type- The user domain
-
onHttpRequestSize
An HTTP request was received of a given size.- Parameters:
type- The user domainsize- The size
-
onHttpResponseSize
An HTTP response was produced of a given size.- Parameters:
type- The user domainsize- The size
-
onMailSent
-
onMailFailed
-
onRateLimitTriggered
-
onHttpResponseTime
An HTTP response was produced in the given time.- Parameters:
type- The user domaintime- The time
-
onLogin
A login session was created.- Parameters:
type- The type of sessioncountNow- The number of sessions now active
-
onLoginClosed
A login session was closed or expired.- Parameters:
type- The type of sessioncountNow- The number of sessions now active
-
onLoginPauseTime
The login pause time is known.- Parameters:
type- The user domainduration- The pause time
-
onClosedForMaintenance
void onClosedForMaintenance(boolean closed) The server is open for business, or closed for maintenance.- Parameters:
closed-trueif the server is closed
-