From bdb7468659de1e64dbabbc0604c79bbfa0bf1ccc Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Tue, 11 Jun 2024 17:23:08 +0200 Subject: [PATCH] feat: added index template for MonitoringDB --- .../MonitoringSystem/DB/MonitoringDB.json | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/DIRAC/MonitoringSystem/DB/MonitoringDB.json diff --git a/src/DIRAC/MonitoringSystem/DB/MonitoringDB.json b/src/DIRAC/MonitoringSystem/DB/MonitoringDB.json new file mode 100644 index 00000000000..7bec6641522 --- /dev/null +++ b/src/DIRAC/MonitoringSystem/DB/MonitoringDB.json @@ -0,0 +1,58 @@ +{ + "index_patterns": ["wmshistory_index_*"], + "settings": { + "number_of_shards": 1, + "number_of_replicas": 1 + }, + "mappings": { + "properties": { + "Status": { + "type": "keyword" + }, + "Site": { + "type": "keyword" + }, + "JobSplitType": { + "type": "keyword" + }, + "ApplicationStatus": { + "type": "keyword" + }, + "MinorSite": { + "type": "keyword" + }, + "User": { + "type": "keyword" + }, + "UserGroup": { + "type": "keyword" + }, + "JobGroup": { + "type": "keyword" + } + } + } +} +{ + "index_patterns": ["pilotshistory_index_*"], + "settings": { + "number_of_shards": 1, + "number_of_replicas": 1 + }, + "mappings": { + "properties": { + "GridSite": { + "type": "keyword" + }, + "GridType": { + "type": "keyword" + }, + "Status": { + "type": "keyword" + }, + "NumOfPilots": { + "type": "long" + } + } + } + } \ No newline at end of file