From 9369b1914c982e3740527a3f597a2597ce11baf9 2016-08-22 11:21:52 From: Marcin Lulek Date: 2016-08-22 11:21:52 Subject: [PATCH] metrics: rename RequestMetric module to Metric --- diff --git a/backend/README.md b/backend/README.md index 2ca1217..f6112f8 100644 --- a/backend/README.md +++ b/backend/README.md @@ -33,7 +33,7 @@ To run celery beats scheduling: celery beat -A appenlight.celery --ini=development.ini -You should also run the channelstream websocket server for real-time notifications +You should also run the `channelstream websocket server for real-time notifications channelstream -i filename.ini diff --git a/backend/src/appenlight/celery/tasks.py b/backend/src/appenlight/celery/tasks.py index 828428b..22e712a 100644 --- a/backend/src/appenlight/celery/tasks.py +++ b/backend/src/appenlight/celery/tasks.py @@ -35,7 +35,7 @@ from appenlight.models.report_group import ReportGroup from appenlight.models import DBSession, Datastores from appenlight.models.report import Report from appenlight.models.log import Log -from appenlight.models.request_metric import Metric +from appenlight.models.metric import Metric from appenlight.models.event import Event from appenlight.models.services.application import ApplicationService diff --git a/backend/src/appenlight/models/__init__.py b/backend/src/appenlight/models/__init__.py index 133ccc1..b694184 100644 --- a/backend/src/appenlight/models/__init__.py +++ b/backend/src/appenlight/models/__init__.py @@ -106,7 +106,7 @@ from appenlight.models.application import Application from appenlight.models.user import User from appenlight.models.alert_channel import AlertChannel from appenlight.models.alert_channel_action import AlertChannelAction -from appenlight.models.request_metric import Metric +from appenlight.models.metric import Metric from appenlight.models.application_postprocess_conf import \ ApplicationPostprocessConf from appenlight.models.auth_token import AuthToken diff --git a/backend/src/appenlight/models/request_metric.py b/backend/src/appenlight/models/metric.py similarity index 100% rename from backend/src/appenlight/models/request_metric.py rename to backend/src/appenlight/models/metric.py diff --git a/backend/src/appenlight/scripts/reindex_elasticsearch.py b/backend/src/appenlight/scripts/reindex_elasticsearch.py index 39a4462..eb6a708 100644 --- a/backend/src/appenlight/scripts/reindex_elasticsearch.py +++ b/backend/src/appenlight/scripts/reindex_elasticsearch.py @@ -38,7 +38,7 @@ from appenlight.models.report import Report from appenlight.models.report_stat import ReportStat from appenlight.models.log import Log from appenlight.models.slow_call import SlowCall -from appenlight.models.request_metric import Metric +from appenlight.models.metric import Metric log = logging.getLogger(__name__) diff --git a/backend/src/appenlight/tests/test_unit.py b/backend/src/appenlight/tests/test_unit.py index 025d52b..50c9aaa 100644 --- a/backend/src/appenlight/tests/test_unit.py +++ b/backend/src/appenlight/tests/test_unit.py @@ -799,7 +799,7 @@ class TestAPIGeneralMetricsView(object): def test_single_json_payload(self): import appenlight.tests.payload_examples as payload_examples - from appenlight.models.request_metric import Metric + from appenlight.models.metric import Metric from appenlight.views.api import general_metrics_create from appenlight.models.services.application import ApplicationService route = mock.Mock() @@ -818,7 +818,7 @@ class TestAPIGeneralMetricsView(object): def test_multiple_json_payload(self): import appenlight.tests.payload_examples as payload_examples - from appenlight.models.request_metric import Metric + from appenlight.models.metric import Metric from appenlight.views.api import general_metrics_create from appenlight.models.services.application import ApplicationService route = mock.Mock()