mirror of
https://github.com/Luzifer/mondash.git
synced 2024-11-09 16:10:01 +00:00
Always update DetailURL: Allows deletion
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
c0cb0c4fb5
commit
db925f8466
1 changed files with 5 additions and 8 deletions
13
structs.go
13
structs.go
|
@ -259,18 +259,15 @@ func (dm dashboardMetric) DataHistory() []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dm *dashboardMetric) Update(m *dashboardMetric) {
|
func (dm *dashboardMetric) Update(m *dashboardMetric) {
|
||||||
dm.Title = m.Title
|
|
||||||
dm.Description = m.Description
|
dm.Description = m.Description
|
||||||
dm.Status = m.Status
|
dm.DetailURL = m.DetailURL
|
||||||
dm.Value = m.Value
|
|
||||||
dm.IgnoreMAD = m.IgnoreMAD
|
|
||||||
dm.HideMAD = m.HideMAD
|
dm.HideMAD = m.HideMAD
|
||||||
dm.HideValue = m.HideValue
|
dm.HideValue = m.HideValue
|
||||||
|
dm.IgnoreMAD = m.IgnoreMAD
|
||||||
dm.StalenessStatus = m.StalenessStatus
|
dm.StalenessStatus = m.StalenessStatus
|
||||||
|
dm.Status = m.Status
|
||||||
if m.DetailURL != "" {
|
dm.Title = m.Title
|
||||||
dm.DetailURL = m.DetailURL
|
dm.Value = m.Value
|
||||||
}
|
|
||||||
|
|
||||||
if m.Expires != 0 {
|
if m.Expires != 0 {
|
||||||
dm.Expires = m.Expires
|
dm.Expires = m.Expires
|
||||||
|
|
Loading…
Reference in a new issue