@Controller public final class MetadataController extends LogViewerFilterBasedController
EMPTY_STRING
Constructor and Description |
---|
MetadataController(MetadataProviderService metadataProviderService)
Ctr for Metadata controller
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<List<String>> |
getAllApplications()
Request list of all applications that have logs stored in the repository.
|
org.springframework.http.ResponseEntity<List<String>> |
getDistinctErrorCategories(List<String> applications)
List all categories stored in the repository, possible filtered by applications
|
org.springframework.http.ResponseEntity<List<String>> |
getDistinctErrorCategories(String workflowExecutionId,
List<String> applications)
List all categories stored in the repository filtered by a particular workflow execution
|
org.springframework.http.ResponseEntity<List<String>> |
getDistinctErrorCategories(String workflowExecutionId,
String scenarioExecutionId,
List<String> applications)
List all distinct categories for a particular scenario execution
|
org.springframework.http.ResponseEntity<List<String>> |
getDistinctErrorCategories(String workflowExecutionId,
String scenarioExecutionId,
String connectionId,
List<String> applications)
Distinct categories from a connection
|
org.springframework.http.ResponseEntity<List<String>> |
getDistinctErrorCategoriesPackage(String packageName,
List<String> applications)
Distinct categories from an uploaded package
|
org.springframework.http.ResponseEntity<List<DistinctErrorType>> |
getDistinctErrorTypes(List<String> categories,
List<String> applications)
Distinct error types from the repository
|
org.springframework.http.ResponseEntity<List<DistinctErrorType>> |
getDistinctErrorTypes(String workflowExecutionId,
List<String> categories,
List<String> applications)
Distinct error types from the repository
|
org.springframework.http.ResponseEntity<List<DistinctErrorType>> |
getDistinctErrorTypes(String workflowExecutionId,
String scenarioExecutionId,
List<String> categories,
List<String> applications)
Distinct error types from the repository
|
org.springframework.http.ResponseEntity<List<DistinctErrorType>> |
getDistinctErrorTypes(String workflowExecutionId,
String scenarioExecutionId,
String connectionId,
List<String> categories,
List<String> applications)
Distinct error types from the repository
|
org.springframework.http.ResponseEntity<List<DistinctErrorType>> |
getDistinctErrorTypesPackage(String packageName,
List<String> categories,
List<String> applications)
Distinct error types from an uploaded package
|
org.springframework.http.ResponseEntity<List<UploadedPackage>> |
listAllUploadedPackages()
Request all packages that were uploaded to this repository.
|
org.springframework.http.ResponseEntity<List<WorkflowExecutionDTO>> |
listExecutions()
Request a list of all executions stored in the repository.
|
createFilter
constraintViolation, createErrorResponse, invalidContextException, invalidPackageFile, otherErrors, packageAlreadyExists, unableToCreateDumpException, unableToDeleteTemporaryFiles, unableToPruneWorkflowExecutionException, workflowDoesNotExistException
@Autowired public MetadataController(MetadataProviderService metadataProviderService)
metadataProviderService
- Service providing metadata regarding the repository@GetMapping(value="/executions") @ResponseBody public org.springframework.http.ResponseEntity<List<WorkflowExecutionDTO>> listExecutions()
@GetMapping(value="/applications") @ResponseBody public org.springframework.http.ResponseEntity<List<String>> getAllApplications()
@GetMapping(value="/packages") @ResponseBody public org.springframework.http.ResponseEntity<List<UploadedPackage>> listAllUploadedPackages()
@GetMapping(value="/categories") public org.springframework.http.ResponseEntity<List<String>> getDistinctErrorCategories(@RequestParam(required=false,defaultValue="") List<String> applications)
applications
- requested applications, if empty all are returned@GetMapping(value="/workflow-executions/{workflowExecutionId}/categories") public org.springframework.http.ResponseEntity<List<String>> getDistinctErrorCategories(@PathVariable String workflowExecutionId, @RequestParam(required=false,defaultValue="") List<String> applications)
workflowExecutionId
- worklfow execution idapplications
- requested applications@GetMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}/categories") public org.springframework.http.ResponseEntity<List<String>> getDistinctErrorCategories(@PathVariable String workflowExecutionId, @PathVariable String scenarioExecutionId, @RequestParam(required=false,defaultValue="") List<String> applications)
workflowExecutionId
- workflow execution idscenarioExecutionId
- scenario execution idapplications
- requested applications@GetMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}/connections/{connectionId}/categories") public org.springframework.http.ResponseEntity<List<String>> getDistinctErrorCategories(@PathVariable String workflowExecutionId, @PathVariable String scenarioExecutionId, @PathVariable String connectionId, @RequestParam(required=false,defaultValue="") List<String> applications)
workflowExecutionId
- workflow execution idscenarioExecutionId
- scenario execution idconnectionId
- connection idapplications
- requested applications@GetMapping(value="packages/{packageName}/categories") public org.springframework.http.ResponseEntity<List<String>> getDistinctErrorCategoriesPackage(@PathVariable String packageName, @RequestParam(required=false,defaultValue="") List<String> applications)
packageName
- name of the uploaded packageapplications
- requested applications@GetMapping(value="/errortypes") public org.springframework.http.ResponseEntity<List<DistinctErrorType>> getDistinctErrorTypes(@RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> applications)
categories
- categories to filter byapplications
- applications to filter by@GetMapping(value="/workflow-executions/{workflowExecutionId}/errortypes") public org.springframework.http.ResponseEntity<List<DistinctErrorType>> getDistinctErrorTypes(@PathVariable String workflowExecutionId, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> applications)
workflowExecutionId
- workflow execution idcategories
- categories to filter byapplications
- applications to filter by@GetMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}/errortypes") public org.springframework.http.ResponseEntity<List<DistinctErrorType>> getDistinctErrorTypes(@PathVariable String workflowExecutionId, @PathVariable String scenarioExecutionId, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> applications)
workflowExecutionId
- workflow execution idscenarioExecutionId
- scenario execution idcategories
- categories to filter byapplications
- applications to filter by@GetMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}/connections/{connectionId}/errortypes") public org.springframework.http.ResponseEntity<List<DistinctErrorType>> getDistinctErrorTypes(@PathVariable String workflowExecutionId, @PathVariable String scenarioExecutionId, @PathVariable String connectionId, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> applications)
workflowExecutionId
- workflow execution idscenarioExecutionId
- scenario execution idconnectionId
- connection idcategories
- categories to filter byapplications
- applications to filter by@GetMapping(value="packages/{packageName}/errortypes") public org.springframework.http.ResponseEntity<List<DistinctErrorType>> getDistinctErrorTypesPackage(@PathVariable String packageName, @RequestParam(required=false,defaultValue="") List<String> categories, @RequestParam(required=false,defaultValue="") List<String> applications)
packageName
- name of the packagecategories
- categories to filter byapplications
- applications to filter byCopyright © 2020. All rights reserved.