summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-apinger/root/usr/share
diff options
context:
space:
mode:
authorJaymin Patel <jem.patel@gmail.com>2022-07-16 18:42:47 +0530
committerJaymin Patel <jem.patel@gmail.com>2022-08-01 02:24:52 +0530
commit6c151fcddbabc0fcdd9de8c5088153e84f5b0ccd (patch)
treeb2a031eb04b09fc5c36c50231dd16b0aa4d4110d /applications/luci-app-apinger/root/usr/share
parentb0b9a34f8b75f9c2c91cb6a4badcc4e8e4122821 (diff)
luci-app-apinger: Add LuCI for Apinger
LuCI Support for Apinger Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
Diffstat (limited to 'applications/luci-app-apinger/root/usr/share')
-rw-r--r--applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json73
-rw-r--r--applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json19
2 files changed, 92 insertions, 0 deletions
diff --git a/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json b/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json
new file mode 100644
index 0000000000..4b76d133f5
--- /dev/null
+++ b/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json
@@ -0,0 +1,73 @@
+{
+ "admin/services/apinger": {
+ "title": "Apinger",
+ "order": 90,
+ "action": {
+ "type": "alias",
+ "path": "admin/services/apinger/overview"
+ }
+ },
+
+ "admin/services/apinger/overview": {
+ "title": "Overview",
+ "order": 10,
+ "action": {
+ "type": "view",
+ "path": "apinger/overview"
+ }
+ },
+
+ "admin/services/apinger/graphs": {
+ "title": "Graphs",
+ "order": 11,
+ "action": {
+ "type": "view",
+ "path": "apinger/graphs"
+ }
+ },
+
+ "admin/services/apinger/interfaces": {
+ "title": "Interfaces",
+ "order": 19,
+ "action": {
+ "type": "view",
+ "path": "apinger/interfaces"
+ }
+ },
+
+ "admin/services/apinger/alarm_down": {
+ "title": "Alarm Down",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "apinger/alarm_down"
+ }
+ },
+
+ "admin/services/apinger/alarm_delay": {
+ "title": "Alarm Delay",
+ "order": 30,
+ "action": {
+ "type": "view",
+ "path": "apinger/alarm_delay"
+ }
+ },
+
+ "admin/services/apinger/alarm_loss": {
+ "title": "Alarm loss",
+ "order": 40,
+ "action": {
+ "type": "view",
+ "path": "apinger/alarm_loss"
+ }
+ },
+
+ "admin/services/apinger/targets": {
+ "title": "Targets",
+ "order": 90,
+ "action": {
+ "type": "view",
+ "path": "apinger/targets"
+ }
+ }
+}
diff --git a/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json b/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json
new file mode 100644
index 0000000000..69066081e2
--- /dev/null
+++ b/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json
@@ -0,0 +1,19 @@
+{
+ "luci-app-apinger" : {
+ "description" : "Grant access to LuCI app Apinger",
+ "read" : {
+ "ubus" : {
+ "apinger" : [ "*" ],
+ "file": [ "stat" ],
+ "service": [ "list" ]
+ },
+ "uci": [ "apinger" ]
+ },
+ "write" : {
+ "ubus" : {
+ "apinger" : [ "*" ]
+ },
+ "uci": [ "apinger" ]
+ }
+ }
+}