extinstance

package
v2.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	Instances []Instance
)

Functions

func NewInstanceDiscovery

func NewInstanceDiscovery() discovery_kit_sdk.TargetDiscovery

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