@RestController @RequestMapping(value="/tasks/logs") public class TaskLogsController extends Object
| Constructor and Description |
|---|
TaskLogsController(TaskExecutionService taskExecutionService)
Construct Task logs controller.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<String> |
getLog(String taskExternalExecutionId,
String platformName)
Retrieve logs for the task execution identified by the provided external execution ID
|
public TaskLogsController(TaskExecutionService taskExecutionService)
taskExecutionService - the task execution service that this controller uses to get the logs of
launched task applications.@RequestMapping(value="/{taskExternalExecutionId}",
method=GET)
@ResponseStatus(value=OK)
public org.springframework.http.ResponseEntity<String> getLog(@PathVariable
String taskExternalExecutionId,
@RequestParam(required=false,defaultValue="default")
String platformName)
taskExternalExecutionId - the external execution ID returned by the platform when launching the taskplatformName - the platform nameCopyright © 2019 Pivotal Software, Inc.. All rights reserved.