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

This commit is contained in:
TwinProduction
2021-07-11 22:22:21 -04:00
committed by Chris
parent 7aed826d65
commit 1498b6d8a2
5 changed files with 16 additions and 14 deletions

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,