blob: e37e758a02b3e61fda7b4edcf04c99006c694bda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package org.openecomp.policy.drools.healthcheck;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.openecomp.policy.drools.healthcheck.HealthCheck.Reports;
@Path("/")
public class RestHealthCheck {
@GET
@Path("{a:healthcheck|test}")
@Produces(MediaType.APPLICATION_JSON)
public Reports healthcheck() {
Reports reports = HealthCheck.monitor.healthCheck();
return reports;
}
@GET
@Path("healthcheck/configuration")
@Produces(MediaType.APPLICATION_JSON)
public HealthCheck configuration() {
return HealthCheck.monitor;
}
}
|