Skip to content

Commit

Permalink
[pinpoint-apm#10704] change the url format to rest api.
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo-jung committed May 20, 2024
1 parent 66e1252 commit f0d4063
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
* @author minwoo.jung
*/
@RestController
@RequestMapping("/inspector/getAgentStat")
public class AgentStatController {
@RequestMapping("/inspector/agentStat")
public class AgentInspectorStatController {

private final TimeWindowSampler DEFAULT_TIME_WINDOW_SAMPLER = new TimeWindowSlotCentricSampler(5000L, 200);
private final AgentStatService agentStatService;
private final ApdexStatService apdexStatService;
private final TenantProvider tenantProvider;
private final RangeValidator rangeValidator;

public AgentStatController(AgentStatService agentStatService, ApdexStatService apdexStatService, TenantProvider tenantProvider, @Qualifier("rangeValidator14d") RangeValidator rangeValidator) {
public AgentInspectorStatController(AgentStatService agentStatService, ApdexStatService apdexStatService, TenantProvider tenantProvider, @Qualifier("rangeValidator14d") RangeValidator rangeValidator) {
this.agentStatService = Objects.requireNonNull(agentStatService, "agentStatService");
this.apdexStatService = Objects.requireNonNull(apdexStatService, "apdexStatService");
this.tenantProvider = Objects.requireNonNull(tenantProvider, "tenantProvider");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
import java.util.Objects;

@RestController
@RequestMapping("/inspector/getApplicationStat")
public class ApplicationStatController {
@RequestMapping("/inspector/applicationStat")
public class ApplicationInspectorStatController {
private final TimeWindowSampler DEFAULT_TIME_WINDOW_SAMPLER_30M = new TimeWindowSlotCentricSampler(30000L, 200);
private final TenantProvider tenantProvider;
private final ApplicationStatService applicationStatService;
private final ApdexStatService apdexStatService;
private final RangeValidator rangeValidator;

public ApplicationStatController(ApplicationStatService applicationStatService, TenantProvider tenantProvider, ApdexStatService apdexStatService, @Qualifier("rangeValidator14d") RangeValidator rangeValidator) {
public ApplicationInspectorStatController(ApplicationStatService applicationStatService, TenantProvider tenantProvider, ApdexStatService apdexStatService, @Qualifier("rangeValidator14d") RangeValidator rangeValidator) {
this.applicationStatService = Objects.requireNonNull(applicationStatService, "applicationStatService");
this.apdexStatService = Objects.requireNonNull(apdexStatService, "apdexStatService");
this.tenantProvider = Objects.requireNonNull(tenantProvider, "tenantProvider");
Expand Down

0 comments on commit f0d4063

Please sign in to comment.