pollster

package
v0.0.0-...-61a96ab Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pollster

type Pollster interface {
	Do(ctx context.Context) chan *Response
}

Pollster is the interface for datadog metrics polling.

func NewSimplePollster

func NewSimplePollster(client *client.Client, interval time.Duration, cfg *config.Config, componentFn func(component types.Component, team, project string, id int) bool) Pollster

NewSimplePollster returns an instance of a simple polling scheduler.

type Response

type Response struct {
	UserConfigFile *config.UserConfigFile

	Component types.Component
	ID        int
}

Response is a response structure returned by a Do method of Pollster interface.

Jump to

Keyboard shortcuts

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