@Controller @Validated public class ContextController extends LogViewerBaseController
Constructor and Description |
---|
ContextController(LogContextService logContextService)
Ctr for the log context controller
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<List<? extends Log>> |
getContext(@NotNull(message="Log id must be null.") Long logId)
Request to build context view for a given error log.
|
org.springframework.http.ResponseEntity<List<? extends Log>> |
loadEarlierContext(@NotNull(message="Log id must be null.") Long logId,
@Min(value=0L,message="Offset cannot be negative!") long offset,
@Min(value=0L,message="Amount cannot be negative!") long amount)
Request to load more logs into the log context that happened before the error log.
|
org.springframework.http.ResponseEntity<List<? extends Log>> |
loadLaterContext(@NotNull(message="Log id must be null.") Long logId,
@Min(value=0L,message="Offset cannot be negative!") long offset,
@Min(value=0L,message="Amount cannot be negative!") long amount)
Request to load more logs into the log context that happened after the error log.
|
constraintViolation, createErrorResponse, invalidContextException, invalidPackageFile, otherErrors, packageAlreadyExists, unableToCreateDumpException, unableToDeleteTemporaryFiles, unableToPruneWorkflowExecutionException, workflowDoesNotExistException
@Autowired public ContextController(LogContextService logContextService)
logContextService
- Provider of the log context@GetMapping(value="/logs/{logId}") @ResponseBody public org.springframework.http.ResponseEntity<List<? extends Log>> getContext(@PathVariable @NotNull(message="Log id must be null.") @NotNull(message="Log id must be null.") Long logId)
logId
- ID of the log@GetMapping(value="/logs/{logId}/before") @ResponseBody public org.springframework.http.ResponseEntity<List<? extends Log>> loadEarlierContext(@PathVariable @NotNull(message="Log id must be null.") @NotNull(message="Log id must be null.") Long logId, @RequestParam(value="offset") @Min(value=0L,message="Offset cannot be negative!") @Min(value=0L,message="Offset cannot be negative!") long offset, @RequestParam(value="amount",required=false,defaultValue="5") @Min(value=0L,message="Amount cannot be negative!") @Min(value=0L,message="Amount cannot be negative!") long amount)
logId
- ID of the logoffset
- the amount of logs already loaded in this directionamount
- amount of logs that should be loaded@GetMapping(value="/logs/{logId}/after") @ResponseBody public org.springframework.http.ResponseEntity<List<? extends Log>> loadLaterContext(@PathVariable @NotNull(message="Log id must be null.") @NotNull(message="Log id must be null.") Long logId, @RequestParam(value="offset") @Min(value=0L,message="Offset cannot be negative!") @Min(value=0L,message="Offset cannot be negative!") long offset, @RequestParam(value="amount",required=false,defaultValue="5") @Min(value=0L,message="Amount cannot be negative!") @Min(value=0L,message="Amount cannot be negative!") long amount)
logId
- ID of the logoffset
- the amount of logs already loaded in this directionamount
- amount of logs that should be loadedCopyright © 2020. All rights reserved.