types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2016 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KernelLog

type KernelLog struct {
	Timestamp int64 // microseconds since kernel boot
	Message   string
}

KernelLog is the log item returned by translator. It's very easy to extend this to support other log monitoring, such as docker log monitoring.

type Rule

type Rule struct {
	// Type is the type of matched kernel problem.
	Type Type `json:"type"`
	// Condition is the type of the condition the kernel problem triggered. Notice that
	// the Condition field should be set only when the problem is permanent, or else the
	// field will be ignored.
	Condition string `json:"condition"`
	// Reason is the short reason of the kernel problem.
	Reason string `json:"reason"`
	// Pattern is the regular expression to match the kernel problem in kernel log.
	// Notice that the pattern must match to the end of the line.
	Pattern string `json:"pattern"`
}

Rule describes how kernel monitor should analyze the kernel log.

type Type

type Type string

Type is the type of the kernel problem.

const (
	// Temp means the kernel problem is temporary, only need to report an event.
	Temp Type = "temporary"
	// Perm means the kernel problem is permanent, need to change the node condition.
	Perm Type = "permanent"
)

Jump to

Keyboard shortcuts

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