Status Page for monitoring your websites and applications with beautiful graphs, analytics, and plugins. Run on any type of environment.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
487 B

package checkins
import (
func (c *Checkin) CreateFailure(f *failures.Failure) error {
f.Checkin = c.Id
c.Failing = true
return failures.DB().Create(f).Error()
func (c *Checkin) FailuresColumnID() (string, int64) {
return "checkin", c.Id
func (c *Checkin) Failures() failures.Failurer {
return failures.AllFailures(c)
func (c *Checkin) FailuresSince(t time.Time) failures.Failurer {
return failures.Since(t, c)