@Controller @Validated public class LogQueryController extends LogViewerFilterBasedController
EMPTY_STRING
Constructor and Description |
---|
LogQueryController(LogQueryService logQueryService)
Ctr for the log query controller
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<List<ErrorDTO>> |
queryLogs(List<String> categories,
List<String> errorTypes,
List<String> applications,
@Min(value=0L,message="Offset cannot be negative!") Long offset)
Query error logs based on given parameters.
|
org.springframework.http.ResponseEntity<List<ErrorDTO>> |
queryLogs(String workflowExecutionId,
List<String> categories,
List<String> errorTypes,
List<String> applications,
@Min(value=0L,message="Offset cannot be negative!") Long offset)
Query error logs from workflow execution based on given parameters.
|
org.springframework.http.ResponseEntity<List<ErrorDTO>> |
queryLogs(String workflowExecutionId,
String scenarioExecutionId,
List<String> categories,
List<String> errorTypes,
List<String> applications,
@Min(value=0L,message="Offset cannot be negative!") Long offset)
Query error logs from scenario execution based on given parameters.
|
org.springframework.http.ResponseEntity<List<ErrorDTO>> |
queryLogs(String workflowExecutionId,
String scenarioExecutionId,
String connectionId,
List<String> categories,
List<String> errorTypes,
List<String> applications,
@Min(value=0L,message="Offset cannot be negative!") Long offset)
Query error logs from connection based on given parameters.
|
org.springframework.http.ResponseEntity<List<ErrorDTO>> |
queryPackageLogs(String packageName,
List<String> categories,
List<String> errorTypes,
List<String> applications,
@Min(value=0L,message="Offset cannot be negative!") Long offset)
Query error logs from a package based on given parameters.
|
createFilter
constraintViolation, createErrorResponse, invalidContextException, invalidPackageFile, otherErrors, packageAlreadyExists, unableToCreateDumpException, unableToDeleteTemporaryFiles, unableToPruneWorkflowExecutionException, workflowDoesNotExistException
@Autowired public LogQueryController(LogQueryService logQueryService)
logQueryService
- Service providing error metadata based on given parameters@GetMapping(value="/") @ResponseBody public org.springframework.http.ResponseEntity<List<ErrorDTO>> queryLogs(@RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> errorTypes, @RequestParam(required=false,defaultValue="") List<String> applications, @RequestParam @Min(value=0L,message="Offset cannot be negative!") @Min(value=0L,message="Offset cannot be negative!") Long offset)
categories
- which categories the user wants to seeerrorTypes
- which error types the user wants to seeapplications
- from which application the user wants to see logsoffset
- how many logs were already loaded@GetMapping(value="/workflow-executions/{workflowExecutionId}") @ResponseBody public org.springframework.http.ResponseEntity<List<ErrorDTO>> queryLogs(@PathVariable String workflowExecutionId, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> errorTypes, @RequestParam(required=false,defaultValue="") List<String> applications, @RequestParam @Min(value=0L,message="Offset cannot be negative!") @Min(value=0L,message="Offset cannot be negative!") Long offset)
workflowExecutionId
- ID of the workflow executioncategories
- which categories the user wants to seeerrorTypes
- which error types the user wants to seeapplications
- from which application the user wants to see logsoffset
- how many logs were already loaded@GetMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}") @ResponseBody public org.springframework.http.ResponseEntity<List<ErrorDTO>> queryLogs(@PathVariable String workflowExecutionId, @PathVariable String scenarioExecutionId, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> errorTypes, @RequestParam(required=false,defaultValue="") List<String> applications, @RequestParam @Min(value=0L,message="Offset cannot be negative!") @Min(value=0L,message="Offset cannot be negative!") Long offset)
workflowExecutionId
- ID of the workflow executionscenarioExecutionId
- ID of the scenario executioncategories
- which categories the user wants to seeerrorTypes
- which error types the user wants to seeapplications
- from which application the user wants to see logsoffset
- how many logs were already loaded@GetMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}/connections/{connectionId}") @ResponseBody public org.springframework.http.ResponseEntity<List<ErrorDTO>> queryLogs(@PathVariable String workflowExecutionId, @PathVariable String scenarioExecutionId, @PathVariable String connectionId, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> errorTypes, @RequestParam(required=false,defaultValue="") List<String> applications, @RequestParam @Min(value=0L,message="Offset cannot be negative!") @Min(value=0L,message="Offset cannot be negative!") Long offset)
workflowExecutionId
- ID of the workflow executionscenarioExecutionId
- ID of the scenario executionconnectionId
- name of the connectioncategories
- which categories the user wants to seeerrorTypes
- which error types the user wants to seeapplications
- from which application the user wants to see logsoffset
- how many logs were already loaded@GetMapping(value="/packages/{packageName}") @ResponseBody public org.springframework.http.ResponseEntity<List<ErrorDTO>> queryPackageLogs(@PathVariable String packageName, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> errorTypes, @RequestParam(required=false,defaultValue="") List<String> applications, @RequestParam @Min(value=0L,message="Offset cannot be negative!") @Min(value=0L,message="Offset cannot be negative!") Long offset)
packageName
- name of the uploaded packagecategories
- which categories the user wants to seeerrorTypes
- which error types the user wants to seeapplications
- from which application the user wants to see logsoffset
- how many logs were already loadedCopyright © 2020. All rights reserved.