Add Service.Key() method to generate the unique service key

This commit is contained in:
TwinProduction authored and Chris committed 2021-07-18 17:29:08 -04:00
1 parent 7aed826d65
commit 1498b6d8a2
5 files changed
+16 -14

No files matched your search

+1 -3
View File
@@ -2,8 +2,6 @@ package core
import (
"time"
"github.com/TwinProduction/gatus/util"
)
const (
@@ -48,7 +46,7 @@ func NewServiceStatus(service *Service) *ServiceStatus {
return &ServiceStatus{
Name: service.Name,
Group: service.Group,
Key: util.ConvertGroupAndServiceToKey(service.Group, service.Name),
Key: service.Key(),
Results: make([]*Result, 0),
Events: []*Event{{
Type: EventStart,