from . import Plugin


class SwiftObjectAuditorPlugin(Plugin):
#  DRAFT PLUGIN

    targets = [
        {
            'match': '^stats\.timers\.(?P<server>[^\.]+)\.object-auditor\.(?P<http_method>[^\.]+)\.timing\.(?P<what>[^\.]+)$',
            'target_type': 'timer'
        },
        {
            'match': '^stats_counts\.(?P<server>[^\.]+)\.object-server\.?(?P<http_method>[^\.]*)\.(?P<what>async_pendings|errors|timeouts)$',
            'state': 'stacked',
            'target_type': 'count'
        },
        {
            'match': '^stats\.(?P<server>[^\.]+)\.object-server\.?(?P<http_method>[^\.]*)\.(?P<what>async_pendings|errors|timeouts)$',
            'target_type': 'rate'
        }
    ]

# vim: ts=4 et sw=4:

add draft for swift object auditor plugin