IBM / page-lab

PageLab enables web performance, accessibility, SEO, etc testing at scale.
Apache License 2.0
19 stars 10 forks source link

Custom defined KPI targets #69

Open ecumike opened 5 years ago

ecumike commented 5 years ago

Currently, from the original implementation, there are hardcoded 'realistic' KPI targets in the dashboard view reports_dashboard:

        'fcp': {
            'fast': 1.6,
            'slow': 2.4
        },
        'fmp': {
            'fast': 2,
            'slow': 3
        },
        'tti': {
            'fast': 3,
            'slow': 4.5
        },

These drive the 3 pie charts on the dashboard as to what %s of URLs are in each of these ("average" is the # range between "fast" and "slow").

Ideally these should be a model to allow each implementation to set their own targets, as well, it will allow these to easily be changed without having to redeploy your app.