ui.home.consumerGroupsStats.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="consumersStats" type="com.infobip.kafkistry.service.consumers.ConsumersStats" -->
<#-- @ftlvariable name="ownedConsumersStats" type="com.infobip.kafkistry.service.consumers.ConsumersStats" -->
<#import "../common/util.ftl" as util>
<#import "../consumers/util.ftl" as consumerUtil>
<#if consumersStats.consumerStatusCounts?size == 0>
(No consumer groups)
<#else>
<#macro consumerStatsTables cStats navigateSuffix="">
<#-- @ftlvariable name="cStats" type="com.infobip.kafkistry.service.consumers.ConsumersStats" -->
Group status
<#list cStats.consumerStatusCounts as stateType, count>
<@util.namedTypeStatusAlert type=stateType alertInline=false/>
${count}
#list>
Lag status
<#list cStats.lagStatusCounts as stateType, count>
<@util.namedTypeStatusAlert type=stateType alertInline=false/>
${count}
#list>
#macro>
<@consumerStatsTables cStats=consumersStats/>
<#if ownedConsumersStats.consumerStatusCounts?size == 0>
(no consumer groups in your ownership)
<#else>
<@consumerStatsTables cStats=ownedConsumersStats navigateSuffix="%20YOUR"/>
#if>
#if>