models

package
v0.0.0-...-ea148e4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathArrayElement

type PathArrayElement struct {
	SpanName string `ch:"span_name"`
	SpanID   string `ch:"span_id"`
}

type Predictions

type Predictions struct {
	TraceID                string       `ch:"trace_id"`
	AnomalyDetected        sql.NullBool `ch:"anomaly_detected"`
	SpanName               string       `ch:"span_name"`
	SpanID                 string       `ch:"span_id"`
	ExpectedSpanName       string       `ch:"expected_span_name"`
	AnomalyPositionInTrace *int32       `ch:"span_position"`
}

func (Predictions) FitToSpans

func (p Predictions) FitToSpans(spanList []dto.SpanListElementDTO)

type Span

type Span struct {
	TraceID      string    `ch:"trace_id"`
	SpanID       string    `ch:"span_id"`
	ParentSpanID string    `ch:"parent_span_id"`
	SpanName     string    `ch:"span_name"`
	StartTime    time.Time `ch:"start_time"`
	EndTime      time.Time `ch:"end_time"`
	Attributes   map[string]any
}

func (*Span) MakeDTO

func (s *Span) MakeDTO() dto.SpanListElementDTO

func (*Span) SetAttribute

func (s *Span) SetAttribute(name string, value any)

type Trace

type Trace struct {
	TraceID    string               `ch:"trace_id"`
	Paths      string               `ch:"paths"`
	PathsArray [][]PathArrayElement `ch:"paths_array"`
	StartTime  time.Time            `ch:"start_time"`
	JsonSpans  string               `ch:"json_spans"`
}

Jump to

Keyboard shortcuts

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