Class SLAService

java.lang.Object
io.kestra.executor.SLAService

@Singleton public class SLAService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<io.kestra.core.models.flows.sla.Violation>
    evaluateExecutionChangedSLA(io.kestra.core.runners.RunContext runContext, io.kestra.core.models.flows.Flow flow, io.kestra.core.models.executions.Execution execution)
    Evaluate execution changed SLA of a flow for an execution.
    Optional<io.kestra.core.models.flows.sla.Violation>
    evaluateExecutionMonitoringSLA(io.kestra.core.runners.RunContext runContext, io.kestra.core.models.executions.Execution execution, io.kestra.core.models.flows.sla.SLA sla)
    Evaluate a single SLA for an execution.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SLAService

      public SLAService()
  • Method Details

    • evaluateExecutionChangedSLA

      public List<io.kestra.core.models.flows.sla.Violation> evaluateExecutionChangedSLA(io.kestra.core.runners.RunContext runContext, io.kestra.core.models.flows.Flow flow, io.kestra.core.models.executions.Execution execution)
      Evaluate execution changed SLA of a flow for an execution. Each violated SLA will be logged.
    • evaluateExecutionMonitoringSLA

      public Optional<io.kestra.core.models.flows.sla.Violation> evaluateExecutionMonitoringSLA(io.kestra.core.runners.RunContext runContext, io.kestra.core.models.executions.Execution execution, io.kestra.core.models.flows.sla.SLA sla)
      Evaluate a single SLA for an execution. Each violated SLA will be logged.