Package com.netflix.kayenta.controllers
Class CanaryController
java.lang.Object
com.netflix.kayenta.controllers.CanaryController
-
Constructor Summary
ConstructorsConstructorDescriptionCanaryController(com.netflix.spinnaker.orca.pipeline.persistence.ExecutionRepository executionRepository, com.netflix.kayenta.security.AccountCredentialsRepository accountCredentialsRepository, com.netflix.kayenta.storage.StorageServiceRepository storageServiceRepository, com.netflix.kayenta.canary.ExecutionMapper executionMapper) -
Method Summary
Modifier and TypeMethodDescriptioncom.netflix.kayenta.canary.CanaryExecutionStatusResponsegetCanaryResults(String storageAccountName, String canaryExecutionId) com.netflix.kayenta.canary.CanaryExecutionResponseinitiateCanary(String application, String parentPipelineExecutionId, String metricsAccountName, String configurationAccountName, String storageAccountName, com.netflix.kayenta.canary.CanaryExecutionRequest canaryExecutionRequest, String canaryConfigId) com.netflix.kayenta.canary.CanaryExecutionResponseinitiateCanaryWithConfig(String application, String parentPipelineExecutionId, String metricsAccountName, String storageAccountName, com.netflix.kayenta.canary.CanaryAdhocExecutionRequest canaryAdhocExecutionRequest)
-
Constructor Details
-
CanaryController
@Autowired public CanaryController(com.netflix.spinnaker.orca.pipeline.persistence.ExecutionRepository executionRepository, com.netflix.kayenta.security.AccountCredentialsRepository accountCredentialsRepository, com.netflix.kayenta.storage.StorageServiceRepository storageServiceRepository, com.netflix.kayenta.canary.ExecutionMapper executionMapper)
-
-
Method Details
-
initiateCanary
@RequestMapping(value="/{canaryConfigId:.+}", consumes="application/json", method=POST) public com.netflix.kayenta.canary.CanaryExecutionResponse initiateCanary(@RequestParam(required=false) String application, @RequestParam(required=false) String parentPipelineExecutionId, @RequestParam(required=false) String metricsAccountName, @RequestParam(required=false) String configurationAccountName, @RequestParam(required=false) String storageAccountName, @RequestBody com.netflix.kayenta.canary.CanaryExecutionRequest canaryExecutionRequest, @PathVariable String canaryConfigId) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
initiateCanaryWithConfig
@RequestMapping(consumes="application/json", method=POST) public com.netflix.kayenta.canary.CanaryExecutionResponse initiateCanaryWithConfig(@RequestParam(required=false) String application, @RequestParam(required=false) String parentPipelineExecutionId, @RequestParam(required=false) String metricsAccountName, @RequestParam(required=false) String storageAccountName, @RequestBody com.netflix.kayenta.canary.CanaryAdhocExecutionRequest canaryAdhocExecutionRequest) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getCanaryResults
-