Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
[DCOS-44701] adding interface for debug endpoints (#2791)
Browse files Browse the repository at this point in the history
* adding interface for debug endpoints

* newline cleanup
  • Loading branch information
kvish authored Nov 28, 2018
1 parent 2a0f4d2 commit 6c63331
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sdk/debug/DebugEndpoint.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.mesosphere.sdk.debug;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;
/**
* Interface for all debug endpoints.
*/
public interface DebugEndpoint {
/**
* Called to retun JSON response of requested endpoint.
* @param plan (optional) Plan to drill down on.
* @param phase (optional) Phase to drill down on.
* @param step (optional) Step to drill down on.
* @param sync (optional) Poll backend State-Stores.
* @return JSON response of the requested debug endpoint.
*/
public Response getJson(
@QueryParam("plan") String plan,
@QueryParam("phase") String phase,
@QueryParam("step") String step,
@QueryParam("sync") boolean sync);
}

0 comments on commit 6c63331

Please sign in to comment.