newrelic

package
v0.0.0-...-3cf5987 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func NewApi

func NewApi(apiKey string, minRpmForConsideration int, client GetApiRequest) *Api

func (*Api) GetApplicationRpm

func (nr *Api) GetApplicationRpm(appName string) (int, error)

func (*Api) GetRPMAverageAcrossHosts

func (nr *Api) GetRPMAverageAcrossHosts(appName string) (int, error)

type GetApiRequest

type GetApiRequest interface {
	Fetch(url string, headers map[string]string, params map[string]string) ([]byte, error)
}

type RpmProvider

type RpmProvider interface {
	GetApplicationRpm(appName string) (int, error)
}

Jump to

Keyboard shortcuts

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