dbtune

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 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 AgentPath added in v0.6.3

type AgentPath string

AgentPath identifies a known agent API endpoint.

const (
	PathHeartbeat      AgentPath = "heartbeat"
	PathSystemInfo     AgentPath = "system-info"
	PathMetrics        AgentPath = "metrics"
	PathConfigurations AgentPath = "configurations"
	PathGuardrails     AgentPath = "guardrails"
	PathLogEntries     AgentPath = "log-entries"
)

type ServerURLs

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

func CreateServerURLs

func CreateServerURLs() (ServerURLs, error)

func (ServerURLs) AgentURL added in v0.6.3

func (s ServerURLs) AgentURL(path AgentPath) string

AgentURL builds a URL for the given agent API path segment. e.g. AgentURL(PathHeartbeat) => "https://app.dbtune.com/api/v1/agent/heartbeat?uuid=<db-id>"

func (ServerURLs) GetKnobRecommendations

func (s ServerURLs) GetKnobRecommendations() string

GetKnobRecommendations generates the URL for getting knob recommendations.

Directories

Path Synopsis
Package dbtunetest provides test infrastructure for the DBtune API.
Package dbtunetest provides test infrastructure for the DBtune API.

Jump to

Keyboard shortcuts

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