ui.autopilot.all.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="autopilotStatus" type="com.infobip.kafkistry.autopilot.service.AutopilotStatus" -->
<#-- @ftlvariable name="actionFlows" type="java.util.List" -->
<#include "../commonResources.ftl"/>
Kafkistry: Autopilot
<#include "../commonMenu.ftl">
<#import "../common/util.ftl" as util>
<#import "../common/infoIcon.ftl" as info>
<#import "../common/violaton.ftl" as violationUtil>
<#import "util.ftl" as autopilotUtil>
▼
△
Autopilot info
Properties
Property
Value
Cycle period every
${util.prettyDuration(autopilotStatus.cyclePeriodMs / 1000)}
Implemented capabilities
Action
Target Type
<#list autopilotStatus.possibleActions as actionDescription>
${actionDescription.actionName?remove_ending("Action")}
<@info.icon tooltip = actionDescription.doc/>
${actionDescription.targetType}
#list>
<#macro enablesDisabledValues what enabledValues disabledValues>
<#-- @ftlvariable name="what" type="java.lang.String" -->
<#-- @ftlvariable name="enabledValues" type="java.util.Collection extends java.lang.Object>" -->
<#-- @ftlvariable name="disabledValues" type="java.util.Collection extends java.lang.Object>" -->
<#if enabledValues?size==0 && disabledValues?size==0>
(all)
#if>
<#if enabledValues?size gt 0>
Enabled ${what}:
<#list enabledValues as value>
-
<#if value?is_string>${value}<#else>${value.toString()}#if>
#list>
#if>
<#if disabledValues?size gt 0>
Disabled ${what}:
<#list disabledValues as value>
-
<#if value?is_string>${value}<#else>${value.toString()}#if>
#list>
#if>
#macro>
Enabled actions filter
What
Status
Enabled globally
<#if autopilotStatus.enableFilter.enabled>
ENABLED
<#else>
DISABLED
#if>
Allowed binding implementations
<@enablesDisabledValues
what = "binding classes"
enabledValues = autopilotStatus.enableFilter.bindingType.enabledClasses
disabledValues = autopilotStatus.enableFilter.bindingType.disabledClasses/>
Allowed target type
<@enablesDisabledValues
what = "target types"
enabledValues = autopilotStatus.enableFilter.targetType.enabledValues
disabledValues = autopilotStatus.enableFilter.targetType.disabledValues/>
Allowed action type
<@enablesDisabledValues
what = "action class types"
enabledValues = autopilotStatus.enableFilter.actionType.enabledClasses
disabledValues = autopilotStatus.enableFilter.actionType.disabledClasses/>
Allowed cluster identifiers
<@enablesDisabledValues
what = "cluster identfiers"
enabledValues = autopilotStatus.enableFilter.cluster.identifiers.included
disabledValues = autopilotStatus.enableFilter.cluster.identifiers.excluded/>
Allowed cluster tags
<@enablesDisabledValues
what = "cluster tags"
enabledValues = autopilotStatus.enableFilter.cluster.tags.included
disabledValues = autopilotStatus.enableFilter.cluster.tags.excluded/>
Allowed action attributes
<#if autopilotStatus.enableFilter.attribute?size==0>
(all)
#if>
<#list autopilotStatus.enableFilter.attribute as attr, values>
Attribute: ${attr}
<@enablesDisabledValues
what = "values"
enabledValues = values.enabledValues
disabledValues = values.disabledValues/>
<#if !attr?is_last>
#if>
#list>
Actions
<#assign datatableId = "autopilotActions">
<#include "../common/loading.ftl">
<#include "../common/pageBottom.ftl">