diff --git a/checker/collect.go b/checker/collect.go index ad0d927..b378de2 100644 --- a/checker/collect.go +++ b/checker/collect.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "time" sdk "git.happydns.org/checker-sdk-go/checker" ) @@ -63,6 +64,7 @@ func (p *caaProvider) Collect(ctx context.Context, opts sdk.CheckerOptions) (any return &CAAData{ Domain: domain, Records: records, + RunAt: time.Now().UTC().Format(time.RFC3339), }, nil } diff --git a/checker/types.go b/checker/types.go index a266ff3..b42c67b 100644 --- a/checker/types.go +++ b/checker/types.go @@ -40,6 +40,7 @@ const ( type CAAData struct { Domain string `json:"domain,omitempty"` Records []CAARecord `json:"records,omitempty"` + RunAt string `json:"run_at,omitempty"` } type CAARecord struct {