monitor_entry

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Skill = "github.com/eolinker/apinto/monitor-entry.monitor-entry.IOutput"

Variables

View Source
var (
	LabelApi      = "api"
	LabelApp      = "app"
	LabelUpstream = "upstream"
	LabelHandler  = "handler"
)

Functions

This section is empty.

Types

type IClient

type IClient interface {
	ID() string
	Write(point IPoint) error
	Close()
}

type IOutput

type IOutput interface {
	Output(point ...IPoint)
}

type IPoint

type IPoint interface {
	Table() string
	Tags() map[string]string
	Fields() map[string]interface{}
	Time() time.Time
}

func ReadProxy

func ReadProxy(ctx http_context.IHttpContext) []IPoint

func ReadRequest

func ReadRequest(ctx http_context.IHttpContext) []IPoint

type Point

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

func NewPoint

func NewPoint(table string, tags map[string]string, fields map[string]interface{}, pointTime time.Time) *Point

func (*Point) Fields

func (p *Point) Fields() map[string]interface{}

func (*Point) Table

func (p *Point) Table() string

func (*Point) Tags

func (p *Point) Tags() map[string]string

func (*Point) Time

func (p *Point) Time() time.Time

type ProxyReadFunc

type ProxyReadFunc func(request http_context.IProxy) (interface{}, bool)

type RequestReadFunc

type RequestReadFunc func(ctx http_context.IHttpContext) (interface{}, bool)

Jump to

Keyboard shortcuts

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