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:
Jason Kulatunga
2020-09-12 12:43:41 -07:00
parent 6bee0d1489
commit c913cf39b9
6 changed files with 233 additions and 7 deletions
+5 -5
View File
@@ -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