monitorsformatter

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: EPL-2.0 Imports: 5 Imported by: ? 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

Overview

* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0

* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0

Index

Constants

View Source
const (
	HEADER_MONITOR_NAME       = "name"
	HEADER_MONITOR_KIND       = "kind"
	HEADER_MONITOR_IS_ENABLED = "is-enabled"
)

Displays monitors in the following format: name kind: is-enabled _system-certificate-monitor GalasaCertificateMonitor true _system-resource-cleanup-monitor GalasaResourceCleanupMonitor true myCustomResourceMonitor GalasaResourceCleanupMonitor true

Total: 3 ----------------------------------------------------- MonitorsFormatter - implementations can take a collection of monitors and turn them into a string for display to the user.

View Source
const (
	SUMMARY_FORMATTER_NAME = "summary"
)

----------------------------------------------------- Summary format.

View Source
const (
	YAML_FORMATTER_NAME = "yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitorsFormatter

type MonitorsFormatter interface {
	FormatMonitors(monitors []galasaapi.GalasaMonitor) (string, error)
	GetName() string
}

func NewMonitorsSummaryFormatter

func NewMonitorsSummaryFormatter() MonitorsFormatter

func NewMonitorsYamlFormatter

func NewMonitorsYamlFormatter() MonitorsFormatter

type MonitorsSummaryFormatter

type MonitorsSummaryFormatter struct {
}

func (*MonitorsSummaryFormatter) FormatMonitors

func (*MonitorsSummaryFormatter) FormatMonitors(monitors []galasaapi.GalasaMonitor) (string, error)

func (*MonitorsSummaryFormatter) GetName

func (*MonitorsSummaryFormatter) GetName() string

type MonitorsYamlFormatter

type MonitorsYamlFormatter struct {
}

func (*MonitorsYamlFormatter) FormatMonitors

func (*MonitorsYamlFormatter) FormatMonitors(monitors []galasaapi.GalasaMonitor) (string, error)

func (*MonitorsYamlFormatter) GetName

func (*MonitorsYamlFormatter) GetName() string

Jump to

Keyboard shortcuts

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