Documentation ¶
Index ¶
- func BuildClientsMetrics(clients *[]interface{}) *structs.StatusMetrics
- func BuildEventsMetrics(events *[]interface{}) *structs.StatusMetrics
- func GetBoolFromInterface(i interface{}) (bool, error)
- func GetEvent(check, client, dc string, events *[]interface{}) (map[string]interface{}, error)
- func GetIP(r *http.Request) string
- func GetInterfacesFromBytes(bytes []byte) ([]interface{}, error)
- func GetMapFromBytes(bytes []byte) (map[string]interface{}, error)
- func GetMapFromInterface(i interface{}) map[string]interface{}
- func IsAcknowledged(check, client, dc string, stashes []interface{}) bool
- func IsStringInArray(item string, array []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClientsMetrics ¶
func BuildClientsMetrics(clients *[]interface{}) *structs.StatusMetrics
BuildClientsMetrics builds the metrics for the events
func BuildEventsMetrics ¶
func BuildEventsMetrics(events *[]interface{}) *structs.StatusMetrics
BuildEventsMetrics builds the metrics for the events
func GetBoolFromInterface ¶
GetBoolFromInterface ...
func GetInterfacesFromBytes ¶
GetInterfacesFromBytes returns a slice of interfaces from a slice of byte
func GetMapFromBytes ¶
GetMapFromBytes returns a map from a slice of byte
func GetMapFromInterface ¶
func GetMapFromInterface(i interface{}) map[string]interface{}
GetMapFromInterface returns a map from an interface
func IsAcknowledged ¶
IsAcknowledged determines if a client or a check has an associated silence stash
func IsStringInArray ¶
IsStringInArray searches 'array' for 'item' string Returns true 'item' is a value of 'array'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.