Klasse DUUIProcessMetrics
java.lang.Object
org.texttechnologylab.duui.api.metrics.providers.DUUIProcessMetrics
A class containing process related metrics and means to update them.
- Autor:
- Cedric Borkowski.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final io.prometheus.client.Gauge
The number of active threads or workers.static final io.prometheus.client.Counter
The number of errors during processing. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
Decrement the number of active processes.static void
decrementThreads
(double amount) Decrement the number of active threads.static void
Increment the number of active processes.static void
Increment the number of cancelled processes.static void
Increment the number of completed processes.static void
incrementErrorCount
(double amount) Increment the number of errors.static void
Increment the number of failed processes.static void
incrementThreads
(double amount) Increment the number of active threads.static void
register()
Register the metrics with the default registry.
-
Felddetails
-
activeThreads
public static final io.prometheus.client.Gauge activeThreadsThe number of active threads or workers. -
errorCount
public static final io.prometheus.client.Counter errorCountThe number of errors during processing.
-
-
Konstruktordetails
-
DUUIProcessMetrics
public DUUIProcessMetrics()
-
-
Methodendetails
-
register
public static void register()Register the metrics with the default registry. -
incrementActiveProcesses
public static void incrementActiveProcesses()Increment the number of active processes. -
decrementActiveProcesses
public static void decrementActiveProcesses()Decrement the number of active processes. -
incrementFailedProcesses
public static void incrementFailedProcesses()Increment the number of failed processes. -
incrementCompletedProcesses
public static void incrementCompletedProcesses()Increment the number of completed processes. -
incrementCancelledProcesses
public static void incrementCancelledProcesses()Increment the number of cancelled processes. -
incrementThreads
public static void incrementThreads(double amount) Increment the number of active threads. -
decrementThreads
public static void decrementThreads(double amount) Decrement the number of active threads. -
incrementErrorCount
public static void incrementErrorCount(double amount) Increment the number of errors.
-