mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-07-02 06:22:25 +00:00
first commit
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
from ._exposition import MetricsResource
|
||||
|
||||
__all__ = ['MetricsResource']
|
@ -0,0 +1,8 @@
|
||||
from twisted.internet import reactor
|
||||
from twisted.web.wsgi import WSGIResource
|
||||
|
||||
from .. import exposition, REGISTRY
|
||||
|
||||
MetricsResource = lambda registry=REGISTRY: WSGIResource(
|
||||
reactor, reactor.getThreadPool(), exposition.make_wsgi_app(registry)
|
||||
)
|
Reference in New Issue
Block a user