Class GenerateCanaryAnalysisResultTask

java.lang.Object
com.netflix.kayenta.standalonecanaryanalysis.orca.task.GenerateCanaryAnalysisResultTask
All Implemented Interfaces:
com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint, com.netflix.spinnaker.orca.api.pipeline.Task, org.pf4j.ExtensionPoint

@Component public class GenerateCanaryAnalysisResultTask extends Object implements com.netflix.spinnaker.orca.api.pipeline.Task
Task that generates the final results for the canary analysis execution.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
    Wrapper object around tuple of data needed for decision.

    Nested classes/interfaces inherited from interface com.netflix.spinnaker.orca.api.pipeline.Task

    com.netflix.spinnaker.orca.api.pipeline.Task.Aliases
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GenerateCanaryAnalysisResultTask(com.fasterxml.jackson.databind.ObjectMapper kayentaObjectMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.netflix.spinnaker.orca.api.pipeline.TaskResult
    execute(com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage)
     
    getAggregatedJudgment(Double finalCanaryScore, Double marginalThreshold, Double passThreshold)
    Generates the final didPassThresholds boolean and adds context around the decision.
    protected @NotNull List<com.netflix.spinnaker.orca.api.pipeline.models.StageExecution>
    getRunCanaryStages(com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage)
    Gets the run canary stages that contain the results

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint

    getExtensionClass, getPluginId

    Methods inherited from interface com.netflix.spinnaker.orca.api.pipeline.Task

    aliases, filterContextOutputs, onCancel, onCancelWithResult, onTimeout
  • Field Details

  • Constructor Details

    • GenerateCanaryAnalysisResultTask

      @Autowired public GenerateCanaryAnalysisResultTask(com.fasterxml.jackson.databind.ObjectMapper kayentaObjectMapper)
  • Method Details

    • execute

      @Nonnull public com.netflix.spinnaker.orca.api.pipeline.TaskResult execute(@Nonnull com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage)
      Specified by:
      execute in interface com.netflix.spinnaker.orca.api.pipeline.Task
    • getRunCanaryStages

      @NotNull protected @NotNull List<com.netflix.spinnaker.orca.api.pipeline.models.StageExecution> getRunCanaryStages(@Nonnull com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage)
      Gets the run canary stages that contain the results
    • getAggregatedJudgment

      protected GenerateCanaryAnalysisResultTask.AggregatedJudgement getAggregatedJudgment(Double finalCanaryScore, Double marginalThreshold, Double passThreshold)
      Generates the final didPassThresholds boolean and adds context around the decision.
      Parameters:
      finalCanaryScore - The final canary score of the last canary execution.
      marginalThreshold - The determined marginal threshold score.
      passThreshold - The determined pass threshold score.
      Returns: