var input = JSON.parse(value);
if (typeof input.State.Health !== 'object' || typeof input.State.Health === 'undefined') {
  return 4;
}
  return (['starting', 'unhealthy', 'healthy', 'none'].indexOf(input.State.Health.Status) + 1);