dbtune

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServerURL = "https://app.dbtune.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerURLs

type ServerURLs struct {
	ServerUrl string `mapstructure:"server_url" validate:"required"`
	ApiKey    string `mapstructure:"api_key" validate:"required"`
	DbID      string `mapstructure:"database_id" validate:"required"`
}

func CreateServerURLs

func CreateServerURLs() (ServerURLs, error)

func (ServerURLs) GetKnobRecommendations

func (s ServerURLs) GetKnobRecommendations() string

GetKnobRecommendations generates the URL for getting knob recommendations.

func (ServerURLs) PostActiveConfig

func (s ServerURLs) PostActiveConfig() string

PostActiveConfig generates the URL for posting active configurations.

func (ServerURLs) PostError added in v0.4.0

func (s ServerURLs) PostError() string

PostError generates the URL for posting errors.

func (ServerURLs) PostGuardrailSignal

func (s ServerURLs) PostGuardrailSignal() string

PostGuardrailSignal generates the URL for posting a guardrail signal.

func (ServerURLs) PostHeartbeat

func (s ServerURLs) PostHeartbeat() string

PostHeartbeat generates the URL for posting a heartbeat.

func (ServerURLs) PostMetrics

func (s ServerURLs) PostMetrics() string

PostMetrics generates the URL for posting metrics.

func (ServerURLs) PostSystemInfo

func (s ServerURLs) PostSystemInfo() string

PostSystemInfo generates the URL for posting system info.

Jump to

Keyboard shortcuts

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