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 TypeMethodDescriptionvoid
onClosedForMaintenance
(boolean closed) The server is open for business, or closed for maintenance.void
onHttp2xx
(IdUserDomain type) An HTTP request resulted in a 2xx success.void
onHttp4xx
(IdUserDomain type) An HTTP request resulted in a 4xx error.void
onHttp5xx
(IdUserDomain type) An HTTP request resulted in a 5xx error.void
onHttpRequested
(IdUserDomain type) An HTTP request was received.void
onHttpRequestSize
(IdUserDomain type, long size) An HTTP request was received of a given size.void
onHttpResponseSize
(IdUserDomain type, long size) An HTTP response was produced of a given size.void
onHttpResponseTime
(IdUserDomain type, Duration time) An HTTP response was produced in the given time.void
onLogin
(IdUserDomain type, long countNow) A login session was created.void
onLoginClosed
(IdUserDomain type, long countNow) A login session was closed or expired.void
onLoginPauseTime
(IdUserDomain type, Duration duration) The login pause time is known.void
onMailFailed
(IdEmail address, Duration time) Mail could not be sent to the given address.void
onMailSent
(IdEmail address, Duration time) Mail was sent to the given address.void
onRateLimitTriggered
(String name, String host, String user, String operation) A rate limit was triggered.Methods inherited from interface java.lang.AutoCloseable
close
Methods 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
Mail was sent to the given address.- Parameters:
address
- The addresstime
- The time it took
-
onMailFailed
Mail could not be sent to the given address.- Parameters:
address
- The addresstime
- The time it took
-
onRateLimitTriggered
A rate limit was triggered.- Parameters:
name
- The rate namehost
- The hostuser
- The useroperation
- The operation
-
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
-true
if the server is closed
-