extinstance

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrometheusInstanceTargetId = "com.github.steadybit.extension_prometheus.instance"
	PrometheusIcon             = "" /* 1053-byte string literal not displayed */
)

Variables

View Source
var (
	Instances []Instance
)

Functions

func RegisterInstanceDiscoveryHandlers

func RegisterInstanceDiscoveryHandlers()

Types

type Instance

type Instance struct {
	Name        string `json:"name"`
	BaseUrl     string `json:"baseUrl"`
	HeaderKey   string `json:"headerKey"`
	HeaderValue string `json:"headerValue"`
}

func FindInstanceByName

func FindInstanceByName(name string) (*Instance, error)

func (*Instance) GetApiClient

func (i *Instance) GetApiClient() (prometheus.API, error)

func (*Instance) IsAuthenticated

func (i *Instance) IsAuthenticated() bool

Jump to

Keyboard shortcuts

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