Interface Icinga2


public interface Icinga2
Interface to the Icinga2 API for status monitoring.
  • 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 with
      result - The result of a status check to update with.
      Returns:
      The response from the server as a String.
    • createClient

      static Icinga2 createClient​(String url)
      Get a client for the API.
      Parameters:
      url - The URL to connect to.
      Returns:
      A proxy of the API.