status

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package status provides real-time instantaneous status of every Blip component. The only caller is server.API via GET /status.

Index

Constants

View Source
const (
	SERVER = "server"

	MONITOR     = "monitor"
	MONITOR_DSN = "dsn"

	PLAN_CHANGER         = "plan-changer"
	PLAN_CHANGER_STATE   = "state"
	PLAN_CHANGER_PENDING = "state-pending"

	LEVEL_COLLECTOR   = "level-collector"
	LEVEL_PLAN        = "level-plan"
	LEVEL_STATE       = "level-state"
	LEVEL_COLLECT     = "level-collect"
	LEVEL_CHANGE_PLAN = "level-change-plan"

	ENGINE_COLLECT = "engine-collect"
	ENGINE_PREPARE = "engine-prepare"
	ENGINE_PLAN    = "engine-plan"

	HEARTBEAT_READER = "heartbeat-reader"
	HEARTBEAT_WRITER = "heartbeat-writer"
)

Variables

This section is empty.

Functions

func Blip

func Blip(component, msg string, args ...interface{})

func Monitor

func Monitor(monitorId, component string, msg string, args ...interface{})

func MonitorMulti

func MonitorMulti(monitorId, component, msg string, args ...interface{}) string

func RemoveComponent

func RemoveComponent(monitorId, component string)

func RemoveMonitor

func RemoveMonitor(monitorId string)

func ReportBlip

func ReportBlip() map[string]string

func ReportMonitors

func ReportMonitors(ids ...string) map[string]map[string]string

func Reset

func Reset()

Reset resets everything to zero values. It's only used for test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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