From a81e38696bbf3ad533bb8864c9c0a17b04e63624 Mon Sep 17 00:00:00 2001 From: Jonathan Creasy Date: Thu, 12 Dec 2024 10:58:21 -0500 Subject: [PATCH] Added NormalizeTagPlugin support merges #1525 --- Makefile.am | 1 + src/normalize/NormalizePlugin.java | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/normalize/NormalizePlugin.java diff --git a/Makefile.am b/Makefile.am index 9c673c902..f046853a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -114,6 +114,7 @@ tsdb_SRC := \ src/meta/TSMeta.java \ src/meta/TSUIDQuery.java \ src/meta/UIDMeta.java \ + src/normalize/NormalizePlugin.java \ src/query/QueryUtil.java \ src/query/QueryLimitOverride.java \ src/query/expression/Absolute.java \ diff --git a/src/normalize/NormalizePlugin.java b/src/normalize/NormalizePlugin.java new file mode 100644 index 000000000..6eae2bd9b --- /dev/null +++ b/src/normalize/NormalizePlugin.java @@ -0,0 +1,21 @@ +package net.opentsdb.normalize; + +import com.stumbleupon.async.Deferred; +import net.opentsdb.core.TSDB; +import net.opentsdb.stats.StatsCollector; + +import java.util.Map; + +public abstract class NormalizePlugin { + + public abstract void initialize(final TSDB tsdb); + + public abstract Deferred shutdown(); + + public abstract String version(); + + public abstract void collectStats(final StatsCollector collector); + + public abstract Map normalizeTags(Map tags); + +} \ No newline at end of file