monitor

package
v0.1.77 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluralizeResourceType added in v0.1.46

func PluralizeResourceType(resourceType string) string

PluralizeResourceType converts singular resource types to plural

func StreamBuildLogs

func StreamBuildLogs(resp *http.Response, onLog func(string)) error

StreamBuildLogs streams build logs from an HTTP response

Types

type BuildLogWatcher

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

BuildLogWatcher watches build logs for a resource

func NewBuildLogWatcher

func NewBuildLogWatcher(client *blaxel.Client, workspace, resourceType, resourceName string, onLog func(string)) *BuildLogWatcher

NewBuildLogWatcher creates a new build log watcher

func (*BuildLogWatcher) Start

func (w *BuildLogWatcher) Start()

Start begins watching build logs

func (*BuildLogWatcher) Stop

func (w *BuildLogWatcher) Stop()

Stop stops watching build logs

type LogEntry added in v0.1.46

type LogEntry struct {
	Timestamp string
	Message   string
}

LogEntry represents a single log entry with timestamp

type LogFetcher added in v0.1.46

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

LogFetcher fetches logs for a resource with custom time ranges

func NewLogFetcher added in v0.1.46

func NewLogFetcher(client *blaxel.Client, workspace, resourceType, resourceName string, startTime, endTime time.Time, severity, search, taskID, executionID string) *LogFetcher

NewLogFetcher creates a new log fetcher

func (*LogFetcher) FetchLogs added in v0.1.46

func (lf *LogFetcher) FetchLogs() ([]LogEntry, error)

FetchLogs fetches logs for the configured time range

type LogFollower added in v0.1.46

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

LogFollower follows logs in real-time

func NewLogFollower added in v0.1.46

func NewLogFollower(client *blaxel.Client, workspace, resourceType, resourceName string, startTime time.Time, severity, search, taskID, executionID string, onLog func(LogEntry), onError func(error), onInfo func(string)) *LogFollower

NewLogFollower creates a new log follower

func (*LogFollower) Start added in v0.1.46

func (lf *LogFollower) Start()

Start begins following logs

func (*LogFollower) Stop added in v0.1.46

func (lf *LogFollower) Stop()

Stop stops following logs

Jump to

Keyboard shortcuts

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