Skip to content

Commit

Permalink
Api log analysis avg function exclude zero value
Browse files Browse the repository at this point in the history
  • Loading branch information
tangllty committed Dec 2, 2024
1 parent f5893c5 commit 6935ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Bug Fixes

* Fix `Excel` import result can only be obtained in order
* Api log analysis avg function exclude zero value

### Dependencies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
select sla.class_name, sla.method_name, sla.request_uri, sla.request_type,
count(1) as `count`,
sum(sla.cost_time) as total_time,
avg(sla.cost_time) as average_time,
avg(case when sla.cost_time != 0 then sla.cost_time end) as average_time,
min(sla.cost_time) as min_time,
max(sla.cost_time) as max_time
from sys_log_api sla
Expand Down

0 comments on commit 6935ae0

Please sign in to comment.