Class FlightRecorderEndpoint
- java.lang.Object
-
- de.mirkosertic.flightrecorderstarter.actuator.FlightRecorderEndpoint
-
@RestControllerEndpoint(id="flightrecorder") public class FlightRecorderEndpoint extends Object
-
-
Constructor Summary
Constructors Constructor Description FlightRecorderEndpoint(FlightRecorder flightRecorder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<?>allSessions()org.springframework.http.ResponseEntity<?>deleteRecording(long recordingId)org.springframework.http.ResponseEntity<?>downloadRecording(long recordingId)org.springframework.http.ResponseEntity<?>startRecording(StartRecordingCommand command)org.springframework.http.ResponseEntity<?>stopRecording(long recordingId)
-
-
-
Constructor Detail
-
FlightRecorderEndpoint
public FlightRecorderEndpoint(FlightRecorder flightRecorder)
-
-
Method Detail
-
allSessions
@GetMapping("/") public org.springframework.http.ResponseEntity<?> allSessions()
-
startRecording
@PostMapping("/") public org.springframework.http.ResponseEntity<?> startRecording(@RequestBody StartRecordingCommand command)
-
stopRecording
@PutMapping("/{recordingId}") public org.springframework.http.ResponseEntity<?> stopRecording(@Selector @PathVariable long recordingId)
-
deleteRecording
@DeleteMapping("/{recordingId}") public org.springframework.http.ResponseEntity<?> deleteRecording(@Selector @PathVariable long recordingId)
-
downloadRecording
@GetMapping("/{recordingId}") public org.springframework.http.ResponseEntity<?> downloadRecording(@Selector @PathVariable long recordingId)
-
-