@@ -21,8 +21,7 @@ type EventInterval struct {
2121
2222 // TODO: Remove the omitempty, just here to keep from having to repeatedly updated the json
2323 // files used in some new tests
24- Source string `json:"tempSource,omitempty"` // also temporary, unsure if this concept will survive
25- Display bool `json:"display"`
24+ Source string `json:"tempSource,omitempty"` // also temporary, unsure if this concept will survive
2625
2726 // TODO: we're hoping to move these to just locator/message when everything is ready.
2827 StructuredLocator monitorapi.Locator `json:"tempStructuredLocator"`
@@ -65,8 +64,7 @@ func IntervalsFromJSON(data []byte) (monitorapi.Intervals, error) {
6564 return nil , err
6665 }
6766 events = append (events , monitorapi.Interval {
68- Source : monitorapi .IntervalSource (interval .Source ),
69- Display : interval .Display ,
67+ Source : monitorapi .IntervalSource (interval .Source ),
7068 Condition : monitorapi.Condition {
7169 Level : level ,
7270 Locator : interval .Locator ,
@@ -93,8 +91,7 @@ func IntervalFromJSON(data []byte) (*monitorapi.Interval, error) {
9391 return nil , err
9492 }
9593 return & monitorapi.Interval {
96- Source : monitorapi .IntervalSource (serializedInterval .Source ),
97- Display : serializedInterval .Display ,
94+ Source : monitorapi .IntervalSource (serializedInterval .Source ),
9895 Condition : monitorapi.Condition {
9996 Level : level ,
10097 Locator : serializedInterval .Locator ,
@@ -166,7 +163,6 @@ func monitorEventIntervalToEventInterval(interval monitorapi.Interval) EventInte
166163 StructuredLocator : interval .StructuredLocator ,
167164 StructuredMessage : interval .StructuredMessage ,
168165 Source : string (interval .Source ),
169- Display : interval .Display ,
170166
171167 From : metav1.Time {Time : interval .From },
172168 To : metav1.Time {Time : interval .To },
0 commit comments