Skip to content

Commit 28bd967

Browse files
authored
slow endpoints additional parameters (#85)
1 parent ff7b7b1 commit 28bd967

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/views/codeAnalytics/InsightListView/UsageInsight.ts renamed to src/views/codeAnalytics/InsightListView/EndpointInsight.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,16 @@ export interface Duration {
122122
export interface SlowEndpointInsight extends CodeObjectInsight {
123123
route: string;
124124
endpointsMedian: Duration;
125+
endpointsMedianOfMedians: Duration;
126+
endpointsMedianOfP75: Duration;
125127
endpointsP75: Duration;
126128
min: Duration;
127129
max: Duration;
128130
mean: Duration;
129131
median: Duration;
132+
p75: Duration;
130133
p95: Duration;
134+
p99: Duration;
131135
}
132136

133137
export class HighUsageListViewItemsCreator implements IInsightListViewItemsCreator {
@@ -288,7 +292,7 @@ export class SlowEndpointListViewItemsCreator implements IInsightListViewItemsCr
288292
<div class="list-item">
289293
<div class="list-item-content-area">
290294
<div class="list-item-header" title="${tooltip}"><strong>Slow Endpoint</strong></div>
291-
<div title="${tooltip}"><span class="list-item-content-description" >On average requests are slower than other endpoints by</span> <span class="negative-value">${this.computePercentageDiff(codeObjectsInsight.median.raw, codeObjectsInsight.endpointsMedian.raw)}</span></div>
295+
<div title="${tooltip}"><span class="list-item-content-description" >On average requests are slower than other endpoints by</span> <span class="negative-value">${this.computePercentageDiff(codeObjectsInsight.median.raw, codeObjectsInsight.endpointsMedianOfMedians.raw)}</span></div>
292296
293297
</div>
294298
<div class="list-item-right-area">

src/views/codeAnalytics/codeAnalyticsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { HotspotListViewItemsCreator } from "./InsightListView/HotspotInsight";
1414
import { ErrorsListViewItemsCreator } from "./InsightListView/ErrorsInsight";
1515
import { InsightListViewItemsCreator } from "./InsightListView/IInsightListViewItemsCreator";
1616
import { SpanListViewItemsCreator } from "./InsightListView/SpanInsight";
17-
import { HighUsageListViewItemsCreator, LowUsageListViewItemsCreator, NormalUsageListViewItemsCreator, SlowEndpointListViewItemsCreator, SlowestSpansListViewItemsCreator, UsageViewItemsTemplate } from "./InsightListView/UsageInsight";
17+
import { HighUsageListViewItemsCreator, LowUsageListViewItemsCreator, NormalUsageListViewItemsCreator, SlowEndpointListViewItemsCreator, SlowestSpansListViewItemsCreator, UsageViewItemsTemplate } from "./InsightListView/EndpointInsight";
1818

1919
export class CodeAnalyticsView implements vscode.Disposable
2020
{

0 commit comments

Comments
 (0)