From fb02b8dc8d82b8b0daf5e2cb265cdb3cc1e4d6a0 Mon Sep 17 00:00:00 2001 From: icurfer Date: Sat, 22 Feb 2025 03:05:50 +0900 Subject: [PATCH] telemetry dashboard add --- butler/templates/butler/test.html | 2 +- butler/urls.py | 2 +- butler_ddochi/settings.py | 7 ++++--- butler_ddochi/urls.py | 1 + components/templates/components/_sidebar.html | 2 ++ .../components/_sidebar_ansible.html | 2 +- .../components/_sidebar_tm_dashboard.html | 8 ++++++++ telemetry_dashboard/__init__.py | 0 telemetry_dashboard/admin.py | 3 +++ telemetry_dashboard/apps.py | 6 ++++++ telemetry_dashboard/migrations/__init__.py | 0 telemetry_dashboard/models.py | 3 +++ .../telemetry_dashboard/grafana.html | 19 +++++++++++++++++++ telemetry_dashboard/tests.py | 3 +++ telemetry_dashboard/urls.py | 8 ++++++++ telemetry_dashboard/views.py | 11 +++++++++++ version | 2 +- 17 files changed, 72 insertions(+), 7 deletions(-) create mode 100644 components/templates/components/_sidebar_tm_dashboard.html create mode 100644 telemetry_dashboard/__init__.py create mode 100644 telemetry_dashboard/admin.py create mode 100644 telemetry_dashboard/apps.py create mode 100644 telemetry_dashboard/migrations/__init__.py create mode 100644 telemetry_dashboard/models.py create mode 100644 telemetry_dashboard/templates/telemetry_dashboard/grafana.html create mode 100644 telemetry_dashboard/tests.py create mode 100644 telemetry_dashboard/urls.py create mode 100644 telemetry_dashboard/views.py diff --git a/butler/templates/butler/test.html b/butler/templates/butler/test.html index 5e8ddd3..2b0a6a5 100644 --- a/butler/templates/butler/test.html +++ b/butler/templates/butler/test.html @@ -8,7 +8,7 @@
+
+ +{% endblock %} \ No newline at end of file diff --git a/telemetry_dashboard/tests.py b/telemetry_dashboard/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/telemetry_dashboard/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/telemetry_dashboard/urls.py b/telemetry_dashboard/urls.py new file mode 100644 index 0000000..590f22b --- /dev/null +++ b/telemetry_dashboard/urls.py @@ -0,0 +1,8 @@ +from django.urls import path +from . import views + +app_name = 'tm_dsbd' + +urlpatterns = [ + path('grafana/', views.grafana_view, name='grafana'), +] diff --git a/telemetry_dashboard/views.py b/telemetry_dashboard/views.py new file mode 100644 index 0000000..69061b6 --- /dev/null +++ b/telemetry_dashboard/views.py @@ -0,0 +1,11 @@ +from django.shortcuts import render, redirect, get_object_or_404 +from django.contrib.auth.decorators import login_required +from django.views.generic import TemplateView +# from django.db.models import Q + + +def grafana_view(request): + return render( + request, + "telemetry_dashboard/grafana.html", + ) diff --git a/version b/version index 451a93c..8a64d86 100644 --- a/version +++ b/version @@ -1 +1 @@ -dev_0.0.29 \ No newline at end of file +dev_0.0.30 \ No newline at end of file