Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/.spp/plugins/failing-endpoint/plugin.kts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class FailingEndpointIndicator(project: Project) : LiveIndicator(project) {
val endTime = ZonedDateTime.now().minusMinutes(1).truncatedTo(ChronoUnit.MINUTES) //exclusive
val startTime = endTime.minusMinutes(2)
val service = statusService.getCurrentService() ?: return emptyList()
val topN = ceil(managementService.getEndpoints(service, 1000).await().size * 0.20).toInt() //top 20%
val topN = ceil(managementService.getEndpoints(service, 1000, true).await().size * 0.20).toInt() //top 20%
if (topN == 0) return emptyList()

return viewService.sortMetrics(
Expand Down
2 changes: 1 addition & 1 deletion resources/.spp/plugins/high-load-endpoint/plugin.kts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class HighLoadEndpointIndicator(project: Project) : LiveIndicator(project) {
val endTime = ZonedDateTime.now().minusMinutes(1).truncatedTo(ChronoUnit.MINUTES) //exclusive
val startTime = endTime.minusMinutes(2)
val service = statusService.getCurrentService() ?: return emptyList()
val topN = ceil(managementService.getEndpoints(service, 1000).await().size * 0.20).toInt() //top 20%
val topN = ceil(managementService.getEndpoints(service, 1000, true).await().size * 0.20).toInt() //top 20%
if (topN == 0) return emptyList()

return viewService.sortMetrics(
Expand Down
2 changes: 1 addition & 1 deletion resources/.spp/plugins/slow-endpoint/plugin.kts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class SlowEndpointIndicator(project: Project) : LiveIndicator(project) {
val endTime = ZonedDateTime.now().minusMinutes(1).truncatedTo(ChronoUnit.MINUTES) //exclusive
val startTime = endTime.minusMinutes(2)
val service = statusService.getCurrentService() ?: return emptyList()
val topN = ceil(managementService.getEndpoints(service, 1000).await().size * 0.20).toInt() //top 20%
val topN = ceil(managementService.getEndpoints(service, 1000, true).await().size * 0.20).toInt() //top 20%
if (topN == 0) return emptyList()

return viewService.sortMetrics(
Expand Down