code: def set_default_alarm_ranges(self, parameter, watch=None, warning=None,
                                   distress=None, critical=None, severe=None,
                                   min_violations=1):
          
          req = mdb_pb2.ChangeParameterRequest()
          req.action = mdb_pb2.ChangeParameterRequest.SET_DEFAULT_ALARMS
          if(watch or warning or distress or critical or severe):
              _add_alarms(req.defaultAlarm, watch, warning, distress, critical, severe, min_violations)
          
          url = '/mdb/{}/{}/parameters/{}'.format(
              self._instance, self._processor, parameter)
          response = self._client.post_proto(url, data=req.SerializeToString())
docs: Generate out-of-limit alarms for a parameter using the specified
          alarm ranges.
  
          This replaces any previous default alarms on this parameter.
  
          .. note::
  
              Contextual range sets take precedence over the default alarm
              ranges. See :meth:`set_alarm_range_sets` for setting contextual
              range sets.
  
          :param str parameter: Either a fully-qualified XTCE name or an alias
                                in the format ``NAMESPACE/NAME``.
          :param (float,float) watch: Range expressed as a tuple ``(lo, hi)``
                                  where lo and hi are assumed exclusive.
          :param (float,float) warning: Range expressed as a tuple ``(lo, hi)``
                                    where lo and hi are assumed exclusive.
          :param (float,float) distress: Range expressed as a tuple ``(lo, hi)``
                                     where lo and hi are assumed exclusive.
          :param (float,float) critical: Range expressed as a tuple ``(lo, hi)``
                                     where lo and hi are assumed exclusive.
          :param (float,float) severe: Range expressed as a tuple ``(lo, hi)``
                                   where lo and hi are assumed exclusive.
          :param int min_violations: Minimum violations before an alarm is
                                     generated.