output

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dashboard

type Dashboard struct {
	Detections []Detection
	URL        string
	Title      string
	Folder     string
	UpdatedBy  string
	CreatedBy  string
	Created    string
	Updated    string
}

type Detection

type Detection struct {
	// PluginID is the plugin ID that triggered the detection.
	PluginID string

	// DetectionType identifies the type of the detection.
	DetectionType DetectionType

	// Title is the title of the panel that triggered the detection.
	// It is used so the user can identify the panel on the dashboard.
	Title string
}

func (Detection) String

func (d Detection) String() string

type DetectionType

type DetectionType string
const (
	DetectionTypePanel       DetectionType = "panel"
	DetectionTypeDatasource  DetectionType = "datasource"
	DetectionTypeLegacyPanel DetectionType = "legacyPanel"
)

type JSONOutputter

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

func NewJSONOutputter

func NewJSONOutputter(w io.Writer) JSONOutputter

func (JSONOutputter) Output

func (o JSONOutputter) Output(v []Dashboard) error

type LoggerReadableOutput

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

func NewLoggerReadableOutput

func NewLoggerReadableOutput(log *logger.LeveledLogger) LoggerReadableOutput

func (LoggerReadableOutput) Output

func (o LoggerReadableOutput) Output(v []Dashboard) error

type Outputter

type Outputter interface {
	Output([]Dashboard) error
}

Jump to

Keyboard shortcuts

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