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.
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. |
Click to show internal directories.
Click to hide internal directories.