Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat-Drink committed Dec 26, 2024
1 parent 58f937f commit d157933
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public PrometheusProxy(
this.webClient = webClientBuilder.baseUrl(prometheusHost).build();
}
/**
* Retrieve current data in real-time
* Retrieve current data
*/
public JsonNode query(String params) {
Mono<JsonNode> body = webClient
Expand Down Expand Up @@ -143,7 +143,7 @@ public JsonNode queryAgentsHealthyStatus() {
return objectMapper.createObjectNode();
}
/**
* query agents info
* query agents info interval
*/
public JsonNode queryAgentsInfo(Long id, String interval) {
ObjectMapper objectMapper = new ObjectMapper();
Expand Down Expand Up @@ -223,7 +223,7 @@ public JsonNode queryAgentsInfo(Long id, String interval) {
return objectMapper.createObjectNode();
}
/**
* query clusters info
* query clusters info interval
*/
public JsonNode queryClustersInfo(Long clusterId, String interval) {
HostQuery hostQuery = new HostQuery();
Expand Down Expand Up @@ -331,7 +331,7 @@ public JsonNode retrieveAgentCpu(String iPv4addr) {
return objectMapper.createObjectNode();
}
/**
* retrieve cpu internal
* retrieve cpu interval
*/
public JsonNode retrieveAgentCpu(String iPv4addr, String interval) {
String params = String.format("agent_host_monitoring_cpu{iPv4addr=\"%s\"}", iPv4addr);
Expand Down Expand Up @@ -403,7 +403,7 @@ public JsonNode retrieveAgentMemory(String iPv4addr) {
return objectMapper.createObjectNode();
}
/**
* retrieve memory internal
* retrieve memory interval
*/
public JsonNode retrieveAgentMemory(String iPv4addr, String interval) {
String params = String.format("agent_host_monitoring_mem{iPv4addr=\"%s\"}", iPv4addr);
Expand Down Expand Up @@ -507,7 +507,7 @@ public JsonNode retrieveAgentDiskIO(String iPv4addr) {
}

/**
* retrieve diskIO internal
* retrieve diskIO interval
*/
public JsonNode retrieveAgentDiskIO(String iPv4addr, String interval) {
String params = String.format("agent_host_monitoring_diskIO{iPv4addr=\"%s\"}", iPv4addr);
Expand Down

0 comments on commit d157933

Please sign in to comment.