Class 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 java.lang.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  GenerateCanaryAnalysisResultTask.AggregatedJudgement
      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
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.netflix.spinnaker.orca.api.pipeline.TaskResult execute​(com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage)  
      protected GenerateCanaryAnalysisResultTask.AggregatedJudgement getAggregatedJudgment​(java.lang.Double finalCanaryScore, java.lang.Double marginalThreshold, java.lang.Double passThreshold)
      Generates the final didPassThresholds boolean and adds context around the decision.
      protected @NotNull java.util.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, onCancel, onCancelWithResult, onTimeout
    • Field Detail

      • CANARY_ANALYSIS_EXECUTION_RESULT

        public static final java.lang.String CANARY_ANALYSIS_EXECUTION_RESULT
        See Also:
        Constant Field Values
    • Constructor Detail

      • GenerateCanaryAnalysisResultTask

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

      • 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 java.util.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​(java.lang.Double finalCanaryScore,
                                                                                             java.lang.Double marginalThreshold,
                                                                                             java.lang.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: