collect more

This commit is contained in:
davidnewhall2
2020-06-30 03:17:05 -07:00
parent 816d7911a4
commit 34fdcc6289
+2 -2
View File
@@ -57,7 +57,7 @@ func (u *InputUnifi) collectAlarms(logs []interface{}, sites []*unifi.Site, c *C
func (u *InputUnifi) collectAnomalies(logs []interface{}, sites []*unifi.Site, c *Controller) ([]interface{}, error) {
if *c.SaveAnomal {
events, err := c.Unifi.GetAnomalies(sites, time.Now().Add(-time.Hour))
events, err := c.Unifi.GetAnomalies(sites)
if err != nil {
return logs, errors.Wrap(err, "unifi.GetAnomalies()")
}
@@ -97,7 +97,7 @@ func (u *InputUnifi) collectEvents(logs []interface{}, sites []*unifi.Site, c *C
func (u *InputUnifi) collectIDS(logs []interface{}, sites []*unifi.Site, c *Controller) ([]interface{}, error) {
if *c.SaveIDS {
events, err := c.Unifi.GetIDS(sites, time.Now().Add(-time.Hour))
events, err := c.Unifi.GetIDS(sites)
if err != nil {
return logs, errors.Wrap(err, "unifi.GetIDS()")
}