Skip to content

Commit

Permalink
evols stats
Browse files Browse the repository at this point in the history
  • Loading branch information
fufuu committed Oct 7, 2024
1 parent 8ddbc17 commit fa40769
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public enum TraceApiColumn implements ColumnDecorator {

COUNT_ERROR_CLIENT("countClientErrorRows", FilterConstant::countClientErrorStatus),
COUNT_ERROR_SERVER("countServerErrorRows", FilterConstant::countServerErrorStatus),
COUNT_UNAVAILABLE_SERVER("countServerUnavailableRows", FilterConstant::countServerUnavailableStatus),
COUNT_SUCCES("countSuccesRows", FilterConstant::countSuccesStatus),
COUNT_200("count200", FilterConstant::countStatus200), //set type improve perf
COUNT_400("count400", FilterConstant::countStatus400),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public static OperationColumn countServerErrorStatus(ViewDecorator table) {
return countStatusByType(table, ge(500));
}

public static OperationColumn countServerUnavailableStatus(ViewDecorator table) {
return countStatusByType(table, eq(0));
}

public static OperationColumn countSuccesStatus(ViewDecorator table) {
return countStatusByType(table, ge(200).and(lt(300)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public class JoinConstant {
public static final String SMTP_REQUEST_JOIN = "smtp_request";
public static final String LDAP_REQUEST_JOIN = "ldap_request";

// public static final String

public static JoinBuilder mainSessionJoins(String name) {
return switch (name) {
case INSTANCE_JOIN ->
() -> new ViewJoin[]{innerJoin(INSTANCE.view(), MAIN_SESSION.column(INSTANCE_ENV).eq(INSTANCE.column(ID)))};
case REST_REQUEST_JOIN ->
() -> new ViewJoin[]{innerJoin(REST_REQUEST.view(), MAIN_SESSION.column(ID).eq(REST_REQUEST.column(PARENT)))};
default -> null;
};
}
Expand Down

0 comments on commit fa40769

Please sign in to comment.