diff --git a/server/webhooks/host_status.go b/server/webhooks/host_status.go index 737e9d503c..1824d91b9e 100644 --- a/server/webhooks/host_status.go +++ b/server/webhooks/host_status.go @@ -34,7 +34,7 @@ func TriggerHostStatusWebhook( message := fmt.Sprintf( "More than %.2f%% of your hosts have not checked into Fleet for more than %d days. "+ - "You’ve been sent this message because the Host status webhook is enabled in your Fleet instance.", + "You've been sent this message because the Host status webhook is enabled in your Fleet instance.", percentUnseen, appConfig.WebhookSettings.HostStatusWebhook.DaysCount, ) payload := map[string]interface{}{ diff --git a/server/webhooks/host_status_test.go b/server/webhooks/host_status_test.go index 660ab568ae..ff7c1a19e6 100644 --- a/server/webhooks/host_status_test.go +++ b/server/webhooks/host_status_test.go @@ -45,7 +45,7 @@ func TestTriggerHostStatusWebhook(t *testing.T) { require.NoError(t, TriggerHostStatusWebhook(context.Background(), ds, kitlog.NewNopLogger(), ac)) assert.Equal( t, - `{"data":{"days_unseen":2,"total_hosts":10,"unseen_hosts":6},"text":"More than 60.00% of your hosts have not checked into Fleet for more than 2 days. You’ve been sent this message because the Host status webhook is enabled in your Fleet instance."}`, + `{"data":{"days_unseen":2,"total_hosts":10,"unseen_hosts":6},"text":"More than 60.00% of your hosts have not checked into Fleet for more than 2 days. You've been sent this message because the Host status webhook is enabled in your Fleet instance."}`, requestBody, ) requestBody = ""