You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by al...@apache.org on 2024/10/16 09:20:50 UTC

(inlong) branch master updated: [INLONG-11361][Manager] Support querying heartbeat information based on IP address (#11362)

This is an automated email from the ASF dual-hosted git repository.

aloyszhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c37cea1e9 [INLONG-11361][Manager] Support querying heartbeat information based on IP address (#11362)
2c37cea1e9 is described below

commit 2c37cea1e90b2ff2191f4cb78cd046d8ce87ebc1
Author: fuweng11 <76...@users.noreply.github.com>
AuthorDate: Wed Oct 16 17:20:44 2024 +0800

    [INLONG-11361][Manager] Support querying heartbeat information based on IP address (#11362)
---
 .../src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml b/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml
index c5f0ebf08c..133947a4e4 100644
--- a/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml
+++ b/inlong-manager/manager-dao/src/main/resources/mappers/ComponentHeartbeatEntityMapper.xml
@@ -66,7 +66,12 @@
         select
         <include refid="Base_Column_List"/>
         from component_heartbeat
-        where component = #{request.component, jdbcType=VARCHAR}
+        <where>
+            component = #{request.component, jdbcType=VARCHAR}
+            <if test="request.instance != null and request.instance != ''">
+                and instance = #{request.instance,jdbcType=VARCHAR}
+            </if>
+        </where>
         order by modify_time desc
     </select>