Documentation
¶
Index ¶
- func EventsFromFile(filename string) (monitorapi.Intervals, error)
- func EventsIntervalsToJSON(events monitorapi.Intervals) ([]byte, error)
- func EventsToFile(filename string, events monitorapi.Intervals) error
- func InstanceMapToFile(filename string, resourceType string, instances monitorapi.InstanceMap) error
- func IntervalFromJSON(data []byte) (*monitorapi.Interval, error)
- func IntervalToOneLineJSON(interval monitorapi.Interval) ([]byte, error)
- func IntervalsFromJSON(data []byte) (monitorapi.Intervals, error)
- func IntervalsToFile(filename string, intervals monitorapi.Intervals) error
- func IntervalsToJSON(intervals monitorapi.Intervals) ([]byte, error)
- type EventInterval
- type EventIntervalList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventsFromFile ¶
func EventsFromFile(filename string) (monitorapi.Intervals, error)
func EventsIntervalsToJSON ¶
func EventsIntervalsToJSON(events monitorapi.Intervals) ([]byte, error)
TODO: this is very similar but subtly different to the function above, what is the purpose of skipping those with from/to equal or empty to?
func EventsToFile ¶
func EventsToFile(filename string, events monitorapi.Intervals) error
func InstanceMapToFile ¶
func InstanceMapToFile(filename string, resourceType string, instances monitorapi.InstanceMap) error
func IntervalFromJSON ¶
func IntervalFromJSON(data []byte) (*monitorapi.Interval, error)
func IntervalToOneLineJSON ¶
func IntervalToOneLineJSON(interval monitorapi.Interval) ([]byte, error)
func IntervalsFromJSON ¶
func IntervalsFromJSON(data []byte) (monitorapi.Intervals, error)
func IntervalsToFile ¶
func IntervalsToFile(filename string, intervals monitorapi.Intervals) error
func IntervalsToJSON ¶
func IntervalsToJSON(intervals monitorapi.Intervals) ([]byte, error)
Types ¶
type EventInterval ¶
type EventInterval struct {
Level string `json:"level"`
// TODO: Remove the omitempty, just here to keep from having to repeatedly updated the json
// files used in some new tests
Source string `json:"source,omitempty"` // also temporary, unsure if this concept will survive
Display bool `json:"display,omitempty"`
Locator monitorapi.Locator `json:"locator"`
Message monitorapi.Message `json:"message"`
From metav1.Time `json:"from"`
To metav1.Time `json:"to"`
}
Event is not an interval. It is an instant. The instant removes any ambiguity about "when"
type EventIntervalList ¶
type EventIntervalList struct {
Items []EventInterval `json:"items"`
}
EventList is not an interval. It is an instant. The instant removes any ambiguity about "when"
Click to show internal directories.
Click to hide internal directories.