beater

package
v0.0.0-...-58765e8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHttpGet

func DoHttpGet(url string, ch chan<- HttpResponse)

Perform a HTTP GET and put the response back on the channel

@param url @param ch

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of springboot2beat.

Types

type HttpResponse

type HttpResponse struct {
	Status string
	Body   []byte
	Url    string
}

Http Response Struct for Concurrent GET's

type Measurement

type Measurement struct {
	Statistic string  `json: "statistic"`
	Value     float32 `json: "value"`
}

Sub Struct conatining micrometer.io Measurement struct

type Metric

type Metric struct {
	Name         string        `json: "statistic"`
	Measurements []Measurement `json: "measurements"`
}

Metric Endpoint Response

type MetricsList

type MetricsList struct {
	Names []string `json: "names"`
}

Metrics List

type Springboot2beat

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

Springboot2beat configuration.

func (*Springboot2beat) ProcessMetricsActuator

func (bt *Springboot2beat) ProcessMetricsActuator(b *beat.Beat)

Process the Metrics Actuator

@access /actuator/metrics

func (*Springboot2beat) Run

func (bt *Springboot2beat) Run(b *beat.Beat) error

Run starts springboot2beat.

func (*Springboot2beat) Stop

func (bt *Springboot2beat) Stop()

Stop stops springboot2beat.

Jump to

Keyboard shortcuts

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