diff options
author | gjoranv <gv@verizonmedia.com> | 2023-01-30 17:04:59 +0100 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2023-01-30 17:04:59 +0100 |
commit | d54ca0ea46c80542c65980608eee55d4207aad62 (patch) | |
tree | 1c0324d0dfd281015a8360f34205a249bebaaba2 /container-core | |
parent | c1ebd072d5dd627cb249905ba8ad7bc2d75e4dbf (diff) |
Add enum for search node metrics with a couple of sample metrics.
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java b/container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java new file mode 100644 index 00000000000..766accfca8f --- /dev/null +++ b/container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java @@ -0,0 +1,34 @@ +package com.yahoo.metrics; + +/** + * @author gjoranv + */ +public enum SearchNodeMetrics implements VespaMetrics { + + SAMPLE1("sample1", Unit.RESPONSE, "sample1"), + SAMPLE2("sample1", Unit.RESPONSE, "sample1"); + + + private final String name; + private final Unit unit; + private final String description; + + SearchNodeMetrics(String name, Unit unit, String description) { + this.name = name; + this.unit = unit; + this.description = description; + } + + public String baseName() { + return name; + } + + public Unit unit() { + return unit; + } + + public String description() { + return description; + } + +} |