Skip to content

Commit

Permalink
Merge pull request #443 from wavefrontHQ/monit-15724
Browse files Browse the repository at this point in the history
MONIT-15724: Correct proxy endpoint for V5
  • Loading branch information
jbau authored Aug 29, 2019
2 parents 8e154d7 + cb03c55 commit 72c84dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions java-lib/src/main/java/com/wavefront/api/ProxyV2API.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author vasily@wavefront.com
*/
@Path("/v2/")
@Path("/")
public interface ProxyV2API {

/**
Expand All @@ -36,7 +36,7 @@ public interface ProxyV2API {
* @return Proxy configuration.
*/
@POST
@Path("proxy/checkin")
@Path("v2/wfproxy/checkin")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
AgentConfiguration proxyCheckin(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId,
Expand All @@ -56,7 +56,7 @@ AgentConfiguration proxyCheckin(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId
*/
@POST
@Consumes(MediaType.TEXT_PLAIN)
@Path("proxy/report")
@Path("v2/wfproxy/report")
Response proxyReport(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId,
@QueryParam("format") final String format,
final String pushData);
Expand All @@ -67,7 +67,7 @@ Response proxyReport(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId,
* @param proxyId ID of the proxy.
*/
@POST
@Path("proxy/config/processed")
@Path("v2/wfproxy/config/processed")
void proxyConfigProcessed(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId);

/**
Expand All @@ -77,7 +77,7 @@ Response proxyReport(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId,
* @param details Details of the error.
*/
@POST
@Path("proxy/error")
@Path("v2/wfproxy/error")
void proxyError(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId,
@FormParam("details") String details);
}

0 comments on commit 72c84dd

Please sign in to comment.