Skip to content

Commit

Permalink
[pinpoint-apm#9317] Change api url
Browse files Browse the repository at this point in the history
  • Loading branch information
intr3p1d committed Nov 14, 2022
1 parent ee1a0ec commit df74cec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public AgentListController(AgentInfoService agentInfoService) {
this.agentInfoService = Objects.requireNonNull(agentInfoService, "agentInfoService");
}

@GetMapping()
@GetMapping(value = "/search-all")
public TreeView<InstancesList<AgentAndStatus>> getAllAgentsList() {
long timestamp = System.currentTimeMillis();
AgentsMapByApplication allAgentsList = this.agentInfoService.getAllAgentsList(AgentInfoFilter::accept, timestamp);
return treeView(allAgentsList);
}

@GetMapping(params = {"from", "to"})
@GetMapping(value = "/search-all", params = {"from", "to"})
public TreeView<InstancesList<AgentAndStatus>> getAllAgentsList(
@RequestParam("from") long from,
@RequestParam("to") long to) {
Expand All @@ -55,7 +55,7 @@ private static TreeView<InstancesList<AgentAndStatus>> treeView(AgentsMapByAppli
}


@GetMapping(params = {"application", "sortBy"})
@GetMapping(value = "/search-application", params = {"application", "sortBy"})
public TreeView<InstancesList<AgentStatusAndLink>> getAgentsList(
@RequestParam("application") String applicationName,
@RequestParam("sortBy") SortByAgentInfo.Rules sortBy) {
Expand All @@ -67,7 +67,7 @@ public TreeView<InstancesList<AgentStatusAndLink>> getAgentsList(
return treeView(list);
}

@GetMapping(params = {"application", "from", "to", "sortBy"})
@GetMapping(value = "/search-application", params = {"application", "from", "to", "sortBy"})
public TreeView<InstancesList<AgentStatusAndLink>> getAgentsList(
@RequestParam("application") String applicationName,
@RequestParam("from") long from,
Expand Down

0 comments on commit df74cec

Please sign in to comment.