-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
328 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
254 changes: 140 additions & 114 deletions
254
src/app/item-detail/request-stats/request-stats-compare.component.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
12 changes: 12 additions & 0 deletions
12
src/app/item-detail/request-stats/threshold-failure/threshold-failure.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div> | ||
<p *ngIf="thresholdResult?.result?.percentile?.passed === false"> | ||
<i class="fas fa-exclamation-triangle text-danger"></i> | ||
90% Percentile performance regressed about {{thresholdResult?.result?.percentile?.diffValue - 100 | number: '1.0-2'}}% in comparison with baseline report. | ||
</p> | ||
<p *ngIf="thresholdResult?.result?.throughput?.passed === false"><i class="fas fa-exclamation-triangle text-danger"></i> | ||
Throughput performance regressed about {{Math.abs(thresholdResult?.result?.throughput?.diffValue - 100) | number: '1.0-2'}}% in comparison with baseline report. | ||
</p> | ||
<p *ngIf="thresholdResult?.result?.errorRate?.passed === false"><i class="fas fa-exclamation-triangle text-danger"></i> | ||
Error Rate performance regressed about {{Math.abs(100 - thresholdResult?.result?.errorRate?.diffValue) | number: '1.0-2'}}% in comparison with baseline report. | ||
</p> | ||
</div> |
25 changes: 25 additions & 0 deletions
25
src/app/item-detail/request-stats/threshold-failure/threshold-failure.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ComponentFixture, TestBed } from "@angular/core/testing"; | ||
|
||
import { ThresholdFailureComponent } from "./threshold-failure.component"; | ||
|
||
describe("ThresholdFailureComponent", () => { | ||
let component: ThresholdFailureComponent; | ||
let fixture: ComponentFixture<ThresholdFailureComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ ThresholdFailureComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ThresholdFailureComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it("should create", () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
18 changes: 18 additions & 0 deletions
18
src/app/item-detail/request-stats/threshold-failure/threshold-failure.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Component, Input, OnInit } from "@angular/core"; | ||
import { ThresholdResult } from "../../../items.service.model"; | ||
|
||
@Component({ | ||
selector: "app-threshold-failure", | ||
templateUrl: "./threshold-failure.component.html", | ||
styleUrls: ["./threshold-failure.component.css"] | ||
}) | ||
export class ThresholdFailureComponent implements OnInit { | ||
|
||
@Input() thresholdResult: { passed: boolean, result: ThresholdResult }; | ||
|
||
ngOnInit(): void { | ||
console.log(this.thresholdResult) | ||
} | ||
|
||
protected readonly Math = Math; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/app/item-detail/thresholds-alert/thresholds-alert.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
.card-body{ | ||
padding-top: 0px; | ||
} | ||
|
||
.perf-issue { | ||
border-left: 4px solid #dc3545 !important; | ||
padding-bottom: 10px; | ||
} | ||
|
37 changes: 4 additions & 33 deletions
37
src/app/item-detail/thresholds-alert/thresholds-alert.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,9 @@ | ||
<ng-template #tipContent> | ||
<p>90 percentile decrease toleration: {{itemData.thresholds.thresholds.percentile}} % | ||
</p> | ||
<p> | ||
Througput decrease toleration: {{itemData.thresholds.thresholds.throughput}}% | ||
</p> | ||
<p> | ||
Error rate increase toleration: {{itemData.thresholds.thresholds.errorRate}}% | ||
</p> | ||
</ng-template> | ||
<div class="card perf-issue card-shadow"> | ||
<h6 class="card-header bg-transparent border-0 text-alizarin">Performance threshold failure <i | ||
class="ttp text-secondary" placement="bottom" [ngbTooltip]="tipContent"><i | ||
<h6 class="card-header bg-transparent border-0 text-alizarin"><i | ||
class="fas fa-exclamation-triangle text-danger"></i> Performance Regression Detected <i | ||
class="ttp text-secondary" placement="bottom" ngbTooltip="Performance regression was detected - please check label statistics table below."><i | ||
class="far fa-question-circle icon"></i></i></h6> | ||
<div class="card-body"> | ||
<div class="perf-issue-check" *ngIf="!itemData.thresholds.result.percentile.passed"> <i | ||
class="fas fa-exclamation-triangle text-danger"></i> 90 percentile response time | ||
<div class="perf-analaysis-desc text-secondary"><small> | ||
90 percentile response time is about {{Math.round(itemData.thresholds.result.percentile.diffValue - 100) }}% | ||
slower than in the previous reports. | ||
</small></div> | ||
</div> | ||
<div class="perf-issue-check" *ngIf="!itemData.thresholds.result.errorRate.passed"><i | ||
class="fas fa-exclamation-triangle text-danger"></i> Error rate | ||
<div class="perf-analaysis-desc text-secondary"> | ||
Error rate is about {{ | ||
Math.round(100 - itemData.thresholds.result.errorRate.diffValue) }}% higher than the average. | ||
</div> | ||
</div> | ||
<div class="perf-issue-check" *ngIf="!itemData.thresholds.result.throughput.passed"><i | ||
class="fas fa-exclamation-triangle text-danger"></i> Throughput | ||
<div class="perf-analaysis-desc text-secondary"><small> Throughput is about {{ | ||
Math.round(100 - itemData.thresholds.result.throughput.diffValue ) }}% lower than in the previous | ||
reports.</small> | ||
</div> | ||
</div> | ||
</div> | ||
<div></div> | ||
</div> |
Oops, something went wrong.