def extension()

in src/redash_stmo/data_sources/health.py [0:0]


def extension(app=None):
    """A Redash extension to add datasource health status reporting."""

    # Override the default status API view with our extended view
    app.view_functions["%s.status_api" % routes.name] = stmo_status_api

    # Add a new endpoint with full health data
    add_resource(app, DataSourceHealthResource, "/status/data_sources/health.json")