docs: def create_event(self, last_state, state, clean_server_name, replset_name):
          """Create an event with a message describing the replication
              state of a mongo node"""
  
          status = self.get_state_description(state)
          short_status = self.get_state_name(state)
          last_short_status = self.get_state_name(last_state)
          hostname = self.hostname_for_event(clean_server_name)
          msg_title = "%s is %s for %s" % (hostname, short_status, replset_name)
          msg = "MongoDB %s (%s) just reported as %s (%s) for %s; it was %s before."
          msg = msg % (hostname, clean_server_name, status, short_status, replset_name, last_short_status)
  
          self.event(
              {
                  'timestamp': int(time.time()),
                  'source_type_name': self.SOURCE_TYPE_NAME,
                  'msg_title': msg_title,
                  'msg_text': msg,
                  'host': hostname,
                  'tags': [
                      'action:mongo_replset_member_status_change',
                      'member_status:' + short_status,
                      'previous_member_status:' + last_short_status,
                      'replset:' + replset_name,
                  ],
              }
          )