Top.Mail.Ru
package config — KubFly SDK for Go

KubFly SDK for Go / output/console/config

package config

import "kubfly.io/sdk/output/console/config"

Package config holds the variables of the console and their defaults — the only place of the defaults (the rule of the SDK): code takes the values from console.Config. It is io.kubfly.sdk.output.console.config of the Java SDK: the names of the variables are the same.

Constants

const (
	// Console is the switch of the console: ON (by default), OFF or AUTO (on).
	Console = "KUBFLY_OUTPUT_CONSOLE"
	// Format is the format of the lines: PRETTY (by default) or JSON (JSON lines).
	Format = "KUBFLY_OUTPUT_CONSOLE_FORMAT"
	// Level is the most verbose level of the events printed.
	Level = "KUBFLY_OUTPUT_CONSOLE_LEVEL"
	// DefaultLevel is the level by default.
	DefaultLevel = "INFO"
	// Events tells whether events, alerts and health are printed: ON, OFF or AUTO (by default — off while a bridge
	// prints the events itself).
	Events = "KUBFLY_OUTPUT_CONSOLE_EVENTS"
	// Frames tells whether the beginnings and the ends of frames are printed: on (by default) or off.
	Frames = "KUBFLY_OUTPUT_CONSOLE_FRAMES"
	// Metrics are the busiest metrics printed of an interval; 0 — none.
	Metrics = "KUBFLY_OUTPUT_CONSOLE_METRICS"
	// DefaultMetrics are the metrics of an interval by default.
	DefaultMetrics = 10
	// Traffic are the busiest edges printed of an interval; 0 — none.
	Traffic = "KUBFLY_OUTPUT_CONSOLE_TRAFFIC"
	// DefaultTraffic are the edges of an interval by default.
	DefaultTraffic = 10
	// Profiles are the hottest frames printed of a profile; 0 — none.
	Profiles = "KUBFLY_OUTPUT_CONSOLE_PROFILES"
	// DefaultProfiles are the frames of a profile by default.
	DefaultProfiles = 5
	// Color tells whether the lines are colored: ON, OFF or AUTO (by default — on a terminal without NO_COLOR).
	Color = "KUBFLY_OUTPUT_CONSOLE_COLOR"
	// Stream is where the lines go: STDOUT (by default) or STDERR.
	Stream = "KUBFLY_OUTPUT_CONSOLE_STREAM"
)

The variables of the console, with their defaults.