Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry map[string]interface{}
Entry represents one scraped log line in flat key-value store.
type Extender ¶ added in v0.10.0
type Extender interface { // Extend returns a new log entry, based on the passed one, with additional // data. Original entry is not modified but duplicate keys are overwritten in // returned entry. Extend(Entry) Entry }
Extender is type used to extend log data with additional data.
type StaticDataExtender ¶ added in v0.10.0
type StaticDataExtender struct {
Data map[string]interface{}
}
StaticDataExtender adds data specified in the Data field to passed log entry.
func (StaticDataExtender) Extend ¶ added in v0.10.0
func (e StaticDataExtender) Extend(entry Entry) Entry
Extend returns a new log entry, based on the passed entry, with Data map added to it.
type SystemDataExtender ¶ added in v0.10.0
type SystemDataExtender struct { }
SystemDataExtender adds system specific data to passed log entry. It only adds data that is able to get.
func (SystemDataExtender) Extend ¶ added in v0.10.0
func (e SystemDataExtender) Extend(entry Entry) Entry
Extend returns a new log entry, based on the passed entry, with hostname, region and availability zone added to it. Data is added only when it is possible to retrieve it from the system.
Click to show internal directories.
Click to hide internal directories.