@RestController @RequestMapping(value="/runtime/apps/{appId}/instances") @ExposesResourceFor(value=AppInstanceStatusResource.class) public class RuntimeAppInstanceController extends Object
Constructor and Description |
---|
RuntimeAppInstanceController(StreamDeployer streamDeployer)
Construct a new RuntimeAppInstanceController
|
Modifier and Type | Method and Description |
---|---|
AppInstanceStatusResource |
display(String appId,
String instanceId) |
ResponseEntity<String> |
getFromActuator(String appId,
String instanceId,
String endpoint) |
org.springframework.hateoas.PagedModel<AppInstanceStatusResource> |
list(org.springframework.data.domain.Pageable pageable,
String appId,
org.springframework.data.web.PagedResourcesAssembler<org.springframework.cloud.deployer.spi.app.AppInstanceStatus> assembler) |
ResponseEntity<Void> |
postToActuator(String appId,
String instanceId,
org.springframework.cloud.skipper.domain.ActuatorPostRequest actuatorPostRequest) |
ResponseEntity<String> |
postToUrl(String appId,
String instanceId,
String data,
HttpHeaders headers) |
public RuntimeAppInstanceController(StreamDeployer streamDeployer)
streamDeployer
- the stream deployer to use@RequestMapping public org.springframework.hateoas.PagedModel<AppInstanceStatusResource> list(org.springframework.data.domain.Pageable pageable, @PathVariable String appId, org.springframework.data.web.PagedResourcesAssembler<org.springframework.cloud.deployer.spi.app.AppInstanceStatus> assembler)
@RequestMapping(value="/{instanceId}") public AppInstanceStatusResource display(@PathVariable String appId, @PathVariable String instanceId)
@RequestMapping(value="/{instanceId}/actuator", method=GET) public ResponseEntity<String> getFromActuator(@PathVariable String appId, @PathVariable String instanceId, @RequestParam String endpoint)
@RequestMapping(value="/{instanceId}/actuator", method=POST) public ResponseEntity<Void> postToActuator(@PathVariable String appId, @PathVariable String instanceId, @RequestBody org.springframework.cloud.skipper.domain.ActuatorPostRequest actuatorPostRequest)
@RequestMapping(value="/{instanceId}/post", method=POST) public ResponseEntity<String> postToUrl(@PathVariable String appId, @PathVariable String instanceId, @RequestBody String data, @RequestHeader HttpHeaders headers)
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.