doleyzi commented on code in PR #10232:
URL: https://github.com/apache/inlong/pull/10232#discussion_r1603276503


##########
inlong-audit/audit-sdk/src/main/java/org/apache/inlong/audit/AuditReporterImpl.java:
##########
@@ -502,4 +501,22 @@ private void checkFlushTime() {
             }
         });
     }
+
+    /**
+     * Generate success and failure, real-time and non-real-time, retry, 
discard and other Audit item IDs through the baseline Audit ID.
+     *
+     * @param baseAuditId
+     * @param success
+     * @param isRealtime
+     * @param discard
+     * @param retry
+     * @return
+     */
+    public int buildAuditId(AuditIdEnum baseAuditId,
+            boolean success,
+            boolean isRealtime,
+            boolean discard,
+            boolean retry) {
+        return AuditManagerUtils.buildAuditId(baseAuditId, success, 
isRealtime, discard, retry);
+    }

Review Comment:
   Make all external APIs into the SDK instance to make it easier for external 
callers to find and use.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to