From 5e7d60c88ef0aa62f440ec54716549ab6d233289 Mon Sep 17 00:00:00 2001 From: Sebastian Henschel Date: Wed, 8 Mar 2017 13:19:07 +0100 Subject: [PATCH] Added raw version of metrics #14 --- apimanager/apimanager/settings.py | 1 + apimanager/apimanager/urls.py | 1 + apimanager/base/templates/base.html | 6 +- apimanager/metrics/__init__.py | 0 apimanager/metrics/apps.py | 12 ++ .../metrics/static/metrics/css/metrics.css | 15 ++ .../metrics/static/metrics/js/metrics.js | 2 + .../metrics/templates/metrics/index.html | 166 ++++++++++++++++++ apimanager/metrics/urls.py | 14 ++ apimanager/metrics/views.py | 56 ++++++ 10 files changed, 271 insertions(+), 2 deletions(-) create mode 100644 apimanager/metrics/__init__.py create mode 100644 apimanager/metrics/apps.py create mode 100644 apimanager/metrics/static/metrics/css/metrics.css create mode 100644 apimanager/metrics/static/metrics/js/metrics.js create mode 100644 apimanager/metrics/templates/metrics/index.html create mode 100644 apimanager/metrics/urls.py create mode 100644 apimanager/metrics/views.py diff --git a/apimanager/apimanager/settings.py b/apimanager/apimanager/settings.py index 3c463c73..2331e4a8 100644 --- a/apimanager/apimanager/settings.py +++ b/apimanager/apimanager/settings.py @@ -48,6 +48,7 @@ 'oauth', 'consumers', 'users', + 'metrics', #'api_calls', #'api_config', ] diff --git a/apimanager/apimanager/urls.py b/apimanager/apimanager/urls.py index 3da51c82..ddec988f 100644 --- a/apimanager/apimanager/urls.py +++ b/apimanager/apimanager/urls.py @@ -13,6 +13,7 @@ url(r'^oauth/', include('oauth.urls')), url(r'^consumers/', include('consumers.urls')), url(r'^users/', include('users.urls')), + url(r'^metrics/', include('metrics.urls')), #url(r'^api_calls/', include('api_calls.urls')), #url(r'^api_config/', include('api_config.urls')), ] diff --git a/apimanager/base/templates/base.html b/apimanager/base/templates/base.html index b8b31261..4d786296 100644 --- a/apimanager/base/templates/base.html +++ b/apimanager/base/templates/base.html @@ -28,9 +28,11 @@