Class CanaryConfigController

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

@RestController @RequestMapping("/canaryConfig") public class CanaryConfigController extends Object
  • Constructor Details

    • CanaryConfigController

      @Autowired public CanaryConfigController(com.netflix.kayenta.security.AccountCredentialsRepository accountCredentialsRepository, com.netflix.kayenta.storage.StorageServiceRepository storageServiceRepository, @Value("${kayenta.disable.metricname.validation:false}") boolean disableMetricNameValidation)
  • Method Details

    • loadCanaryConfig

      @RequestMapping(value="/{canaryConfigId:.+}", method=GET) public com.netflix.kayenta.canary.CanaryConfig loadCanaryConfig(@RequestParam(required=false) String configurationAccountName, @PathVariable String canaryConfigId)
    • storeCanaryConfig

      @RequestMapping(consumes="application/json", method=POST) public com.netflix.kayenta.canary.CanaryConfigUpdateResponse storeCanaryConfig(@RequestParam(required=false) String configurationAccountName, @RequestBody com.netflix.kayenta.canary.CanaryConfig canaryConfig) throws IOException
      Throws:
      IOException
    • updateCanaryConfig

      @RequestMapping(value="/{canaryConfigId:.+}", consumes="application/json", method=PUT) public com.netflix.kayenta.canary.CanaryConfigUpdateResponse updateCanaryConfig(@RequestParam(required=false) String configurationAccountName, @PathVariable String canaryConfigId, @RequestBody com.netflix.kayenta.canary.CanaryConfig canaryConfig) throws IOException
      Throws:
      IOException
    • deleteCanaryConfig

      @RequestMapping(value="/{canaryConfigId:.+}", method=DELETE) public void deleteCanaryConfig(@RequestParam(required=false) String configurationAccountName, @PathVariable String canaryConfigId, javax.servlet.http.HttpServletResponse response)
    • listAllCanaryConfigs

      @RequestMapping(method=GET) public List<Map<String,Object>> listAllCanaryConfigs(@RequestParam(required=false) String configurationAccountName, @RequestParam(required=false,value="application") List<String> applications)