Class IdMetricsService
java.lang.Object
com.io7m.idstore.server.service.telemetry.api.IdMetricsService
- All Implemented Interfaces:
- IdMetricsServiceType,- com.io7m.repetoir.core.RPServiceType,- AutoCloseable
The metrics service.
- 
Constructor SummaryConstructorsConstructorDescriptionIdMetricsService(IdServerTelemetryServiceType telemetry) The metrics service.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()voidonClosedForMaintenance(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.toString()
- 
Constructor Details- 
IdMetricsServiceThe metrics service.- Parameters:
- telemetry- The underlying telemetry system
 
 
- 
- 
Method Details- 
toString
- 
description- Specified by:
- descriptionin interface- com.io7m.repetoir.core.RPServiceType
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- Exception
 
- 
onHttpRequestedDescription copied from interface:IdMetricsServiceTypeAn HTTP request was received.- Specified by:
- onHttpRequestedin interface- IdMetricsServiceType
- Parameters:
- type- The user domain
 
- 
onHttp5xxDescription copied from interface:IdMetricsServiceTypeAn HTTP request resulted in a 5xx error.- Specified by:
- onHttp5xxin interface- IdMetricsServiceType
- Parameters:
- type- The user domain
 
- 
onHttp2xxDescription copied from interface:IdMetricsServiceTypeAn HTTP request resulted in a 2xx success.- Specified by:
- onHttp2xxin interface- IdMetricsServiceType
- Parameters:
- type- The user domain
 
- 
onHttp4xxDescription copied from interface:IdMetricsServiceTypeAn HTTP request resulted in a 4xx error.- Specified by:
- onHttp4xxin interface- IdMetricsServiceType
- Parameters:
- type- The user domain
 
- 
onHttpRequestSizeDescription copied from interface:IdMetricsServiceTypeAn HTTP request was received of a given size.- Specified by:
- onHttpRequestSizein interface- IdMetricsServiceType
- Parameters:
- type- The user domain
- size- The size
 
- 
onHttpResponseSizeDescription copied from interface:IdMetricsServiceTypeAn HTTP response was produced of a given size.- Specified by:
- onHttpResponseSizein interface- IdMetricsServiceType
- Parameters:
- type- The user domain
- size- The size
 
- 
onMailSentDescription copied from interface:IdMetricsServiceTypeMail was sent to the given address.- Specified by:
- onMailSentin interface- IdMetricsServiceType
- Parameters:
- address- The address
- time- The time it took
 
- 
onMailFailedDescription copied from interface:IdMetricsServiceTypeMail could not be sent to the given address.- Specified by:
- onMailFailedin interface- IdMetricsServiceType
- Parameters:
- address- The address
- time- The time it took
 
- 
onRateLimitTriggeredDescription copied from interface:IdMetricsServiceTypeA rate limit was triggered.- Specified by:
- onRateLimitTriggeredin interface- IdMetricsServiceType
- Parameters:
- name- The rate name
- host- The host
- user- The user
- operation- The operation
 
- 
onHttpResponseTimeDescription copied from interface:IdMetricsServiceTypeAn HTTP response was produced in the given time.- Specified by:
- onHttpResponseTimein interface- IdMetricsServiceType
- Parameters:
- type- The user domain
- time- The time
 
- 
onLoginDescription copied from interface:IdMetricsServiceTypeA login session was created.- Specified by:
- onLoginin interface- IdMetricsServiceType
- Parameters:
- type- The type of session
- countNow- The number of sessions now active
 
- 
onLoginClosedDescription copied from interface:IdMetricsServiceTypeA login session was closed or expired.- Specified by:
- onLoginClosedin interface- IdMetricsServiceType
- Parameters:
- type- The type of session
- countNow- The number of sessions now active
 
- 
onLoginPauseTimeDescription copied from interface:IdMetricsServiceTypeThe login pause time is known.- Specified by:
- onLoginPauseTimein interface- IdMetricsServiceType
- Parameters:
- type- The user domain
- duration- The pause time
 
- 
onClosedForMaintenancepublic void onClosedForMaintenance(boolean closed) Description copied from interface:IdMetricsServiceTypeThe server is open for business, or closed for maintenance.- Specified by:
- onClosedForMaintenancein interface- IdMetricsServiceType
- Parameters:
- closed-- trueif the server is closed
 
 
-