Commit f0f3d896 authored by MaksimSmile13's avatar MaksimSmile13
Browse files

Fix ddash interval

parent 9c5dbfc8
Pipeline #33003 passed with stages
in 13 minutes and 46 seconds
......@@ -257,5 +257,6 @@ class MODashboard(JinjaDashboard):
"extra_vars": self.extra_vars,
"selected_types": self.object_data["selected_types"],
"ping_interval": self.object.object_profile.ping_interval,
"discovery_interval": self.object.object_profile.periodic_discovery_interval,
"discovery_interval": "%ss"
% int(self.object.object_profile.periodic_discovery_interval / 2),
}
......@@ -112,5 +112,6 @@ class MOCardDashboard(MODashboard):
"bi_id": self.object.bi_id,
"pool": self.object.pool.name,
"ping_interval": self.object.object_profile.ping_interval,
"discovery_interval": self.object.object_profile.periodic_discovery_interval,
"discovery_interval": "%ss"
% int(self.object.object_profile.periodic_discovery_interval / 2),
}
......@@ -108,5 +108,6 @@ class DVBCDashboard(MODashboard):
"extra_vars": self.extra_vars,
"selected_types": defaultdict(list),
"ping_interval": self.object.object_profile.ping_interval,
"discovery_interval": self.object.object_profile.periodic_discovery_interval,
"discovery_interval": "%ss"
% int(self.object.object_profile.periodic_discovery_interval / 2),
}
......@@ -135,5 +135,6 @@ class SensorControllerDashboard(MODashboard):
"extra_vars": self.extra_vars,
"selected_types": self.object_data["selected_types"],
"ping_interval": self.object.object_profile.ping_interval,
"discovery_interval": self.object.object_profile.periodic_discovery_interval,
"discovery_interval": "%ss"
% int(self.object.object_profile.periodic_discovery_interval / 2),
}
......@@ -72,7 +72,8 @@
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
"dateTimeColDataType": "ts",
"interval": "$discovery_interval"
}
],
"timeFrom": null,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment