Esempio n. 1
0
 public static YamlMachineHealthCheckPolicy FromModel(MachineHealthCheckPolicy model)
 {
     return(new YamlMachineHealthCheckPolicy(
                model.HealthCheckInterval.FromModel(),
                YamlMachineHealthCheckScriptPolicy.FromModel(model.TentacleEndpointHealthCheckPolicy),
                YamlMachineHealthCheckScriptPolicy.FromModel(model.SshEndpointHealthCheckPolicy)));
 }
Esempio n. 2
0
 private YamlMachineHealthCheckPolicy(string healthCheckInterval, YamlMachineHealthCheckScriptPolicy tentacleEndpoint, YamlMachineHealthCheckScriptPolicy sshEndpoint)
 {
     HealthCheckInterval = healthCheckInterval;
     TentacleEndpoint    = tentacleEndpoint;
     SshEndpoint         = sshEndpoint;
 }