Metric implementation

This commit is contained in:
2025-01-04 20:54:36 -05:00
parent 23da46fe07
commit 59b598c6b3
13 changed files with 290 additions and 96 deletions

View File

@@ -18,17 +18,20 @@ func main() {
ctx = app.MustSetupConfigAndLogging(ctx)
aw := ambient.New(ctx)
aw.MustInit()
awApp := app.App{
AppContext: ctx,
HTTP: &app.AppHTTP{
Funcs: []srv.HTTPFunc{
{
Path: "/weatherstation/updateweatherstation.php",
HandlerFunc: ambient.GetWundergroundHandlerFunc(ctx),
HandlerFunc: aw.GetWundergroundHandlerFunc(ctx),
},
{
Path: "/data/report",
HandlerFunc: ambient.GetAWNHandlerFunc(ctx),
HandlerFunc: aw.GetAWNHandlerFunc(ctx),
},
},
HealthChecks: []srv.HealthCheckFunc{