Skip to content

Commit 658c6dc

Browse files
committed
add proto
1 parent 02af365 commit 658c6dc

File tree

3 files changed

+195
-139
lines changed

3 files changed

+195
-139
lines changed

provisioner/terraform/resources.go

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ type agentAttributes struct {
2525

2626
// A mapping of attributes on the "coder_app" resource.
2727
type agentAppAttributes struct {
28-
AgentID string `mapstructure:"agent_id"`
29-
Name string `mapstructure:"name"`
30-
Icon string `mapstructure:"icon"`
31-
URL string `mapstructure:"url"`
32-
Command string `mapstructure:"command"`
33-
RelativePath bool `mapstructure:"relative_path"`
28+
AgentID string `mapstructure:"agent_id"`
29+
Name string `mapstructure:"name"`
30+
Icon string `mapstructure:"icon"`
31+
URL string `mapstructure:"url"`
32+
Command string `mapstructure:"command"`
33+
RelativePath bool `mapstructure:"relative_path"`
34+
HealthcheckEnabled bool `mapstructure:"healthcheck_enabled"`
35+
HealthcheckURL string `mapstructure:"healthcheck_url"`
36+
HealthcheckInterval int32 `mapstructure:"healthcheck_interval"`
37+
HealthcheckThreshold int32 `mapstructure:"healthcheck_threshold"`
3438
}
3539

3640
// A mapping of attributes on the "coder_metadata" resource.
@@ -225,11 +229,15 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
225229
continue
226230
}
227231
agent.Apps = append(agent.Apps, &proto.App{
228-
Name: attrs.Name,
229-
Command: attrs.Command,
230-
Url: attrs.URL,
231-
Icon: attrs.Icon,
232-
RelativePath: attrs.RelativePath,
232+
Name: attrs.Name,
233+
Command: attrs.Command,
234+
Url: attrs.URL,
235+
Icon: attrs.Icon,
236+
RelativePath: attrs.RelativePath,
237+
HealthcheckEnabled: attrs.HealthcheckEnabled,
238+
HealthcheckUrl: attrs.HealthcheckURL,
239+
HealthcheckInterval: attrs.HealthcheckInterval,
240+
HealthcheckThreshold: attrs.HealthcheckThreshold,
233241
})
234242
}
235243
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy