Help us shape the future of Go! Take the 2026 Go Developer Survey

observability

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove(id string) error

func Update

func Update(source MetricsSource) error

Types

type MetricsSource

type MetricsSource struct {
	ID               string                   `json:"id"`
	Provider         capability.ProviderKind  `json:"provider"`
	Class            SourceClass              `json:"class"`
	Scope            capability.ProviderScope `json:"scope"`
	SharingBoundary  string                   `json:"sharing_boundary,omitempty"`
	OwnerApplication string                   `json:"owner_application,omitempty"`
	Network          string                   `json:"network"`
	Target           string                   `json:"target"`
	Path             string                   `json:"path"`
}

func ListMetrics

func ListMetrics(placement capability.ProviderPlacement, applications []string, includeApplicationProviders, includePlatformProviders bool) ([]MetricsSource, error)

func (MetricsSource) Validate

func (s MetricsSource) Validate() error

type SourceClass

type SourceClass string
const (
	SourceApplicationProvider SourceClass = "application-provider"
	SourcePlatformProvider    SourceClass = "platform-provider"
)

Jump to

Keyboard shortcuts

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