docs: def function(self, new_function):
          """Set the MonitorState of this Monitor."""
          self._client.change_state(
              self._monitor_url,
              {'Monitor[Function]': new_function.value})