This is an automated email from the ASF dual-hosted git repository.

shuber pushed a commit to branch UNOMI-877
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/UNOMI-877 by this push:
     new e8f2a8e0b Add clusterNode mapping definition for Elasticsearch.
e8f2a8e0b is described below

commit e8f2a8e0b3872e56fee959e7d25585834c8b1fb7
Author: Serge Huber <[email protected]>
AuthorDate: Mon Aug 25 13:12:20 2025 +0200

    Add clusterNode mapping definition for Elasticsearch.
---
 .../META-INF/cxs/mappings/clusterNode.json         | 67 ++++++++++++++++++++++
 1 file changed, 67 insertions(+)

diff --git 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/clusterNode.json
 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/clusterNode.json
new file mode 100644
index 000000000..e3cd2f76d
--- /dev/null
+++ 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/clusterNode.json
@@ -0,0 +1,67 @@
+{
+  "dynamic_templates": [
+    {
+      "all": {
+        "match": "*",
+        "match_mapping_type": "string",
+        "mapping": {
+          "type": "text",
+          "analyzer": "folding",
+          "fields": {
+            "keyword": {
+              "type": "keyword",
+              "ignore_above": 256
+            }
+          }
+        }
+      }
+    }
+  ],
+  "properties": {
+    "creationDate": {
+      "type": "date"
+    },
+    "lastModificationDate": {
+      "type": "date"
+    },
+    "lastSyncDate": {
+      "type": "date"
+    },
+    "cpuLoad": {
+      "type": "double"
+    },
+    "loadAverage": {
+      "type": "double"
+    },
+    "uptime": {
+      "type": "long"
+    },
+    "master": {
+      "type": "boolean"
+    },
+    "data": {
+      "type": "boolean"
+    },
+    "startTime": {
+      "type": "long"
+    },
+    "lastHeartbeat": {
+      "type": "long"
+    },
+    "serverInfo": {
+      "properties": {
+        "serverBuildDate": {
+          "type": "date"
+        },
+        "eventTypes": {
+          "type": "object",
+          "enabled": false
+        },
+        "capabilities": {
+          "type": "object",
+          "enabled": false
+        }
+      }
+    }
+  }
+}

Reply via email to