anchor.diff:                                  form.settings-form(method='POST', action='/monitoring/settings', autocomplete='off')
                                       input(name='id', type='hidden', value=metric._id)
   
  -                                    if !metric.isDetail
  +                                    if !metric.is_detail
                                           .form-group.row
                                               label.col-xs-2.form-control-label= interval
                                               .col-xs-4
  -                                                input.form-control.form-control-sm(name='interval', type='text')
  +                                                input.form-control.form-control-sm(name='interval', type='text', value=1)
                                       .form-group.row
                                           .checkbox.col-xs-12
                                               label
                                                   input(name='active', type='checkbox')
                                                   | &nbsp;#{isActive}
  -                                    if !metric.isDetail
  +                                    if !metric.is_detail
                                           p.font-weight-bold= threshold.name
  +                                        .form-group.row
  +                                            .checkbox.col-xs-12
  +                                                label
  +                                                    input(name='threshold-enabled', type='checkbox')
  +                                                    | &nbsp;#{isActive}
                                           .form-group.row.form-inline
                                               label.col-xs-4.form-control-label= repeat
                                               .col-xs-4
  -                                                input.form-control.form-control-sm(name='repeat', type='text')
  +                                                input.form-control.form-control-sm(name='repeat', type='text', value=5)
                                           .form-group.row.form-inline
                                               label.col-xs-4.form-control-label= threshold.warning
                                               .col-xs-4
  -                                                input.form-control.form-control-sm(name='warning-value', type='text')
  +                                                input.form-control.form-control-sm(name='warning-value', type='text', value=70)
                                               .col-xs-4
                                                   select.form-control.form-select-sm(name='warning-measurement')
                                                       option(value='%') %
  
positive.code:                     } else if (result.ok) {
                          var $form = $(self).closest('.card').find('form');
  
                          $('input[name="active"]', $form).prop('checked', result.data.isActive);
                          $('input[name="interval"]', $form).val(result.data.interval);
                          $('input[name="repeat"]', $form).val(result.data.threshold.repeat);
                          $('input[name="warning-value"]', $form).val(result.data.threshold.warning.value);
  
negative.code:                     }
                  }
              };
  
              var id = $('input[name="id"]', $form).val();
              var serverId = $form.closest('.card').find('select[name="server"] > option:selected').val();
  