mirror of
https://github.com/sprockets/sprockets.mixins.metrics.git
synced 2024-11-24 19:29:51 +00:00
23 lines
606 B
ReStructuredText
23 lines
606 B
ReStructuredText
|
Reference Documentation
|
||
|
=======================
|
||
|
This library defines mix-ins that record application metrics. Each mix-in
|
||
|
implements the same interface:
|
||
|
|
||
|
.. class:: sprockets.mixins.metrics.Mixin
|
||
|
|
||
|
.. data:: SETTINGS_KEY
|
||
|
|
||
|
Key in ``self.application.settings`` that contains this particular
|
||
|
mix-in's configuration data.
|
||
|
|
||
|
.. method:: record_timing(path, milliseconds)
|
||
|
|
||
|
:param str path: timing path to record
|
||
|
:param float milliseconds: number of milliseconds to record
|
||
|
|
||
|
|
||
|
Statsd Implementation
|
||
|
---------------------
|
||
|
.. autoclass:: sprockets.mixins.metrics.StatsdMixin
|
||
|
:members:
|