feat: add statistics accounting to ELU fields
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index 0fbb4d4d43165737d3bd3c0c7378b2c55d7e03d2..c578ddc3f9fb24e289f5caf8fa542ec402d63834 100644 (file)
@@ -67,6 +67,12 @@ export interface WorkerChoiceStrategyOptions {
    * @defaultValue \{ median: false \}
    */
   waitTime?: MeasurementOptions
+  /**
+   * Event loop utilization options.
+   *
+   * @defaultValue \{ median: false \}
+   */
+  elu?: MeasurementOptions
   /**
    * Worker weights to use for weighted round robin worker selection strategy.
    * Weight is the tasks maximum average or median runtime in milliseconds.
@@ -111,9 +117,9 @@ export interface TaskStatisticsRequirements {
    */
   waitTime: MeasurementStatisticsRequirements
   /**
-   * Event loop utilization.
+   * Tasks event loop utilization requirements.
    */
-  elu: boolean
+  elu: MeasurementStatisticsRequirements
 }
 
 /**