From cb67004b2c9d1da02f7028c4b2ea7e2566016211 Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 15 Jun 2024 01:04:12 +0200 Subject: [PATCH] Added inputs to globalConfig --- .gitignore | 8 ++-- README.md | 4 +- detelete_old_clients_ds/globalConfig.json | 51 ++++++++++++++++++----- 3 files changed, 47 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 2b045cb..ef739d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -bin/* -lib/* -lib64 -include/* -pyvenv.cfg \ No newline at end of file +.venv +detelete_old_clients_ds/output/ +detelete_old_clients_ds/detelete_old_clients_ds-*.tar.gz \ No newline at end of file diff --git a/README.md b/README.md index a4b5f95..f17f7ce 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # Splunk Add-on to delete old clients from Deployment Server - +Interesting Commands: +- Build Add-on: ucc-gen build --ta-version= +- Package Add-on:ucc-gen package -o . --path \ No newline at end of file diff --git a/detelete_old_clients_ds/globalConfig.json b/detelete_old_clients_ds/globalConfig.json index 02a0210..071dce7 100644 --- a/detelete_old_clients_ds/globalConfig.json +++ b/detelete_old_clients_ds/globalConfig.json @@ -52,13 +52,6 @@ "help": "Password", "required": true, "encrypted": true - }, - { - "type": "text", - "label": "Deployment Server URL", - "field": "url", - "help": "URL of the DS instance", - "required": true } ], "title": "Accounts" @@ -70,6 +63,43 @@ "title": "Configuration", "description": "Set up your add-on" }, + "inputs": { + "title": "Inputs", + "description": "Manage your data inputs", + "services": [ + { + "name": "example_input_one", + "title": "Example Input", + "entity": [ + { + "type": "text", + "label": "Deployment Server URL", + "field": "url", + "help": "URL of the DS instance", + "required": true + }, + { + "type": "interval", + "field": "interval", + "label": "Interval", + "help": "Time interval of the data input, in seconds .", + "required": true + } + ] + } + ], + "table": { + "actions": [ + "edit", + "enable", + "delete", + "search", + "clone" + ], + "header": [], + "moreInfo": [] + } + }, "dashboard": { "panels": [ { @@ -81,8 +111,9 @@ "meta": { "name": "detelete_old_clients_ds", "restRoot": "detelete_old_clients_ds", - "version": "0.0.1", + "version": "0.0.0", "displayName": "DS Add-on Delete old clients", - "schemaVersion": "0.0.3" + "schemaVersion": "0.0.7", + "_uccVersion": "5.46.0" } -} \ No newline at end of file +}