MCPcopy Create free account
hub / github.com/rilldata/rill / AlertOpen

Method AlertOpen

admin/urls.go:404–409  ·  view source on GitHub ↗

AlertOpen returns the URL for opening an alert in the frontend.

(org, project, alert, token string)

Source from the content-addressed store, hash-verified

402
403// AlertOpen returns the URL for opening an alert in the frontend.
404func (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.
412func (u *URLs) AlertEdit(org, project, alert string) string {

Callers 1

GetAlertMetaMethod · 0.80

Calls 3

FrontendMethod · 0.95
MustWithQueryFunction · 0.92
MustJoinURLFunction · 0.92

Tested by

no test coverage detected