"""
Autoscale REST endpoints having to do with administration of Otter.
"""
from otter.rest.metrics import OtterMetrics
from otter.rest.otterapp import OtterApp


class OtterAdmin(object):
    """
    OtterAdmin is a RESTful interface to manage and otter.
    """
    app = OtterApp()

    def __init__(self, store):
        """
        Initialize OtterAdmin.
        """
        self.store = store

    @app.route('/', methods=['GET'])
    def root(self, request):
        """
        Root response for OtterAdmin.
        """
        return ''

    @app.route('/metrics/', branch=True)
    def metrics(self, request):
        """
        Routes related to metrics are delegated to OtterMetrics.
        """
        return OtterMetrics(self.store).app.resource()

565689c051fd31cedcb720f3e23fd7972859b55b
<mask token>


class OtterAdmin(object):
    <mask token>
    <mask token>

    def __init__(self, store):
        """
        Initialize OtterAdmin.
        """
        self.store = store

    @app.route('/', methods=['GET'])
    def root(self, request):
        """
        Root response for OtterAdmin.
        """
        return ''

    @app.route('/metrics/', branch=True)
    def metrics(self, request):
        """
        Routes related to metrics are delegated to OtterMetrics.
        """
        return OtterMetrics(self.store).app.resource()

<mask token>


class OtterAdmin(object):
    <mask token>
    app = OtterApp()

    def __init__(self, store):
        """
        Initialize OtterAdmin.
        """
        self.store = store

    @app.route('/', methods=['GET'])
    def root(self, request):
        """
        Root response for OtterAdmin.
        """
        return ''

    @app.route('/metrics/', branch=True)
    def metrics(self, request):
        """
        Routes related to metrics are delegated to OtterMetrics.
        """
        return OtterMetrics(self.store).app.resource()

<mask token>


class OtterAdmin(object):
    """
    OtterAdmin is a RESTful interface to manage and otter.
    """
    app = OtterApp()

    def __init__(self, store):
        """
        Initialize OtterAdmin.
        """
        self.store = store

    @app.route('/', methods=['GET'])
    def root(self, request):
        """
        Root response for OtterAdmin.
        """
        return ''

    @app.route('/metrics/', branch=True)
    def metrics(self, request):
        """
        Routes related to metrics are delegated to OtterMetrics.
        """
        return OtterMetrics(self.store).app.resource()

<mask token>
from otter.rest.metrics import OtterMetrics
from otter.rest.otterapp import OtterApp


class OtterAdmin(object):
    """
    OtterAdmin is a RESTful interface to manage and otter.
    """
    app = OtterApp()

    def __init__(self, store):
        """
        Initialize OtterAdmin.
        """
        self.store = store

    @app.route('/', methods=['GET'])
    def root(self, request):
        """
        Root response for OtterAdmin.
        """
        return ''

    @app.route('/metrics/', branch=True)
    def metrics(self, request):
        """
        Routes related to metrics are delegated to OtterMetrics.
        """
        return OtterMetrics(self.store).app.resource()

"""
Autoscale REST endpoints having to do with administration of Otter.
"""
from otter.rest.metrics import OtterMetrics
from otter.rest.otterapp import OtterApp


class OtterAdmin(object):
    """
    OtterAdmin is a RESTful interface to manage and otter.
    """
    app = OtterApp()

    def __init__(self, store):
        """
        Initialize OtterAdmin.
        """
        self.store = store

    @app.route('/', methods=['GET'])
    def root(self, request):
        """
        Root response for OtterAdmin.
        """
        return ''

    @app.route('/metrics/', branch=True)
    def metrics(self, request):
        """
        Routes related to metrics are delegated to OtterMetrics.
        """
        return OtterMetrics(self.store).app.resource()
