feat(alerting): improve spacing in alerting tab

This commit is contained in:
bergquist
2016-05-30 17:50:35 +02:00
parent 3d5c27df91
commit c5c261e955
3 changed files with 23 additions and 23 deletions
+19
View File
@@ -27,6 +27,25 @@ type AlertRule struct {
Updated time.Time `json:"updated"`
}
func (this *AlertRule) Equals(other AlertRule) bool {
result := false
result = result || this.Aggregator != other.Aggregator
result = result || this.CritLevel != other.CritLevel
result = result || this.WarnLevel != other.WarnLevel
result = result || this.WarnOperator != other.WarnOperator
result = result || this.CritOperator != other.CritOperator
result = result || this.Query != other.Query
result = result || this.QueryRefId != other.QueryRefId
result = result || this.Frequency != other.Frequency
result = result || this.Title != other.Title
result = result || this.Description != other.Description
result = result || this.QueryRange != other.QueryRange
//don't compare .State! That would be insane.
return result
}
type AlertingClusterInfo struct {
ServerId string
ClusterSize int