diff --git a/inlong-common/src/main/java/org/apache/inlong/common/enums/IndicatorType.java b/inlong-common/src/main/java/org/apache/inlong/common/enums/IndicatorType.java
new file mode 100644
index 00000000000..b27c926e8f9
--- /dev/null
+++ b/inlong-common/src/main/java/org/apache/inlong/common/enums/IndicatorType.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.inlong.common.enums;
+
+/**
+ * Indicator type of inlong audit
+ */
+public enum IndicatorType {
+
+ RECEIVED_SUCCESS(0, "RECEIVED_SUCCESS", "Message received success"),
+ SEND_SUCCESS(1, "SEND_SUCCESS", "Message send success"),
+ RECEIVED_FAILED(2, "RECEIVED_FAILED", "Message received failed"),
+ SEND_FAILED(3, "SEND_FAILED", "Message send failed"),
+ RECEIVED_RETRY(4, "RECEIVED_RETRY", "Message received retry"),
+ SEND_RETRY(5, "SEND_RETRY", "Message send retry"),
+ RECEIVED_DISCARD(6, "RECEIVED_DISCARD", "Message received discard"),
+ SEND_DISCARD(7, "SEND_DISCARD", "Message send discard"),
+
+ UNKNOWN_TYPE(Integer.MAX_VALUE, "UNKNOWN_TYPE", "Unknown type");
+
+ private final int code;
+ private final String name;
+ private final String desc;
+
+ IndicatorType(int code, String name, String desc) {
+ this.code = code;
+ this.name = name;
+ this.desc = desc;
+ }
+
+ public static IndicatorType valueOf(int value) {
+ for (IndicatorType code : IndicatorType.values()) {
+ if (code.getCode() == value) {
+ return code;
+ }
+ }
+
+ return UNKNOWN_TYPE;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getDesc() {
+ return desc;
+ }
+
+}
diff --git a/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/entity/AuditBaseEntity.java b/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/entity/AuditBaseEntity.java
index 5f77dd20d3b..e4ed92d236c 100644
--- a/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/entity/AuditBaseEntity.java
+++ b/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/entity/AuditBaseEntity.java
@@ -29,7 +29,7 @@ public class AuditBaseEntity {
private Integer id;
private String name;
private String type;
- private Integer isSent;
+ private Integer indicatorType;
private String auditId;
}
diff --git a/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/mapper/AuditBaseEntityMapper.java b/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/mapper/AuditBaseEntityMapper.java
index ba634571a76..8e3c8fdb44e 100644
--- a/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/mapper/AuditBaseEntityMapper.java
+++ b/inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/mapper/AuditBaseEntityMapper.java
@@ -35,6 +35,7 @@ public interface AuditBaseEntityMapper {
AuditBaseEntity selectByType(@Param("type") String type);
- AuditBaseEntity selectByTypeAndIsSent(@Param("type") String type, @Param("isSent") Integer isSent);
+ AuditBaseEntity selectByTypeAndIndicatorType(@Param("type") String type,
+ @Param("indicatorType") Integer indicatorType);
}
diff --git a/inlong-manager/manager-dao/src/main/resources/mappers/AuditBaseEntityMapper.xml b/inlong-manager/manager-dao/src/main/resources/mappers/AuditBaseEntityMapper.xml
index cc947d26e0f..6ac240d2141 100644
--- a/inlong-manager/manager-dao/src/main/resources/mappers/AuditBaseEntityMapper.xml
+++ b/inlong-manager/manager-dao/src/main/resources/mappers/AuditBaseEntityMapper.xml
@@ -24,17 +24,17 @@
-
+
- id, name, type, is_sent, audit_id
+ id, name, type, indicator_type, audit_id
- insert into audit_base (id, name, type, is_sent, audit_id)
+ insert into audit_base (id, name, type, indicator_type, audit_id)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
- #{type,jdbcType=VARCHAR}, #{isSent,jdbcType=INTEGER},
+ #{type,jdbcType=VARCHAR}, #{indicatorType,jdbcType=INTEGER},
#{auditId,jdbcType=VARCHAR})
@@ -61,12 +61,12 @@
-