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

ui.quotas.entity.ftl Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
<#-- @ftlvariable name="lastCommit"  type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="entityInspection"  type="com.infobip.kafkistry.service.quotas.EntityQuotasInspection" -->
<#-- @ftlvariable name="pendingEntityQuotasRequests"  type="java.util.List" -->
<#-- @ftlvariable name="gitStorageEnabled"  type="java.lang.Boolean" -->




    <#include "../commonResources.ftl"/>
    Kafkistry: Quotas entity
    
    




<#include "../commonMenu.ftl">

<#import "../common/util.ftl" as util>
<#import "util.ftl" as quotaUtil>

<#include "../common/backBtn.ftl"> Client entity quotas over clusters

<#assign entityID = entityInspection.entity.asID()> <#assign existInRegistry = entityInspection.quotaDescription??> <#if existInRegistry> <#if gitStorageEnabled>
Quotas entity <@quotaUtil.entity entity = entityInspection.entity/>
Entity in registry <@util.inRegistry flag = existInRegistry/>
OK <@util.ok ok = entityInspection.status.ok/>
Owner <#if existInRegistry> ${entityInspection.quotaDescription.owner} <#else> [none]
Presence <@util.presence presence = entityInspection.quotaDescription.presence/>
Actions <#if existInRegistry> Delete from registry... Edit entity quotas... <#assign entityActions = util.enumListToStringList(entityInspection.availableOperations)> <#if !existInRegistry && entityActions?seq_contains("IMPORT_CLIENT_QUOTAS")> Import to registry... <#if existInRegistry && entityActions?seq_contains("EDIT_CLIENT_QUOTAS")> Suggest edit... <#if existInRegistry && entityActions?seq_contains("CREATE_MISSING_QUOTAS")> Create quotas where missing... <#if existInRegistry && entityActions?seq_contains("ALTER_WRONG_QUOTAS")> Alter all wrong quotas... <#if entityActions?seq_contains("DELETE_UNWANTED_QUOTAS")> Delete all unwanted quotas...
Pending changes <#assign pendingRequests = pendingEntityQuotasRequests> <#include "../common/pendingChanges.ftl">

Status per cluster
<#macro quotaValues inspection name suffix> <#assign expected> <@quotaUtil.quotaValue inspection=inspection source="expectedQuota" name=name suffix=suffix/> <#assign actual> <@quotaUtil.quotaValue inspection=inspection source="actualQuota" name=name suffix=suffix/> <#if expected?markup_string == actual?markup_string> ${expected} <#else> Expected: ${expected}
Actual: ${actual} <#list entityInspection.clusterInspections as inspection> <#assign hasWrongValue = inspection.statusType.name == "WRONG_VALUE"> <#assign producerByteRateMismatched = hasWrongValue && !inspection.valuesInspection.producerByteRateOk> <#assign consumerByteRateMismatched = hasWrongValue && !inspection.valuesInspection.consumerByteRateOk> <#assign requestPercentageMismatched = hasWrongValue && !inspection.valuesInspection.requestPercentageOk>
Cluster Status Producer rate Consumer rate Request percentage
${inspection.clusterIdentifier} <@util.namedTypeStatusAlert type = inspection.statusType/> <@quotaValues inspection=inspection name="producerByteRate" suffix=""/> <@quotaValues inspection=inspection name="consumerByteRate" suffix=""/> <@quotaValues inspection=inspection name="requestPercentage" suffix="%"/>

Affected principals
<#if entityInspection.affectedPrincipals?size == 0>
(none)
<#else> <#list entityInspection.affectedPrincipals as principal, presence>
Principal Affected on clusters
${principal} <@util.presence presence=presence/>
<#if existInRegistry> <#if gitStorageEnabled>
<#assign historyUrl = appUrl.quotas().showEntityHistory(entityID)> <#include "../git/entityHistoryContainer.ftl">
<#include "../common/pageBottom.ftl">




© 2015 - 2024 Weber Informatics LLC | Privacy Policy