Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve] update alarm inhibit rule and alarm ui #2957

Merged
merged 25 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
[webapp] update UI
Signed-off-by: tomsun28 <[email protected]>
  • Loading branch information
tomsun28 committed Jan 6, 2025
commit 9c5ebe0c4384061b1587a241073166667460e8a5
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
[nzHeader]="alertHeader"
[nzExtra]="alertExtra"
[nzActive]="false"
[style]="'border-left-color:' + (item.status == 'firing' ? '#ff4d4f' : '#52c41a')"
[nzExpandedIcon]="expandedIcon"
>
<ng-template #alertHeader>
Expand All @@ -136,6 +137,16 @@
</span>
</div>

<!-- Status -->
<div class="detail-section">
<div class="section-title">{{ 'alert.center.status' | i18n }}</div>
<div class="alert-status">
<nz-tag [nzColor]="item.status === 'firing' ? 'error' : 'success'">
{{ item.status === 'firing' ? ('alert.status.firing' | i18n) : ('alert.status.resolved' | i18n) }}
</nz-tag>
</div>
</div>

<!-- Labels -->
<div class="detail-section" *ngIf="item.labels">
<div class="section-title">{{ 'alert.center.labels' | i18n }}</div>
Expand Down