Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.tools.error_reports.plugins

"""This module describes the abstract interface for :class:`InstrumentPlugin`.

These are responsible for collecting and formatting a coherent set of metrics.
"""
from abc import (
    ABCMeta,
    abstractmethod
)

import six


[docs]@six.add_metaclass(ABCMeta) class ErrorPlugin(object): """Describes how to send bug reports to various locations.""" @property @abstractmethod def plugin_type(self): """Short string providing labelling this plugin """
[docs] def submit_report(self, dataset, job, tool, user_submission=False, **kwargs): """Submit the bug report and render a string to be displayed to the user. """ return None