Class CanaryController

java.lang.Object
com.netflix.kayenta.controllers.CanaryController

@RestController @RequestMapping("/canary") public class CanaryController extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    com.netflix.kayenta.canary.CanaryExecutionStatusResponse
    getCanaryResults(String storageAccountName, String canaryExecutionId)
     
    com.netflix.kayenta.canary.CanaryExecutionResponse
    initiateCanary(String application, String parentPipelineExecutionId, String metricsAccountName, String configurationAccountName, String storageAccountName, com.netflix.kayenta.canary.CanaryExecutionRequest canaryExecutionRequest, String canaryConfigId)
     
    com.netflix.kayenta.canary.CanaryExecutionResponse
    initiateCanaryWithConfig(String application, String parentPipelineExecutionId, String metricsAccountName, String storageAccountName, com.netflix.kayenta.canary.CanaryAdhocExecutionRequest canaryAdhocExecutionRequest)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @RequestMapping(value="/{canaryExecutionId:.+}", method=GET) public com.netflix.kayenta.canary.CanaryExecutionStatusResponse getCanaryResults(@RequestParam(required=false) String storageAccountName, @PathVariable String canaryExecutionId)