You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozhera.apache.org by di...@apache.org on 2026/03/02 09:15:46 UTC
(ozhera) branch master updated: fix: correct the spelling of the name about promql (#639)
This is an automated email from the ASF dual-hosted git repository.
dingtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozhera.git
The following commit(s) were added to refs/heads/master by this push:
new 424a3a2f fix: correct the spelling of the name about promql (#639)
424a3a2f is described below
commit 424a3a2f24fe269c2b2e1a0db6a135c8aedc309f
Author: Xue <97...@users.noreply.github.com>
AuthorDate: Mon Mar 2 17:15:43 2026 +0800
fix: correct the spelling of the name about promql (#639)
---
.../src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java | 4 ++--
.../org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java
index b42f6f0b..e9c1a641 100644
--- a/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java
+++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java
@@ -29,7 +29,7 @@ public enum AlarmStrategyType {
SYSTEM(0,"基础类监控", "Basic monitoring"),
INTERFACE(1,"接口类监控", "Interface monitoring"),
- PAOMQL(2,"自定义PromQL", "Custom PromQL"),
+ PROMQL(2,"自定义PromQL", "Custom PromQL"),
TESLA(3,"TESLA监控", "TESLA Monitoring"),
BUSINESS_METRIC(4,"业务指标监控", "BUSINESS_METRIC Monitoring"),
NODE_ALERT(5,"节点监控", "NODE Monitoring"),
@@ -55,7 +55,7 @@ public enum AlarmStrategyType {
List<Triple> list = new ArrayList<>(3);
list.add(new Triple(AlarmStrategyType.SYSTEM.getCode() + "", AlarmStrategyType.SYSTEM.getLabel(), AlarmStrategyType.SYSTEM.getLabelEn()));
list.add(new Triple(AlarmStrategyType.INTERFACE.getCode() + "", AlarmStrategyType.INTERFACE.getLabel(), AlarmStrategyType.INTERFACE.getLabelEn()));
- list.add(new Triple(AlarmStrategyType.PAOMQL.getCode(), AlarmStrategyType.PAOMQL.getLabel(), AlarmStrategyType.PAOMQL.getLabelEn()));
+ list.add(new Triple(AlarmStrategyType.PROMQL.getCode(), AlarmStrategyType.PROMQL.getLabel(), AlarmStrategyType.PROMQL.getLabelEn()));
list.add(new Triple(AlarmStrategyType.BUSINESS_METRIC.getCode(), AlarmStrategyType.BUSINESS_METRIC.getLabel(), AlarmStrategyType.BUSINESS_METRIC.getLabelEn()));
return list;
}
diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java
index b7bfc865..4f1837b2 100644
--- a/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java
+++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java
@@ -452,7 +452,7 @@ public class AppAlarmServiceImpl implements AppAlarmService {
BeanUtils.copyProperties(ruleData, rule);
StringBuilder cname = new StringBuilder();
cname.append(param.getIamId() != null ? param.getIamId() : param.getProjectId());
- if (param.getStrategyType().intValue() == AlarmStrategyType.PAOMQL.getCode()) {
+ if (param.getStrategyType().intValue() == AlarmStrategyType.PROMQL.getCode()) {
if (rule.getMetricType() == null) {
rule.setMetricType(AlarmRuleMetricType.customer_promql.getCode());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozhera.apache.org
For additional commands, e-mail: commits-help@ozhera.apache.org