Add the generated at field

Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
Mikolaj Pawlikowski
2021-03-12 13:27:19 +00:00
parent f93526c58f
commit 1310f9b12b

View File

@@ -59,7 +59,9 @@ func CheckNeighboursNeighbours(ctx context.Context) *models.CheckAllResults {
func CheckCluster(ctx context.Context) *models.ClusterHealthResults {
start := time.Now()
response := models.ClusterHealthResults{}
response := models.ClusterHealthResults{
GeneratedAt: strfmt.DateTime(start),
}
expectedNodes := []string{}
// get the response we serve for check_all