Files
EdgeAdmin/web/views/@default/servers/metrics/createPopup.html

63 lines
2.3 KiB
HTML
Raw Normal View History

2021-06-27 21:59:06 +08:00
{$layout "layout_popup"}
<h3>创建{{category.toUpperCase()}}统计指标</h3>
<form class="ui form" data-tea-action="$" data-tea-success="success">
<csrf-token></csrf-token>
<input type="hidden" name="category" :value="category"/>
<table class="ui table definition selectable">
<tr>
<td class="title">指标名称 *</td>
<td>
<input type="text" name="name" maxlength="100" ref="focus"/>
</td>
</tr>
<tr>
<td>统计对象 *</td>
<td>
<metric-keys-config-box :v-category="category"></metric-keys-config-box>
</td>
</tr>
<tr>
<td>统计周期 *</td>
<td>
<metric-period-config-box></metric-period-config-box>
</td>
</tr>
<tr>
<td>统计数值 *</td>
<td>
<!-- HTTP -->
<select class="ui dropdown auto-width" name="value" v-if="category == 'http'">
2021-06-30 19:59:59 +08:00
<option v-for="def in valueDefinitions" :value="def.code">{{def.name}}</option>
2021-06-27 21:59:06 +08:00
</select>
<!-- TCP -->
<select class="ui dropdown auto-width" name="value" v-if="category == 'tcp'">
2021-06-30 19:59:59 +08:00
<option v-for="def in valueDefinitions" :value="def.code">{{def.name}}</option>
2021-06-27 21:59:06 +08:00
</select>
<!-- UDP -->
<select class="ui dropdown auto-width" name="value" v-if="category == 'udp'">
2021-06-30 19:59:59 +08:00
<option v-for="def in valueDefinitions" :value="def.code">{{def.name}}</option>
2021-06-27 21:59:06 +08:00
</select>
</td>
</tr>
<tr>
<td>数据保留周期</td>
<td>
<div class="ui input">
<input type="text" size="4" maxlength="4" name="expiresPeriod"/>
</div>
<p class="comment">自动删除此周期以外的数据。单位和统计周期一致。不填或者为0表示自动计算。</p>
</td>
</tr>
2021-07-19 15:23:20 +08:00
<tr>
2024-04-20 10:20:10 +08:00
<td>公用</td>
2021-07-19 15:23:20 +08:00
<td>
<checkbox name="isPublic" checked="checked"></checkbox>
<p class="comment">选中表示所有集群自动使用此指标。</p>
</td>
</tr>
2021-06-27 21:59:06 +08:00
</table>
<submit-btn></submit-btn>
</form>