Documentation
¶
Index ¶
- Constants
- type ServerURLs
- func (s ServerURLs) GetKnobRecommendations() string
- func (s ServerURLs) PostActiveConfig() string
- func (s ServerURLs) PostError() string
- func (s ServerURLs) PostGuardrailSignal() string
- func (s ServerURLs) PostHeartbeat() string
- func (s ServerURLs) PostMetrics() string
- func (s ServerURLs) PostSystemInfo() string
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.
Click to show internal directories.
Click to hide internal directories.