Documentation
¶
Overview ¶
Go Riemann client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents a connection to a Riemann server
func Dial ¶
Dial establishes a connection to a Riemann server at addr, on the network netwrk.
Known networks are "tcp", "tcp4", "tcp6", "udp", "udp4", and "udp6".
func DialWithTimeout ¶
Dial establishes a connection to a Riemann server at addr, on the network netwrk, with a timeout of timeout
Known networks are "tcp", "tcp4", "tcp6", "udp", "udp4", and "udp6".
type Event ¶
type Event struct {
Ttl float32 `json:"ttl,omitempty"`
Time int64 `json:"time,omitempty"`
Tags []string `json:"tags,omitempty"`
Host string `json:"host,omitempty"` // Defaults to os.Hostname()
State string `json:"state,omitempty"`
Service string `json:"service,omitempty"`
Metric interface{} `json:"metric,omitempty"` // Could be Int, Float32, Float64
Description string `json:"description,omitempty"`
Attributes map[string]string `json:"attributes,omitempty"`
}
An Event represents a single Riemann event
Click to show internal directories.
Click to hide internal directories.