dashboards

package
v1.9.12 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxWidgetConfigBytes = 32 * 1024
View Source
const MaxWidgetsPerDashboard = 100
View Source
const SchemaVersion = 1

Variables

View Source
var AllowedWidgetTypes = []string{"line_chart", "area_chart", "stacked_area", "bar_chart", "single_value", "gauge", "table"}
View Source
var ErrUnsupportedSchemaVersion = errors.New("unsupported dashboard schemaVersion")

Functions

func EnsureWidgetIds

func EnsureWidgetIds(def *models.DashboardDefinition)

func FindWidget

func FindWidget(def *models.DashboardDefinition, widgetId string) int

func IsAllowedWidgetType

func IsAllowedWidgetType(widgetType string) bool

func MarshalDefinition

func MarshalDefinition(def *models.DashboardDefinition) ([]byte, error)

func NewWidgetId

func NewWidgetId() string

func ParseDefinition

func ParseDefinition(raw []byte) (*models.DashboardDefinition, error)

func SupportedSchemaVersion

func SupportedSchemaVersion(v int) bool

func TruncateName

func TruncateName(name string, maxRunes int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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