utils

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCreateScrapeConfigPayload = observability.CreateScrapeConfigPayload{
		JobName:        "default-name",
		MetricsPath:    utils.Ptr("/metrics"),
		Scheme:         observability.CREATESCRAPECONFIGPAYLOADSCHEME_HTTPS,
		ScrapeInterval: "5m",
		ScrapeTimeout:  "2m",
		StaticConfigs:  defaultStaticConfigs,
	}
)

Functions

func GetInstanceName

func GetInstanceName(ctx context.Context, apiClient observability.DefaultAPI, instanceId, projectId string) (string, error)

func GetPartialUpdateGrafanaConfigsPayload

func GetPartialUpdateGrafanaConfigsPayload(ctx context.Context, apiClient observability.DefaultAPI, instanceId, projectId string, singleSignOn, publicReadAccess *bool) (*observability.UpdateGrafanaConfigsPayload, error)

func LoadPlanId

func LoadPlanId(planName string, resp *observability.PlansResponse) (string, error)

func ValidatePlanId

func ValidatePlanId(planId string, resp *observability.PlansResponse) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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