diff --git a/services/report_status.go b/services/report_status.go index 896c800..34940ec 100644 --- a/services/report_status.go +++ b/services/report_status.go @@ -72,9 +72,9 @@ func statusResponseWithError(flags *config.Flags, dockerInfo interface{}, err er Timestamp: time.Now(), Error: err.Error(), Payload: map[string]interface{}{ - "Version": version.GetVersion(), - "Docker": dockerInfo, - "Config": flags, + "Version": version.GetVersion(), + "SystemDocker": dockerInfo, + "Config": flags, }, } } @@ -107,10 +107,10 @@ func GetStatusAndMetrics(ctx context.Context, logger log.Logger, flags *config.F Status: "OK", Timestamp: time.Now(), Payload: map[string]interface{}{ - "Version": version.GetVersion(), - "Docker": dockerInfo, - "Services": services, - "Config": flags, + "Version": version.GetVersion(), + "SystemDocker": dockerInfo, + "Services": services, + "Config": flags, }, } } diff --git a/services/report_status_test.go b/services/report_status_test.go index ee4273d..929d498 100644 --- a/services/report_status_test.go +++ b/services/report_status_test.go @@ -24,7 +24,7 @@ func TestDockerVersion(t *testing.T) { require.Regexp(t, "RAM.*CPU.*EFSAccess.*", status.Status) - version := status.Payload["Docker"] + version := status.Payload["SystemDocker"] require.NotNil(t, version) raw, _ := json.MarshalIndent(status, "", " ")