class_docstr: Adds a brief summary with the rule triggered, author, description, and time
  
  To customize the behavior of this Publisher, it is recommended to subclass this and override
  parameters as necessary. For example, an implementation could override _GITHUB_REPO_URL with
  the URL appropriate for the organization using StreamAlert.
class_docstr_tok: ["Adds","a","brief","summary","with","the","rule","triggered",",","author",",","description",",","and","time","To","customize","the","behavior","of","this","Publisher",",","it","is","recommended","to","subclass","this","and","override","parameters","as","necessary",".","For","example",",","an","implementation","could","override","_GITHUB_REPO_URL","with","the","URL","appropriate","for","the","organization","using","StreamAlert","."]
docstr: When given the rule_name, returns a clickable link, if any
docstr_tok: ["When","given","the","rule_name",",","returns","a","clickable","link",",","if","any"]
code: def _title_url(cls, rule_name):
      """When given the rule_name, returns a clickable link, if any"""
  
      # It's actually super hard to generate a exact link to a file just from the rule_name,
      # because the rule/ directory files are not deployed with the publishers in the alert
      # processor.
      # Instead, we send them to Github with a formatted query string that is LIKELY to
      # find the correct file.
      #
      # If you do not want URLs to show up, simply override this method and return empty string.
      return "{}{}?{}".format(
          cls._GITHUB_REPO_URL,
          cls._SEARCH_PATH,
          urllib.parse.urlencode(
              {"q": "{} path:{}".format(rule_name, cls._RULES_PATH)}
          ),
      )
  
imports: import calendar
  import cgi
  import json
  import urllib.request, urllib.parse, urllib.error
  from streamalert.shared.publisher import AlertPublisher, Register
  from streamalert.shared.description import RuleDescriptionParser
label_desc: Use image node_id 5 for calling the Summary obj's underlying member method code with example usage: obj._title_url(cls, rule_name) and returns: str