mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-17 14:09:18 +00:00
add expression
This commit is contained in:
@@ -396,5 +396,6 @@ const msg = {
|
|||||||
execArgs: "Exec Args",
|
execArgs: "Exec Args",
|
||||||
instances: "Instances",
|
instances: "Instances",
|
||||||
snapshot: "Snapshot",
|
snapshot: "Snapshot",
|
||||||
|
expression: "Expression",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@@ -396,5 +396,6 @@ const msg = {
|
|||||||
execArgs: "Exec Args",
|
execArgs: "Exec Args",
|
||||||
instances: "Instances",
|
instances: "Instances",
|
||||||
snapshot: "Snapshot",
|
snapshot: "Snapshot",
|
||||||
|
expression: "Expression",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@@ -394,5 +394,6 @@ const msg = {
|
|||||||
execArgs: "String任务扩展",
|
execArgs: "String任务扩展",
|
||||||
instances: "实例",
|
instances: "实例",
|
||||||
snapshot: "快照",
|
snapshot: "快照",
|
||||||
|
expression: "表达式",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@@ -48,7 +48,7 @@ limitations under the License. -->
|
|||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
@closed="isShowDetails = false"
|
@closed="isShowDetails = false"
|
||||||
>
|
>
|
||||||
<div class="mb-10 clear alarm-detail" v-for="(item, index) in AlarmDetailCol" :key="index">
|
<div class="mb-20 clear alarm-detail" v-for="(item, index) in AlarmDetailCol" :key="index">
|
||||||
<span class="g-sm-2 grey">{{ t(item.value) }}:</span>
|
<span class="g-sm-2 grey">{{ t(item.value) }}:</span>
|
||||||
<span v-if="item.label === 'startTime'">
|
<span v-if="item.label === 'startTime'">
|
||||||
{{ dateFormat(currentDetail[item.label]) }}
|
{{ dateFormat(currentDetail[item.label]) }}
|
||||||
@@ -56,7 +56,7 @@ limitations under the License. -->
|
|||||||
<span v-else-if="item.label === 'tags'">
|
<span v-else-if="item.label === 'tags'">
|
||||||
<div v-for="(d, index) in alarmTags" :key="index">{{ d }}</div>
|
<div v-for="(d, index) in alarmTags" :key="index">{{ d }}</div>
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="item.label === 'events'" class="event-detail">
|
<span v-else-if="item.label === 'events'">
|
||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@@ -77,6 +77,9 @@ limitations under the License. -->
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
<span v-else-if="item.label === 'expression'">
|
||||||
|
{{ currentDetail.snapshot.expression }}
|
||||||
|
</span>
|
||||||
<span v-else-if="item.label === 'snapshot'">
|
<span v-else-if="item.label === 'snapshot'">
|
||||||
<Snapshot :snapshot="currentDetail.snapshot" />
|
<Snapshot :snapshot="currentDetail.snapshot" />
|
||||||
</span>
|
</span>
|
||||||
@@ -90,7 +93,7 @@ limitations under the License. -->
|
|||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
@closed="showEventDetails = false"
|
@closed="showEventDetails = false"
|
||||||
>
|
>
|
||||||
<div class="event-detail">
|
<div>
|
||||||
<div class="mb-10" v-for="(eventKey, index) in EventsDetailKeys" :key="index">
|
<div class="mb-10" v-for="(eventKey, index) in EventsDetailKeys" :key="index">
|
||||||
<span class="keys">{{ t(eventKey.text) }}</span>
|
<span class="keys">{{ t(eventKey.text) }}</span>
|
||||||
<span v-if="eventKey.class === 'parameters'">
|
<span v-if="eventKey.class === 'parameters'">
|
||||||
|
@@ -113,7 +113,6 @@ limitations under the License. -->
|
|||||||
link: { xAxisIndex: "all" },
|
link: { xAxisIndex: "all" },
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
show: grid.length > 1,
|
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
icon: "circle",
|
icon: "circle",
|
||||||
top: -5,
|
top: -5,
|
||||||
|
@@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<LineChart
|
<LineChart
|
||||||
class="snapshot flex-v"
|
|
||||||
:intervalTime="appStore.intervalTime"
|
:intervalTime="appStore.intervalTime"
|
||||||
:data="metrics"
|
:data="metrics"
|
||||||
:style="{ width: `800px`, height: `${metrics.length * 300}px` }"
|
:style="{ width: `800px`, height: `${metrics.length * 300}px` }"
|
||||||
|
@@ -52,6 +52,10 @@ export const AlarmDetailCol = [
|
|||||||
label: "events",
|
label: "events",
|
||||||
value: "eventDetail",
|
value: "eventDetail",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "expression",
|
||||||
|
value: "expression",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "snapshot",
|
label: "snapshot",
|
||||||
value: "snapshot",
|
value: "snapshot",
|
||||||
|
Reference in New Issue
Block a user