2021-01-15 11:45:49 -05:00
|
|
|
{{define "theme-default/service"}}
|
|
|
|
{{template "common/header" .}}
|
|
|
|
{{template "common/menu" .}}
|
|
|
|
<div class="nb-container">
|
|
|
|
<div class="ui container">
|
|
|
|
<div class="ui segment service-status">
|
|
|
|
{{range $service := .Services}}
|
|
|
|
<div class="ui grid">
|
|
|
|
<div class="three wide column">
|
|
|
|
<p>{{$service.Monitor.Name}}</p>
|
2021-01-16 01:11:51 -05:00
|
|
|
<p>30天在线率{{float32f (divU64 $service.TotalUp (addU64 $service.TotalUp $service.TotalDown))}}%</p>
|
2021-01-15 11:45:49 -05:00
|
|
|
</div>
|
|
|
|
<div class="eleven wide column">
|
|
|
|
{{range $i,$d := $service.Delay}}
|
2021-01-15 22:23:42 -05:00
|
|
|
<div class="ui icon button {{className (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}"
|
|
|
|
data-tooltip="{{dayBefore $i}},平均延迟:{{$d}}ms">
|
2021-01-15 11:45:49 -05:00
|
|
|
<i class="delay"></i>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-01-15 22:23:42 -05:00
|
|
|
<div
|
|
|
|
class="two wide column round {{className (div (index $service.Up 29) (add (index $service.Up 29) (index $service.Down 29)))}}">
|
2021-01-15 11:45:49 -05:00
|
|
|
<i></i>
|
2021-01-15 22:23:42 -05:00
|
|
|
{{statusName (div (index $service.Up 29) (add (index $service.Up 29) (index $service.Down 29)))}}
|
2021-01-15 11:45:49 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "common/footer" .}}
|
|
|
|
{{end}}
|