metrics

package
v0.0.0-...-aef4648 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstrumentPFCP

type InstrumentPFCP interface {
	SaveMessages(m *Message)
	SaveSessions(s *Session)
}

type Message

type Message struct {
	NodeID    string
	MsgType   string
	Direction string
	Result    string

	StartedAt time.Time
	Duration  float64
}

func NewMessage

func NewMessage(msgType, direction string) *Message

func (*Message) Finish

func (m *Message) Finish(nodeID, result string)

type Service

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

func NewPrometheusService

func NewPrometheusService() (*Service, error)

func (*Service) SaveMessages

func (s *Service) SaveMessages(msg *Message)

func (*Service) SaveSessions

func (s *Service) SaveSessions(sess *Session)

type Session

type Session struct {
	NodeID string

	CreatedAt time.Time
	Duration  float64
}

func NewSession

func NewSession(nodeID string) *Session

func (*Session) Delete

func (s *Session) Delete()

Jump to

Keyboard shortcuts

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