adding new nottification validation erorr. Added a notification class containing webhook, script and shoutrrr notification logic. Adding "Test notification endpoint".
This commit is contained in:
@@ -25,13 +25,13 @@ func (ae *AppEngine) Setup() *gin.Engine {
|
||||
"success": true,
|
||||
})
|
||||
})
|
||||
api.POST("/health/notify", handler.SendTestNotification) //check if notifications are configured correctly
|
||||
|
||||
api.POST("/devices/register", handler.RegisterDevices)
|
||||
api.GET("/summary", handler.GetDevicesSummary)
|
||||
api.POST("/device/:wwn/smart", handler.UploadDeviceMetrics)
|
||||
api.POST("/devices/register", handler.RegisterDevices) //used by Collector to register new devices and retrieve filtered list
|
||||
api.GET("/summary", handler.GetDevicesSummary) //used by Dashboard
|
||||
api.POST("/device/:wwn/smart", handler.UploadDeviceMetrics) //used by Collector to upload data
|
||||
api.POST("/device/:wwn/selftest", handler.UploadDeviceSelfTests)
|
||||
|
||||
api.GET("/device/:wwn/details", handler.GetDeviceDetails)
|
||||
api.GET("/device/:wwn/details", handler.GetDeviceDetails) //used by Details
|
||||
}
|
||||
|
||||
//Static request routing
|
||||
|
||||
Reference in New Issue
Block a user