Search in sources :

Example 1 with EurekaVM

use of io.github.jhipster.registry.web.rest.vm.EurekaVM in project jhipster-registry by jhipster.

the class EurekaResource method eureka.

/**
 * GET  /eureka/applications : get Eureka applications information
 */
@GetMapping("/eureka/applications")
@Timed
public ResponseEntity<EurekaVM> eureka() {
    EurekaVM eurekaVM = new EurekaVM();
    eurekaVM.setApplications(getApplications());
    return new ResponseEntity<>(eurekaVM, HttpStatus.OK);
}
Also used : ResponseEntity(org.springframework.http.ResponseEntity) EurekaVM(io.github.jhipster.registry.web.rest.vm.EurekaVM) GetMapping(org.springframework.web.bind.annotation.GetMapping) Timed(com.codahale.metrics.annotation.Timed)

Example 2 with EurekaVM

use of io.github.jhipster.registry.web.rest.vm.EurekaVM in project jhipster-registry by jhipster.

the class EurekaResource method eurekaStatus.

/**
 * GET  /eureka/status : get Eureka status
 */
@GetMapping("/eureka/status")
@Timed
public ResponseEntity<EurekaVM> eurekaStatus() {
    EurekaVM eurekaVM = new EurekaVM();
    eurekaVM.setStatus(getEurekaStatus());
    return new ResponseEntity<>(eurekaVM, HttpStatus.OK);
}
Also used : ResponseEntity(org.springframework.http.ResponseEntity) EurekaVM(io.github.jhipster.registry.web.rest.vm.EurekaVM) GetMapping(org.springframework.web.bind.annotation.GetMapping) Timed(com.codahale.metrics.annotation.Timed)

Aggregations

Timed (com.codahale.metrics.annotation.Timed)2 EurekaVM (io.github.jhipster.registry.web.rest.vm.EurekaVM)2 ResponseEntity (org.springframework.http.ResponseEntity)2 GetMapping (org.springframework.web.bind.annotation.GetMapping)2