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 java.lang.Object implements com.netflix.spinnaker.orca.api.pipeline.TaskTask that generates the final results for the canary analysis execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classGenerateCanaryAnalysisResultTask.AggregatedJudgementWrapper object around tuple of data needed for decision.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCANARY_ANALYSIS_EXECUTION_RESULT
-
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.TaskResultexecute(com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage)protected GenerateCanaryAnalysisResultTask.AggregatedJudgementgetAggregatedJudgment(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
-
-
-
-
Field Detail
-
CANARY_ANALYSIS_EXECUTION_RESULT
public static final java.lang.String CANARY_ANALYSIS_EXECUTION_RESULT
- See Also:
- Constant Field Values
-
-
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:
executein interfacecom.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:
-
-