ui.management.unwantedTopicInfo.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="clusterIdentifier" type="java.lang.String" -->
<#-- @ftlvariable name="topicName" type="java.lang.String" -->
<#-- @ftlvariable name="topicConsumerGroups" type="java.util.List" -->
<#-- @ftlvariable name="topicOffsets" type="com.infobip.kafkistry.service.topic.offsets.TopicOffsets" -->
<#-- @ftlvariable name="bulkIterateBy" type="java.lang.String" -->
<#import "../common/util.ftl" as util>
<#import "../consumers/util.ftl" as consumerUtil>
<#switch bulkIterateBy!''>
<#case "TOPIC">
Topic: ${topicName}
<#break>
<#case "CLUSTER">
Cluster: ${clusterIdentifier}
<#break>
<#default>
${topicName} @ ${clusterIdentifier}
#switch>
Producing
<#if topicOffsets?? && topicOffsets != "">
<#include "../topics/topicOffsetsStatus.ftl">
<#else>
N/A
#if>
Consumers
<#if topicConsumerGroups?size == 0>
(no consumer groups reading from this topic)
<#else>
Group
Status
Lag
<#list topicConsumerGroups as consumerGroup>
${consumerGroup.groupId}
<@util.namedTypeStatusAlert type=consumerGroup.status/>
<#list consumerGroup.topicMembers as topicMember>
<#if topicMember.topicName == topicName>
<@util.namedTypeStatusAlert type=topicMember.lag.status/>
#if>
#list>
#list>
#if>
<#if bulkIterateBy??>
<#switch bulkIterateBy>
<#case "TOPIC">
<#assign statusId = "op-status-"+topicName>
<#break>
<#case "CLUSTER">
<#assign statusId = "op-status-"+clusterIdentifier>
<#break>
#switch>
<#include "../common/serverOpStatus.ftl">
#if>