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