intersystems

package
v0.0.0-...-741799f Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromHorolog

func FromHorolog(h string) (time.Time, error)

Types

type ApplicationError

type ApplicationError struct {
	Time     string
	Message  string
	PID      string
	Username string
}

type ApplicationErrors

type ApplicationErrors []ApplicationError

func (ApplicationErrors) Frames

func (l ApplicationErrors) Frames() data.Frames

type Datasource

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

func NewDatasource

func NewDatasource(ctx context.Context, settings models.Settings) *Datasource

func (*Datasource) CheckHealth

func (d *Datasource) CheckHealth(ctx context.Context) error

func (*Datasource) HandleApplicationErrorsQuery

func (d *Datasource) HandleApplicationErrorsQuery(ctx context.Context, query *models.ApplicationErrorsQuery, req backend.DataQuery) (dfutil.Framer, error)

func (*Datasource) HandleLogQuery

func (d *Datasource) HandleLogQuery(ctx context.Context, query *models.LogQuery, req backend.DataQuery) (dfutil.Framer, error)

func (*Datasource) HandleMetricsQuery

func (d *Datasource) HandleMetricsQuery(ctx context.Context, query *models.MetricsQuery, req backend.DataQuery) (dfutil.Framer, error)

type InterSystems

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

func NewInterSystems

func NewInterSystems(addr, namespace, user, password string) InterSystems

func (InterSystems) Connect

func (i InterSystems) Connect() (connection.Connection, error)

func (InterSystems) ConnectSYS

func (i InterSystems) ConnectSYS() (connection.Connection, error)

type ListMetrics

type ListMetrics map[string]bool

func GetListMetrics

func GetListMetrics(ctx context.Context, client InterSystems, opts models.ListMetricsOptions) (ListMetrics, error)

func (ListMetrics) Frames

func (l ListMetrics) Frames() data.Frames

type LogLine

type LogLine struct {
	Time   string
	Pid    string
	Level  string
	Source string
	Text   string
}

type LogLines

type LogLines []LogLine

func GetLog

func GetLog(ctx context.Context, client InterSystems, opts models.ListLogOptions) (LogLines, error)

func (LogLines) Frames

func (l LogLines) Frames() data.Frames

type Metric

type Metric struct {
	Name  string
	Id    string
	Value float64
}

type Metrics

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

func GetAllMetrics

func GetAllMetrics(ctx context.Context, client InterSystems, opts models.ListMetricsOptions) (Metrics, error)

func (Metrics) Frames

func (ms Metrics) Frames() data.Frames

Jump to

Keyboard shortcuts

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