Class ChaosMonkeyRestEndpoint
- java.lang.Object
-
- de.codecentric.spring.boot.chaos.monkey.endpoints.ChaosMonkeyRestEndpoint
-
@RestControllerEndpoint(enableByDefault=false, id="chaosmonkey") public class ChaosMonkeyRestEndpoint extends Object
-
-
Constructor Summary
Constructors Constructor Description ChaosMonkeyRestEndpoint(ChaosMonkeySettings chaosMonkeySettings, ChaosMonkeyRuntimeScope runtimeScope, ChaosMonkeyScheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>attack()org.springframework.http.ResponseEntity<ChaosMonkeyDisabledDto>disableChaosMonkey()org.springframework.http.ResponseEntity<ChaosMonkeyEnabledDto>enableChaosMonkey()AssaultPropertiesUpdategetAssaultSettings()org.springframework.http.ResponseEntity<String>getStatus()WatcherPropertiesgetWatcherSettings()ChaosMonkeySettingsDtostatus()org.springframework.http.ResponseEntity<String>updateAssaultProperties(AssaultPropertiesUpdate assaultProperties)org.springframework.http.ResponseEntity<String>updateWatcherProperties(WatcherPropertiesUpdate watcherProperties)
-
-
-
Constructor Detail
-
ChaosMonkeyRestEndpoint
public ChaosMonkeyRestEndpoint(ChaosMonkeySettings chaosMonkeySettings, ChaosMonkeyRuntimeScope runtimeScope, ChaosMonkeyScheduler scheduler)
-
-
Method Detail
-
updateAssaultProperties
@PostMapping("/assaults") public org.springframework.http.ResponseEntity<String> updateAssaultProperties(@RequestBody @Validated AssaultPropertiesUpdate assaultProperties)
-
attack
@PostMapping("/assaults/runtime/attack") public org.springframework.http.ResponseEntity<String> attack()
-
getAssaultSettings
@GetMapping("/assaults") public AssaultPropertiesUpdate getAssaultSettings()
-
enableChaosMonkey
@PostMapping("/enable") public org.springframework.http.ResponseEntity<ChaosMonkeyEnabledDto> enableChaosMonkey()
-
disableChaosMonkey
@PostMapping("/disable") public org.springframework.http.ResponseEntity<ChaosMonkeyDisabledDto> disableChaosMonkey()
-
status
@GetMapping public ChaosMonkeySettingsDto status()
-
getStatus
@GetMapping("/status") public org.springframework.http.ResponseEntity<String> getStatus()
-
updateWatcherProperties
@PostMapping("/watchers") public org.springframework.http.ResponseEntity<String> updateWatcherProperties(@RequestBody @Validated WatcherPropertiesUpdate watcherProperties)
-
getWatcherSettings
@GetMapping("/watchers") public WatcherProperties getWatcherSettings()
-
-