{{ define "settings" }}

Configuration

Worker groups are used to distribute the hook to specific workers.

Schedule is a cron expression that defines when the hook should be executed.
You can also use @every [interval] where interval is a duration like 5m, 1h, 60s. Or use @hourly, @daily, @weekly, @monthly, @yearly.

Script is what determines the status of a service. You can read more about it on k6 documentation.

State {{ if eq .Hook.State "ACTIVE" }} ACTIVE {{ else if eq .Hook.State "PAUSED" }} PAUSED {{ end }}

Pausing the hook will stop it from executing. This can be useful in cases of expected downtime. Or when the hook is not needed anymore.

{{ if eq .Hook.State "ACTIVE" }} Pause {{ else if eq .Hook.State "PAUSED" }} Resume {{ end }}

Danger Zone

Permanently delete this hook.

Delete
{{ range .History }} {{ if eq .Status "Running" }} {{ else }} {{ end }} {{ end }}
History

Last 10 executions of hook script.

Hook ID Status Started At Ended At Duration Note
{{ .HookId }} {{ .Status }}... {{ .StartTime.Format "2006-01-02 15:04:05" }}
{{ .HookId }} {{ .Status }} {{ .WorkerGroupName }} {{ .StartTime.Format "2006-01-02 15:04:05" }} {{ .EndTime.Format "2006-01-02 15:04:05" }} {{ DurationRoundMillisecond .Duration }} {{ .Note }}
{{ end }}