summaryrefslogtreecommitdiffstats
path: root/app/api/responders/resource/monitoring_config_templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/api/responders/resource/monitoring_config_templates.py')
-rw-r--r--app/api/responders/resource/monitoring_config_templates.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/app/api/responders/resource/monitoring_config_templates.py b/app/api/responders/resource/monitoring_config_templates.py
index 8980cc9..3162168 100644
--- a/app/api/responders/resource/monitoring_config_templates.py
+++ b/app/api/responders/resource/monitoring_config_templates.py
@@ -13,15 +13,14 @@ from bson.objectid import ObjectId
class MonitoringConfigTemplates(ResponderBase):
- def __init__(self):
- super().__init__()
- self.ID = "_id"
- self.COLLECTION = "monitoring_config_templates"
- self.PROJECTION = {
- self.ID: True,
- "side": True,
- "type": True
- }
+
+ COLLECTION = "monitoring_config_templates"
+ ID = "_id"
+ PROJECTION = {
+ ID: True,
+ "side": True,
+ "type": True
+ }
def on_get(self, req, resp):
self.log.debug("Getting monitoring config template")