add targets apis
This commit is contained in:
parent
40e7ede5e3
commit
850a370f9d
|
@ -238,5 +238,13 @@ func configRoute(r *gin.Engine, version string) {
|
|||
{
|
||||
service.Any("/prometheus/*url", prometheusProxy)
|
||||
service.POST("/users", userAddPost)
|
||||
|
||||
service.GET("/targets", targetGets)
|
||||
service.DELETE("/targets", targetDel)
|
||||
service.GET("/targets/tags", targetGetTags)
|
||||
service.POST("/targets/tags", targetBindTags)
|
||||
service.DELETE("/targets/tags", targetUnbindTags)
|
||||
service.PUT("/targets/note", targetUpdateNote)
|
||||
service.PUT("/targets/bgid", targetUpdateBgid)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue