docs: def set_field(self, name, value):
          """Set the value of a field in the measurement.
  
          :param str name: The name of the field to set the value for
          :param int|float|bool|str value: The value of the field
          :raises: ValueError
  
          """
          if not any([isinstance(value, t) for t in {int, float, bool, str}]):
              LOGGER.debug('Invalid field value: %r', value)
              raise ValueError('Value must be a str, bool, integer, or float')
          self.fields[name] = value