@@ -25,12 +25,16 @@ type agentAttributes struct {
25
25
26
26
// A mapping of attributes on the "coder_app" resource.
27
27
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"`
34
38
}
35
39
36
40
// A mapping of attributes on the "coder_metadata" resource.
@@ -225,11 +229,15 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
225
229
continue
226
230
}
227
231
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 ,
233
241
})
234
242
}
235
243
}
0 commit comments