Package com.netflix.kayenta.controllers
Class CanaryConfigController
java.lang.Object
com.netflix.kayenta.controllers.CanaryConfigController
-
Constructor Summary
ConstructorsConstructorDescriptionCanaryConfigController(com.netflix.kayenta.security.AccountCredentialsRepository accountCredentialsRepository, com.netflix.kayenta.storage.StorageServiceRepository storageServiceRepository, boolean disableMetricNameValidation) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCanaryConfig(String configurationAccountName, String canaryConfigId, javax.servlet.http.HttpServletResponse response) listAllCanaryConfigs(String configurationAccountName, List<String> applications) com.netflix.kayenta.canary.CanaryConfigloadCanaryConfig(String configurationAccountName, String canaryConfigId) com.netflix.kayenta.canary.CanaryConfigUpdateResponsestoreCanaryConfig(String configurationAccountName, com.netflix.kayenta.canary.CanaryConfig canaryConfig) com.netflix.kayenta.canary.CanaryConfigUpdateResponseupdateCanaryConfig(String configurationAccountName, String canaryConfigId, com.netflix.kayenta.canary.CanaryConfig canaryConfig)
-
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
-
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
-
listAllCanaryConfigs
-