Skip to content

Commit

Permalink
sut statistics (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Apr 7, 2021
1 parent eabe6d1 commit 6bdd5f5
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 3 deletions.
62 changes: 60 additions & 2 deletions src/app/item-detail/item-detail.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ <h2 class="card-title text-alizarin">{{itemData.overview.errorRate}} <span



<div class="row">
<div class="row middle-control">
<div class="col">
<ul ngbNav #nav="ngbNav" class="nav-tabs justify-content-center" [destroyOnHide]="false">
<li ngbNavItem>
Expand Down Expand Up @@ -288,10 +288,68 @@ <h6 class="card-header bg-transparent">Overall Chart</h6>
</div>
</div>

<div class="row" *ngIf="itemData.sutOverview">
<div class="col">
<div class="card table-stats">
<h6 class="card-header bg-transparent">SUT Statistics <span class="compare">
</span></h6>
<div class="card-body card-body-request-stats">
<div class="labels-detail table-responsive">
<table class="table" [mfData]="itemData.sutOverview" #mf="mfDataTable">
<thead>
<tr>
<th scope="col" class="hd">
<mfDefaultSorter by="sutHostname">SUT</mfDefaultSorter>
</th>
<th scope="col" class="hd">
<mfDefaultSorter by="avgResponseTime">avg [ms]</mfDefaultSorter>
</th>

<th scope="col" class="hd">
<mfDefaultSorter by="percentile">P90 [ms]</mfDefaultSorter>
</th>
<th scope="col" class="hd">
<mfDefaultSorter by="throughput">requests/s</mfDefaultSorter>
</th>
<th scope="col" class="hd">
<mfDefaultSorter by="bytesPerSecond">mbps</mfDefaultSorter>
</th>
<th scope="col" class="hd">
<mfDefaultSorter by="errorRate">error rate</mfDefaultSorter>
</th>
<th scope="col" class="hd">
</th>
<th scope="col" class="hd">
</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let _ of mf.data">
<td>{{_.sutHostname || "other"}}
<i *ngIf="!_.sutHostname" placement="bottom"
ngbTooltip="All samples for which we could not parse the hostname."><i
class="far fa-question-circle icon"></i></i>
</td>
<td>{{_.avgResponseTime}}</td>
<td>{{_.percentile}}</td>
<td>{{_.throughput || "n/a"}} </td>
<td>{{convertBytesToMbps(_.bytesPerSecond) || "n/a"}}</td>
<td>{{_.errorRate}} % </td>
<td></td>
<td>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

<div class="row">
<div class="col">
<div class="card request-stats">
<div class="card table-stats request-stats">

<h6 class="card-header bg-transparent">Request Statistics <span class="compare">

Expand Down
6 changes: 5 additions & 1 deletion src/app/item-detail/item-detail.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,14 @@ thead {
.request-stats {
margin-bottom: 20px;
}
.request-stats .card-header {
.table-stats .card-header {
border-bottom: none;
}

.middle-control {
margin-bottom: -20px;
}

.errors-list {
padding-top: 0px;
}
Expand Down

0 comments on commit 6bdd5f5

Please sign in to comment.