Skip to content

Commit

Permalink
refactor(home): add histogramLogCount
Browse files Browse the repository at this point in the history
  • Loading branch information
霄鸿 committed Oct 25, 2023
1 parent 49be76c commit ded3242
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public static void setMonitorParams(MonitorParams mp) {
gs.get().mp = mp;
}

public static void setMonitorScope(MonitorScope ms) {
gs.get().ms = ms;
}

public static class Context {
public MonitorScope ms;
public MonitorUser mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
Expand Down Expand Up @@ -39,4 +41,5 @@ public class LogCountResponse {
* query context
*/
private Map<String, String> params;
private List<LogHistogramCount> logHistogramCounts = new ArrayList<>();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2022 Holoinsight Project Authors. Licensed under Apache-2.0.
*/

package io.holoinsight.server.home.biz.service.log;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
* @author jsy1001de
* @version 1.0: HistogramLogCount.java, Date: 2023-10-25 Time: 10:55
*/
@Data
@AllArgsConstructor
public class LogHistogramCount {
private Long fromTime;
private Long toTime;
private Long count;
}

0 comments on commit ded3242

Please sign in to comment.