Interface Icinga2
public interface Icinga2
Interface to the Icinga2 API for status monitoring.
-
Method Summary
Modifier and Type Method Description static Icinga2
createClient(String url)
Get a client for the API.Map<String,Object>
processCheckResult(String authHeader, Icinga2CheckResult result)
Update the status of a service or host.
-
Method Details
-
processCheckResult
@Produces("application/json") @Consumes("application/json") @POST @Path("/v1/actions/process-check-result") Map<String,Object> processCheckResult(@HeaderParam("Authorization") String authHeader, Icinga2CheckResult result)Update the status of a service or host.- Parameters:
authHeader
- The authorization header value to authenticate withresult
- The result of a status check to update with.- Returns:
- The response from the server as a String.
-
createClient
Get a client for the API.- Parameters:
url
- The URL to connect to.- Returns:
- A proxy of the API.
-