All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.topics.form.topicResourceRequirements.ftl Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
<#-- @ftlvariable name="existingValues" type="com.infobip.kafkistry.service.ExistingValues" -->
<#-- @ftlvariable name="resourceRequirements" type="com.infobip.kafkistry.model.ResourceRequirements" -->

<#import "topicFormConfigComponents.ftl" as comp>

<#macro msgRate rate, rateFactor, rateUnit>
    
    
<#macro msgRateOverride cluster tag rate rateFactor rateUnit>
<@comp.commonLocComp.selectLocation selectedIdentifier=cluster selectedTag=tag /> <@msgRate rate=rate rateFactor=rateFactor rateUnit=rateUnit />
<#macro retention durationAmount retentionUnit>
<#macro retentionOverride cluster tag durationAmount retentionUnit>
<@comp.commonLocComp.selectLocation selectedIdentifier=cluster selectedTag=tag /> <@retention durationAmount=durationAmount retentionUnit=retentionUnit />
<#assign rate = (resourceRequirements.messagesRate.amount?c)!''> <#assign factor = (resourceRequirements.messagesRate.factor.name())!'K'> <#assign rateUnit = (resourceRequirements.messagesRate.unit.name())!''>
All clusters
<@msgRate rate=rate rateFactor=factor rateUnit=rateUnit />
<#if resourceRequirements??> <#list resourceRequirements.messagesRateTagOverrides as tag, messagesRate> <@msgRateOverride cluster="" tag=tag rate=messagesRate.amount?c rateFactor=messagesRate.factor.name() rateUnit=messagesRate.unit.name()/> <#list resourceRequirements.messagesRateOverrides as clusterIdentifier, messagesRate> <@msgRateOverride cluster=clusterIdentifier tag="" rate=messagesRate.amount?c rateFactor=messagesRate.factor.name() rateUnit=messagesRate.unit.name()/>
<#assign unit = (resourceRequirements.avgMessageSize.unit.name())!''>
<#assign retentionAmount = (resourceRequirements.retention.amount?c)!''> <#assign retentionUnit = (resourceRequirements.retention.unit.name())!'DAYS'>
All clusters
<@retention durationAmount=retentionAmount retentionUnit=retentionUnit />
<#if resourceRequirements??> <#list resourceRequirements.retentionTagOverrides as tag, dataRetention> <@retentionOverride cluster="" tag=tag durationAmount=dataRetention.amount?c retentionUnit=dataRetention.unit.name()/> <#list resourceRequirements.retentionOverrides as clusterIdentifier, dataRetention> <@retentionOverride cluster=clusterIdentifier tag="" durationAmount=dataRetention.amount?c retentionUnit=dataRetention.unit.name()/>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy