Package io.kestra.executor
Class SLAService
java.lang.Object
io.kestra.executor.SLAService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<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.
-
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.
-