mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-25 07:32:19 +00:00
added icon to show inhibited status
Signed-off-by: James Ritchie <james.g.ritchie@baesystems.com>
This commit is contained in:
parent
c63d4b7584
commit
a6bdc73fa4
File diff suppressed because one or more lines are too long
@ -47,6 +47,7 @@ view labels maybeActiveId alert =
|
||||
Nothing ->
|
||||
text ""
|
||||
, silenceButton alert
|
||||
, inhibitedIcon alert
|
||||
]
|
||||
, if maybeActiveId == Just alert.fingerprint then
|
||||
table [ class "table w-100 mb-1" ] (List.map annotation <| Dict.toList alert.annotations)
|
||||
@ -117,3 +118,18 @@ silenceButton alert =
|
||||
[ i [ class "fa fa-bell-slash-o mr-2" ] []
|
||||
, text "Silence"
|
||||
]
|
||||
|
||||
|
||||
inhibitedIcon : GettableAlert -> Html Msg
|
||||
inhibitedIcon alert =
|
||||
case List.head alert.status.inhibitedBy of
|
||||
Just sId ->
|
||||
a
|
||||
[ class "btn btn-outline-info border-0 text-info"
|
||||
]
|
||||
[ i [ class "fa fa-eye-slash mr-2" ] []
|
||||
, text "Inhibited"
|
||||
]
|
||||
|
||||
Nothing ->
|
||||
text ""
|
||||
|
Loading…
Reference in New Issue
Block a user