@RestController @RequestMapping(value="api/v1/status") public class StatusAPI extends AbstractRestResource
The url pattern:
gson, logger| Constructor and Description |
|---|
StatusAPI(LifecycleController lifeCycleController,
LogService logService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLogs(String driverId,
String test,
String run,
String levelStr,
Long from,
Long to,
int skip,
int count) |
String |
getStartupStatus() |
copyDBObject, maskValuespublic StatusAPI(LifecycleController lifeCycleController, LogService logService)
lifeCycleController - used to report on startup issueslogService - get log messages@GetMapping(path="/startup",
produces="text/plain")
public String getStartupStatus()
@GetMapping(path="/logs",
produces="application/json")
public String getLogs(@RequestParam(value="driverId",required=false)
String driverId,
@RequestParam(value="test")
String test,
@RequestParam(value="run")
String run,
@RequestParam(value="level",defaultValue="INFO")
String levelStr,
@RequestParam(value="from",defaultValue="0")
Long from,
@RequestParam(value="to",defaultValue="9223372036854775807")
Long to,
@RequestParam(value="skip",defaultValue="0")
int skip,
@RequestParam(value="count",defaultValue="50")
int count)
Copyright © 2005–2018 Alfresco Software. All rights reserved.