Metrics Base
Creates a new MetricsBase class instance.
Parameters
The platform of the service.
The id of the service.
The server uuid.
Whether or not data sending is enabled.
A consumer that receives a JsonObjectBuilder
and appends all platform-specific data.
A consumer that receives a JsonObjectBuilder
and appends all service-specific data.
A consumer that takes a runnable with the submit task. This can be used to delegate the data collection to a another thread to prevent errors caused by concurrency. Can be null
.
A supplier to check if the service is still enabled.
A consumer that accepts log message and an error.
A consumer that accepts info log messages.
Whether or not errors should be logged.
Whether or not the sent data should be logged.
Whether or not the response status text should be logged.
Whether or not the relocate check should be skipped.