Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "updo",
Short: "A simple website monitoring tool",
Long: `Updo is a lightweight, easy-to-use website monitoring tool that checks
website availability and response time. It provides both a terminal UI
and a simple text-based output mode.`,
Example: ` updo monitor https://example.com
updo --url https://example.com
updo monitor -r 10 -t 5 https://example.com
updo monitor --simple -c 10 https://example.com
updo monitor --simple https://example.com
updo monitor -a "Welcome" https://example.com
updo --url https://example.com -H "Authorization: Bearer token123"
updo monitor -X POST -H "Content-Type: application/json" https://api.example.com/endpoint
updo monitor -X POST -d '{"name":"test"}' -H "Content-Type: application/json" https://api.example.com/data`,
}
Functions ¶
func HideMonitoringFlags ¶ added in v0.3.0
Types ¶
type Config ¶
type Config struct {
URL string
ConfigFile string
RefreshInterval time.Duration
Timeout time.Duration
ShouldFail bool
FollowRedirects bool
AcceptRedirects bool
SkipSSL bool
AssertText string
ReceiveAlert bool
Simple bool
Count int
Headers []string
Method string
Body string
Log string
Only []string
Skip []string
WebhookURL string
WebhookHeaders []string
PrometheusURL string
}
var AppConfig Config
Click to show internal directories.
Click to hide internal directories.