Skip to content

Instantly share code, notes, and snippets.

@mgood
Created May 16, 2012 22:52
Show Gist options
  • Save mgood/2714694 to your computer and use it in GitHub Desktop.
Save mgood/2714694 to your computer and use it in GitHub Desktop.
Sentry Script interface
class Script(Interface):
def __init__(self, name, path=None):
self.name = name
self.path = path
def get_hash(self):
return [self.name]
def serialize(self):
return {
'name': self.name,
'path': self.path,
}
def get_search_context(self, event):
return {
'filters': {
'script': [self.name],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment