monitoring

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDomain

func CheckDomain(domain string) error

CheckDomain checks if a domain is accessible

func FormatWebhookPayload

func FormatWebhookPayload(payload WebhookPayload) string

FormatWebhookPayload returns a formatted string representation of the payload

Types

type Monitor

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

Monitor handles continuous service monitoring

func NewMonitor

func NewMonitor(cfg *config.Config, sshPool *ssh.Pool, verbose bool) *Monitor

NewMonitor creates a new service monitor

func (*Monitor) CheckOnce

func (m *Monitor) CheckOnce(envName string) error

CheckOnce runs a single monitoring check on all services

func (*Monitor) Close added in v0.10.0

func (m *Monitor) Close()

func (*Monitor) SetServiceFilter added in v0.4.1

func (m *Monitor) SetServiceFilter(serviceName string)

func (*Monitor) Start

func (m *Monitor) Start(envName string) error

Start begins monitoring all enabled services

type WebhookPayload

type WebhookPayload struct {
	Event     string                 `json:"event"`
	Timestamp time.Time              `json:"timestamp"`
	Project   string                 `json:"project"`
	Service   string                 `json:"service"`
	Server    string                 `json:"server"`
	Details   map[string]interface{} `json:"details"`
	Severity  string                 `json:"severity"`
}

WebhookPayload represents the structure sent to webhook endpoints

Jump to

Keyboard shortcuts

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