multiagent

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Type      string      `json:"_type"`
	Value     interface{} `json:"_value"`
	Flags     string      `json:"_fl,omitempty"`
	Timestamp uint64      `json:"_ts,omitempty"`
}

type Metrics

type Metrics map[string]Metric

type Submitter

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

func New

func New(parentLogger zerolog.Logger, chk *check.Check, svr *server.Server) (*Submitter, error)

func (*Submitter) Start

func (s *Submitter) Start(ctx context.Context) error

type TrapResult

type TrapResult struct {
	CheckUUID  string
	SubmitUUID uuid.UUID
	Filtered   uint64 `json:"filtered,omitempty"`
	Stats      uint64 `json:"stats"`
	Error      string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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