status

package
v0.0.0-...-1d9613f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(sources []*config.LogSource)

Initialize instantiates a builder that holds the sources required to build the current status later on.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is used to build the status.

type Integration

type Integration struct {
	Name    string   `json:"name"`
	Sources []Source `json:"sources"`
}

Integration provides some information about a logs integration.

type Source

type Source struct {
	Type   string   `json:"type"`
	Status string   `json:"status"`
	Inputs []string `json:"inputs"`
	// TCP, UDP
	Port int `json:"port"`
	// File
	Path string `json:"path"`
	// Docker
	Image string `json:"image"`
	Label string `json:"label"`
}

Source provides some information about a logs source.

type Status

type Status struct {
	IsRunning    bool          `json:"is_running"`
	Integrations []Integration `json:"integrations"`
}

Status provides some information about logs-agent.

func Get

func Get() Status

Get returns the status of the logs-agent computed on the fly.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL