AlertOpen returns the URL for opening an alert in the frontend.
(org, project, alert, token string)
| 402 | |
| 403 | // AlertOpen returns the URL for opening an alert in the frontend. |
| 404 | func (u *URLs) AlertOpen(org, project, alert, token string) string { |
| 405 | if token != "" { |
| 406 | return urlutil.MustWithQuery(urlutil.MustJoinURL(u.Frontend(), org, project, "-", "alerts", alert, "open"), map[string]string{"token": token}) |
| 407 | } |
| 408 | return urlutil.MustJoinURL(u.Frontend(), org, project, "-", "alerts", alert, "open") |
| 409 | } |
| 410 | |
| 411 | // AlertEdit returns the URL for editing an alert in the frontend. |
| 412 | func (u *URLs) AlertEdit(org, project, alert string) string { |
no test coverage detected