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>
|
2021-07-19 15:23:20 +08:00
|
|
|
<tr>
|
|
|
|
|
<td>是否公用</td>
|
|
|
|
|
<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>
|