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.GaugeThe number of active threads or workers.static final io.prometheus.client.CounterThe number of errors during processing. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidDecrement the number of active processes.static voiddecrementThreads(double amount) Decrement the number of active threads.static voidIncrement the number of active processes.static voidIncrement the number of cancelled processes.static voidIncrement the number of completed processes.static voidincrementErrorCount(double amount) Increment the number of errors.static voidIncrement the number of failed processes.static voidincrementThreads(double amount) Increment the number of active threads.static voidregister()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.
-