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 ClassesModifier and TypeClassDescriptionprotected classWrapper 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 -
Constructor Summary
ConstructorsConstructorDescriptionGenerateCanaryAnalysisResultTask(com.fasterxml.jackson.databind.ObjectMapper kayentaObjectMapper) -
Method Summary
Modifier and TypeMethodDescriptioncom.netflix.spinnaker.orca.api.pipeline.TaskResultexecute(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 resultsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint
getExtensionClass, getPluginIdMethods inherited from interface com.netflix.spinnaker.orca.api.pipeline.Task
aliases, filterContextOutputs, onCancel, onCancelWithResult, onTimeout
-
Field Details
-
CANARY_ANALYSIS_EXECUTION_RESULT
- See Also:
-
-
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:
executein interfacecom.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:
-