mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
![Roman Khavronenko](/assets/img/avatar_default.png)
* vmalert: deprecate alert's status link Deprecate alert's status link `/api/v1/<groupID>/<alertID>/status` in favour of `api/v1/alerts?group_id=<group_id>&alert_id=<alert_id>"`. The change was needed for simplifying logic in vmselect for proxying vmalert's requests. The old alert's status link will be still supported for a few versions but will be removed in the future. https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2825 Signed-off-by: hagen1778 <roman@victoriametrics.com> * vmalert: fix review comments Signed-off-by: hagen1778 <roman@victoriametrics.com>
12 lines
165 B
Go
12 lines
165 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
const prefix = "/vmalert/"
|
|
|
|
func Prefix(path string) string {
|
|
if strings.HasPrefix(path, prefix) {
|
|
return ""
|
|
}
|
|
return prefix
|
|
}
|