这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/bosun/sched/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (c *Context) GraphLink(v string) string {
func (c *Context) Rule() (string, error) {
p := url.Values{}
//There might be something better when we tie the notifications to evaluation time issue #395
time := time.Now().UTC()
time := c.runHistory.Start
p.Add("alert", c.Alert.Name)
p.Add("fromDate", time.Format("2006-01-02"))
p.Add("fromTime", time.Format("15:04"))
Expand Down Expand Up @@ -473,7 +473,7 @@ func (c *Context) LSQuery(index_root, filter, sduration, eduration string, size
}

func (c *Context) LSQueryAll(index_root, keystring, filter, sduration, eduration string, size int) (interface{}, error) {
req, err := expr.LSBaseQuery(time.Now(), index_root, c.runHistory.Logstash, keystring, filter, sduration, eduration, size)
req, err := expr.LSBaseQuery(c.runHistory.Start, index_root, c.runHistory.Logstash, keystring, filter, sduration, eduration, size)
if err != nil {
return nil, err
}
Expand Down