You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`command` (String) A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either "command" or "url" may be specified, but not both.
66
+
-`healthcheck` (Block Set) HTTP health checking to determine the application readiness. (see [below for nested schema](#nestedblock--healthcheck))
61
67
-`icon` (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icons. Use a built-in icon with `data.coder_workspace.me.access_url + "/icons/<path>"`.
62
68
-`name` (String) A display name to identify the app.
63
69
-`relative_path` (Boolean) Specifies whether the URL will be accessed via a relative path or wildcard. Use if wildcard routing is unavailable.
-`interval` (Number) Duration in seconds to wait between healthcheck requests.
82
+
-`threshold` (Number) Number of consecutive heathcheck failures before returning an unhealthy status.
83
+
-`url` (String) HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before healthcheck.interval seconds.
Description: "HTTP health checking to determine the application readiness.",
379
+
ForceNew: true,
380
+
Optional: true,
381
+
ConflictsWith: []string{"command"},
382
+
Elem: &schema.Resource{
383
+
Schema: map[string]*schema.Schema{
384
+
"url": {
385
+
Type: schema.TypeString,
386
+
Description: "HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before healthcheck.interval seconds.",
387
+
ForceNew: true,
388
+
Required: true,
389
+
},
390
+
"interval": {
391
+
Type: schema.TypeInt,
392
+
Description: "Duration in seconds to wait between healthcheck requests.",
393
+
ForceNew: true,
394
+
Required: true,
395
+
},
396
+
"threshold": {
397
+
Type: schema.TypeInt,
398
+
Description: "Number of consecutive heathcheck failures before returning an unhealthy status.",
0 commit comments