@blueking/monitor-alarm-center 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +330 -197
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8235,7 +8235,7 @@ span.apm-bk-date-picker-cells-cell-disabled.apm-bk-date-picker-cells-cell-select
|
|
|
8235
8235
|
.feedback-cause-dialog .feedback-form .apm-bk-form-content {
|
|
8236
8236
|
color: #313238;
|
|
8237
8237
|
}.chart-menu {
|
|
8238
|
-
position: fixed;
|
|
8238
|
+
position: fixed !important;
|
|
8239
8239
|
z-index: 999;
|
|
8240
8240
|
display: flex;
|
|
8241
8241
|
flex-direction: column;
|
|
@@ -8245,7 +8245,7 @@ span.apm-bk-date-picker-cells-cell-disabled.apm-bk-date-picker-cells-cell-select
|
|
|
8245
8245
|
background: #fff;
|
|
8246
8246
|
border: 1px solid #dcdee5;
|
|
8247
8247
|
border-radius: 2px;
|
|
8248
|
-
box-shadow:
|
|
8248
|
+
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
|
|
8249
8249
|
}
|
|
8250
8250
|
.chart-menu-item {
|
|
8251
8251
|
display: flex;
|
|
@@ -8542,20 +8542,20 @@ span.apm-bk-date-picker-cells-cell-disabled.apm-bk-date-picker-cells-cell-select
|
|
|
8542
8542
|
height: 30px;
|
|
8543
8543
|
}.common-legend-item {
|
|
8544
8544
|
float: left;
|
|
8545
|
-
white-space: nowrap;
|
|
8546
|
-
margin-left: 10px;
|
|
8547
8545
|
display: flex;
|
|
8548
8546
|
align-items: center;
|
|
8549
|
-
|
|
8547
|
+
margin-left: 10px;
|
|
8550
8548
|
font-size: 12px;
|
|
8549
|
+
line-height: 16px;
|
|
8550
|
+
white-space: nowrap;
|
|
8551
8551
|
}
|
|
8552
8552
|
.common-legend-item .legend-icon {
|
|
8553
8553
|
width: 12px;
|
|
8554
8554
|
height: 4px;
|
|
8555
|
-
background-color: violet;
|
|
8556
8555
|
margin-right: 6px;
|
|
8556
|
+
background-color: violet;
|
|
8557
8557
|
}
|
|
8558
|
-
.common-legend-item:hover {
|
|
8558
|
+
.common-legend-item:not(.is-disabled):hover {
|
|
8559
8559
|
color: #999;
|
|
8560
8560
|
cursor: pointer;
|
|
8561
8561
|
}.display-tag-container {
|
|
@@ -12853,7 +12853,7 @@ i.t-size-l {
|
|
|
12853
12853
|
}
|
|
12854
12854
|
.alarm-center-detail-alarm-info .basic-info .basic-info-form-item .item-col .item-label {
|
|
12855
12855
|
display: flex;
|
|
12856
|
-
flex: 0 0
|
|
12856
|
+
flex: 0 0 64px;
|
|
12857
12857
|
align-items: center;
|
|
12858
12858
|
justify-content: flex-start;
|
|
12859
12859
|
margin-right: 4px;
|
|
@@ -17525,73 +17525,6 @@ i.t-size-l {
|
|
|
17525
17525
|
}
|
|
17526
17526
|
.log-table-new-expand-content .json-view-wrap .vjs-tree-node .vjs-value.vjs-value-number {
|
|
17527
17527
|
color: #2caf5e;
|
|
17528
|
-
}/* stylelint-disable font-family-no-missing-generic-family-keyword */
|
|
17529
|
-
.log-table-new-empty-data {
|
|
17530
|
-
display: flex;
|
|
17531
|
-
flex-direction: column;
|
|
17532
|
-
align-items: center;
|
|
17533
|
-
justify-content: center;
|
|
17534
|
-
width: 100%;
|
|
17535
|
-
}
|
|
17536
|
-
.log-table-new-empty-data h1 {
|
|
17537
|
-
height: 28px;
|
|
17538
|
-
font-family: MicrosoftYaHei-Bold;
|
|
17539
|
-
font-size: 20px;
|
|
17540
|
-
font-weight: 700;
|
|
17541
|
-
line-height: 28px;
|
|
17542
|
-
color: #313238;
|
|
17543
|
-
letter-spacing: 0;
|
|
17544
|
-
}
|
|
17545
|
-
.log-table-new-empty-data .sub-title {
|
|
17546
|
-
height: 22px;
|
|
17547
|
-
margin: 8px 0 24px;
|
|
17548
|
-
font-family: MicrosoftYaHei;
|
|
17549
|
-
font-size: 14px;
|
|
17550
|
-
line-height: 22px;
|
|
17551
|
-
color: #313238;
|
|
17552
|
-
letter-spacing: 0;
|
|
17553
|
-
}
|
|
17554
|
-
.log-table-new-empty-data .empty-validate-steps {
|
|
17555
|
-
display: flex;
|
|
17556
|
-
justify-content: center;
|
|
17557
|
-
width: 100%;
|
|
17558
|
-
}
|
|
17559
|
-
.log-table-new-empty-data .empty-validate-steps > div {
|
|
17560
|
-
width: 30%;
|
|
17561
|
-
min-height: 240px;
|
|
17562
|
-
padding: 12px 16px;
|
|
17563
|
-
font-size: 12px;
|
|
17564
|
-
color: #4d4f56;
|
|
17565
|
-
background: #f5f7fa;
|
|
17566
|
-
}
|
|
17567
|
-
.log-table-new-empty-data .empty-validate-steps > div h3 {
|
|
17568
|
-
height: 22px;
|
|
17569
|
-
margin: 0;
|
|
17570
|
-
margin-bottom: 8px;
|
|
17571
|
-
font-family: MicrosoftYaHei-Bold;
|
|
17572
|
-
font-size: 14px;
|
|
17573
|
-
font-weight: 700;
|
|
17574
|
-
line-height: 22px;
|
|
17575
|
-
color: #313238;
|
|
17576
|
-
letter-spacing: 0;
|
|
17577
|
-
}
|
|
17578
|
-
.log-table-new-empty-data .empty-validate-steps > div.validate-step1 .step1-content {
|
|
17579
|
-
display: flex;
|
|
17580
|
-
width: 100%;
|
|
17581
|
-
padding: 6px 24px 32px 6px;
|
|
17582
|
-
font-family: MicrosoftYaHei;
|
|
17583
|
-
line-height: 20px;
|
|
17584
|
-
letter-spacing: 0;
|
|
17585
|
-
}
|
|
17586
|
-
.log-table-new-empty-data .empty-validate-steps > div.validate-step2 {
|
|
17587
|
-
margin: 0 16px;
|
|
17588
|
-
font-size: 12px;
|
|
17589
|
-
line-height: 20px;
|
|
17590
|
-
color: #4d4f56;
|
|
17591
|
-
}
|
|
17592
|
-
.log-table-new-empty-data .empty-validate-steps > div .segment-span-tag {
|
|
17593
|
-
color: #3a84ff;
|
|
17594
|
-
cursor: pointer;
|
|
17595
17528
|
}/* stylelint-disable selector-class-pattern */
|
|
17596
17529
|
.alarm-detail-log-table-new {
|
|
17597
17530
|
position: relative;
|
|
@@ -17669,6 +17602,73 @@ i.t-size-l {
|
|
|
17669
17602
|
.alarm-detail-log-table-new .panel-log-log-table.t-table__custom-scroll .t-table--scroll-vertical:hover,
|
|
17670
17603
|
.alarm-detail-log-table-new .panel-log-log-table .t-table.t-table__custom-scroll .t-table--scroll-horizontal:hover {
|
|
17671
17604
|
height: 7px;
|
|
17605
|
+
}/* stylelint-disable font-family-no-missing-generic-family-keyword */
|
|
17606
|
+
.log-table-new-empty-data {
|
|
17607
|
+
display: flex;
|
|
17608
|
+
flex-direction: column;
|
|
17609
|
+
align-items: center;
|
|
17610
|
+
justify-content: center;
|
|
17611
|
+
width: 100%;
|
|
17612
|
+
}
|
|
17613
|
+
.log-table-new-empty-data h1 {
|
|
17614
|
+
height: 28px;
|
|
17615
|
+
font-family: MicrosoftYaHei-Bold;
|
|
17616
|
+
font-size: 20px;
|
|
17617
|
+
font-weight: 700;
|
|
17618
|
+
line-height: 28px;
|
|
17619
|
+
color: #313238;
|
|
17620
|
+
letter-spacing: 0;
|
|
17621
|
+
}
|
|
17622
|
+
.log-table-new-empty-data .sub-title {
|
|
17623
|
+
height: 22px;
|
|
17624
|
+
margin: 8px 0 24px;
|
|
17625
|
+
font-family: MicrosoftYaHei;
|
|
17626
|
+
font-size: 14px;
|
|
17627
|
+
line-height: 22px;
|
|
17628
|
+
color: #313238;
|
|
17629
|
+
letter-spacing: 0;
|
|
17630
|
+
}
|
|
17631
|
+
.log-table-new-empty-data .empty-validate-steps {
|
|
17632
|
+
display: flex;
|
|
17633
|
+
justify-content: center;
|
|
17634
|
+
width: 100%;
|
|
17635
|
+
}
|
|
17636
|
+
.log-table-new-empty-data .empty-validate-steps > div {
|
|
17637
|
+
width: 30%;
|
|
17638
|
+
min-height: 240px;
|
|
17639
|
+
padding: 12px 16px;
|
|
17640
|
+
font-size: 12px;
|
|
17641
|
+
color: #4d4f56;
|
|
17642
|
+
background: #f5f7fa;
|
|
17643
|
+
}
|
|
17644
|
+
.log-table-new-empty-data .empty-validate-steps > div h3 {
|
|
17645
|
+
height: 22px;
|
|
17646
|
+
margin: 0;
|
|
17647
|
+
margin-bottom: 8px;
|
|
17648
|
+
font-family: MicrosoftYaHei-Bold;
|
|
17649
|
+
font-size: 14px;
|
|
17650
|
+
font-weight: 700;
|
|
17651
|
+
line-height: 22px;
|
|
17652
|
+
color: #313238;
|
|
17653
|
+
letter-spacing: 0;
|
|
17654
|
+
}
|
|
17655
|
+
.log-table-new-empty-data .empty-validate-steps > div.validate-step1 .step1-content {
|
|
17656
|
+
display: flex;
|
|
17657
|
+
width: 100%;
|
|
17658
|
+
padding: 6px 24px 32px 6px;
|
|
17659
|
+
font-family: MicrosoftYaHei;
|
|
17660
|
+
line-height: 20px;
|
|
17661
|
+
letter-spacing: 0;
|
|
17662
|
+
}
|
|
17663
|
+
.log-table-new-empty-data .empty-validate-steps > div.validate-step2 {
|
|
17664
|
+
margin: 0 16px;
|
|
17665
|
+
font-size: 12px;
|
|
17666
|
+
line-height: 20px;
|
|
17667
|
+
color: #4d4f56;
|
|
17668
|
+
}
|
|
17669
|
+
.log-table-new-empty-data .empty-validate-steps > div .segment-span-tag {
|
|
17670
|
+
color: #3a84ff;
|
|
17671
|
+
cursor: pointer;
|
|
17672
17672
|
}.field-type-icon {
|
|
17673
17673
|
display: inline-flex;
|
|
17674
17674
|
align-items: center;
|
|
@@ -183314,12 +183314,18 @@ const VALUE_TAG_INPUT_PROPS = {
|
|
|
183314
183314
|
isOneRow: {
|
|
183315
183315
|
type: Boolean,
|
|
183316
183316
|
default: false
|
|
183317
|
+
},
|
|
183318
|
+
valueMap: {
|
|
183319
|
+
type: Object,
|
|
183320
|
+
default: () => /* @__PURE__ */ new Map()
|
|
183317
183321
|
}
|
|
183318
183322
|
};
|
|
183319
183323
|
const VALUE_TAG_INPUT_EMITS = {
|
|
183320
183324
|
input: (_v) => true,
|
|
183321
183325
|
change: (_v) => true,
|
|
183322
|
-
delete: (_e) => true
|
|
183326
|
+
delete: (_e) => true,
|
|
183327
|
+
focus: () => true,
|
|
183328
|
+
blur: () => true
|
|
183323
183329
|
};
|
|
183324
183330
|
const VALUE_OPTIONS_PROPS = {
|
|
183325
183331
|
selected: {
|
|
@@ -183374,7 +183380,8 @@ const VALUE_OPTIONS_PROPS = {
|
|
|
183374
183380
|
};
|
|
183375
183381
|
const VALUE_OPTIONS_EMITS = {
|
|
183376
183382
|
isChecked: (_v) => true,
|
|
183377
|
-
select: (_v) => true
|
|
183383
|
+
select: (_v) => true,
|
|
183384
|
+
getOptions: (_v) => true
|
|
183378
183385
|
};
|
|
183379
183386
|
const QS_SELECTOR_PROPS = {
|
|
183380
183387
|
fields: {
|
|
@@ -220498,7 +220505,8 @@ const NoticeWayEnum = {
|
|
|
220498
220505
|
MAIL: "mail",
|
|
220499
220506
|
WEIXIN: "weixin",
|
|
220500
220507
|
QYWEIXIN: "qy_weixin",
|
|
220501
|
-
WXWORKBOT: "wxwork-bot"
|
|
220508
|
+
WXWORKBOT: "wxwork-bot",
|
|
220509
|
+
VOICE: "voice"
|
|
220502
220510
|
};
|
|
220503
220511
|
const AlarmNoticeWayIconMap = {
|
|
220504
220512
|
[NoticeWayEnum.SMS]: {
|
|
@@ -220530,6 +220538,12 @@ const AlarmNoticeWayIconMap = {
|
|
|
220530
220538
|
iconColor: "#8E9BB3",
|
|
220531
220539
|
text: window.i18n.t("邮件"),
|
|
220532
220540
|
textColor: "#313238"
|
|
220541
|
+
},
|
|
220542
|
+
[NoticeWayEnum.VOICE]: {
|
|
220543
|
+
icon: "icon-yuyin",
|
|
220544
|
+
iconColor: "#8E9BB3",
|
|
220545
|
+
text: window.i18n.t("语音"),
|
|
220546
|
+
textColor: "#313238"
|
|
220533
220547
|
}
|
|
220534
220548
|
};
|
|
220535
220549
|
const AlertStatusMap = {
|
|
@@ -231739,7 +231753,7 @@ const CommonLegend = /* @__PURE__ */ defineComponent({
|
|
|
231739
231753
|
if (legend.hidden) return void 0;
|
|
231740
231754
|
return createVNode("div", {
|
|
231741
231755
|
"key": index2,
|
|
231742
|
-
"class": "common-legend-item",
|
|
231756
|
+
"class": ["common-legend-item", legend.disabled ? "is-disabled" : ""],
|
|
231743
231757
|
"onClick": (e3) => this.handleLegendEvent(e3, "click", legend)
|
|
231744
231758
|
}, [legend.icon ? createVNode("div", {
|
|
231745
231759
|
"style": {
|
|
@@ -252705,7 +252719,7 @@ const MonitorCharts = /* @__PURE__ */ defineComponent({
|
|
|
252705
252719
|
default: false
|
|
252706
252720
|
}
|
|
252707
252721
|
},
|
|
252708
|
-
emits: ["dataZoomChange", "durationChange", "restore", "click", "menuClick", "zrClick"],
|
|
252722
|
+
emits: ["dataZoomChange", "durationChange", "restore", "click", "menuClick", "zrClick", "mouseover", "mouseout"],
|
|
252709
252723
|
setup(props2, {
|
|
252710
252724
|
emit: emit2
|
|
252711
252725
|
}) {
|
|
@@ -252782,6 +252796,12 @@ const MonitorCharts = /* @__PURE__ */ defineComponent({
|
|
|
252782
252796
|
const handleClick = (params2) => {
|
|
252783
252797
|
emit2("click", params2);
|
|
252784
252798
|
};
|
|
252799
|
+
const handleMouseover = (params2) => {
|
|
252800
|
+
emit2("mouseover", params2);
|
|
252801
|
+
};
|
|
252802
|
+
const handleMouseout = (params2) => {
|
|
252803
|
+
emit2("mouseout", params2);
|
|
252804
|
+
};
|
|
252785
252805
|
const handleZrClick = (params2) => {
|
|
252786
252806
|
const pointInPixel = [params2.offsetX, params2.offsetY];
|
|
252787
252807
|
const pointInGrid = chartInstance.value.convertFromPixel({
|
|
@@ -252838,7 +252858,9 @@ const MonitorCharts = /* @__PURE__ */ defineComponent({
|
|
|
252838
252858
|
handleDataZoom,
|
|
252839
252859
|
handleClick,
|
|
252840
252860
|
handleZrClick,
|
|
252841
|
-
handleMouseInChange
|
|
252861
|
+
handleMouseInChange,
|
|
252862
|
+
handleMouseover,
|
|
252863
|
+
handleMouseout
|
|
252842
252864
|
};
|
|
252843
252865
|
},
|
|
252844
252866
|
render() {
|
|
@@ -252876,6 +252898,8 @@ const MonitorCharts = /* @__PURE__ */ defineComponent({
|
|
|
252876
252898
|
"autoresize": true,
|
|
252877
252899
|
"onClick": this.handleClick,
|
|
252878
252900
|
"onDatazoom": (e3) => this.handleDataZoom(e3, this.options),
|
|
252901
|
+
"onMouseout": this.handleMouseout,
|
|
252902
|
+
"onMouseover": this.handleMouseover,
|
|
252879
252903
|
"onZr:click": this.handleZrClick
|
|
252880
252904
|
}, null), this.showRestore && createVNode("span", {
|
|
252881
252905
|
"class": "chart-restore",
|
|
@@ -253756,6 +253780,7 @@ const AlarmCharts = /* @__PURE__ */ defineComponent({
|
|
|
253756
253780
|
});
|
|
253757
253781
|
const scatterClickEventData = /* @__PURE__ */ shallowRef({});
|
|
253758
253782
|
const refreshImmediate = /* @__PURE__ */ shallowRef("");
|
|
253783
|
+
let cachedCursor = "";
|
|
253759
253784
|
const {
|
|
253760
253785
|
timeRange,
|
|
253761
253786
|
showRestore,
|
|
@@ -253825,6 +253850,23 @@ const AlarmCharts = /* @__PURE__ */ defineComponent({
|
|
|
253825
253850
|
}
|
|
253826
253851
|
return ["screenshot", "explore"];
|
|
253827
253852
|
});
|
|
253853
|
+
const createMarkPointTooltip = (content) => ({
|
|
253854
|
+
trigger: "item",
|
|
253855
|
+
backgroundColor: "transparent",
|
|
253856
|
+
borderWidth: 0,
|
|
253857
|
+
extraCssText: "padding: 0;",
|
|
253858
|
+
position: (point, _params, _dom, _rect, size) => {
|
|
253859
|
+
const [tooltipWidth, tooltipHeight] = size.contentSize;
|
|
253860
|
+
const [pointX, pointY] = point;
|
|
253861
|
+
const left2 = pointX - tooltipWidth / 2;
|
|
253862
|
+
const top2 = pointY - tooltipHeight - 12;
|
|
253863
|
+
return [left2, top2];
|
|
253864
|
+
},
|
|
253865
|
+
formatter: () => `<div style="position: relative; background: rgba(54,58,67,.88); color: #fafbfd; font-size: 12px; padding: 6px 12px; border-radius: 4px;">
|
|
253866
|
+
${content}
|
|
253867
|
+
<div style="position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid rgba(54,58,67,.88);"></div>
|
|
253868
|
+
</div>`
|
|
253869
|
+
});
|
|
253828
253870
|
const findInsertIndex = (points2, target2) => {
|
|
253829
253871
|
let lo = 0;
|
|
253830
253872
|
let hi = points2.length - 1;
|
|
@@ -253880,30 +253922,37 @@ const AlarmCharts = /* @__PURE__ */ defineComponent({
|
|
|
253880
253922
|
insertMissingPoint(Number(point), 0);
|
|
253881
253923
|
}
|
|
253882
253924
|
const mainSeries = series[0];
|
|
253883
|
-
mainSeries.markPoints = [
|
|
253884
|
-
|
|
253885
|
-
|
|
253886
|
-
|
|
253887
|
-
|
|
253888
|
-
|
|
253889
|
-
|
|
253890
|
-
|
|
253891
|
-
|
|
253892
|
-
|
|
253893
|
-
|
|
253894
|
-
|
|
253895
|
-
|
|
253896
|
-
|
|
253897
|
-
|
|
253898
|
-
|
|
253899
|
-
|
|
253900
|
-
|
|
253901
|
-
|
|
253902
|
-
|
|
253903
|
-
|
|
253904
|
-
|
|
253925
|
+
mainSeries.markPoints = [
|
|
253926
|
+
// 条件渲染:非事件/日志告警 且 非柱状图 时显示异常点
|
|
253927
|
+
...isEventOrLogAlarm.value && mainSeries?.type === "bar" ? [] : datapoints.filter((item2) => props2.detail.anomaly_timestamps.includes(Number(String(item2[1]).slice(0, -3)))).map((item2) => ({
|
|
253928
|
+
value: item2[1],
|
|
253929
|
+
xAxis: String(item2[1]),
|
|
253930
|
+
yAxis: item2[0],
|
|
253931
|
+
symbol: "circle",
|
|
253932
|
+
symbolSize: 5,
|
|
253933
|
+
itemStyle: {
|
|
253934
|
+
color: ANOMALY_COLOR
|
|
253935
|
+
},
|
|
253936
|
+
tooltip: createMarkPointTooltip(t3("异常检测点"))
|
|
253937
|
+
})),
|
|
253938
|
+
// 告警级别标记
|
|
253939
|
+
{
|
|
253940
|
+
value: beginTime,
|
|
253941
|
+
xAxis: beginTimeStr,
|
|
253942
|
+
yAxis: yMax || 1,
|
|
253943
|
+
symbol: "circle",
|
|
253944
|
+
symbolSize: 0,
|
|
253945
|
+
label: {
|
|
253946
|
+
show: true,
|
|
253947
|
+
position: "top",
|
|
253948
|
+
formatter: ALARM_ICON_CONFIG[props2.detail.severity]?.unicode,
|
|
253949
|
+
color: ALARM_ICON_CONFIG[props2.detail.severity]?.color,
|
|
253950
|
+
fontSize: 16,
|
|
253951
|
+
fontFamily: "icon-monitor"
|
|
253952
|
+
},
|
|
253953
|
+
tooltip: createMarkPointTooltip(ALARM_ICON_CONFIG[props2.detail.severity]?.alias || "")
|
|
253905
253954
|
}
|
|
253906
|
-
|
|
253955
|
+
];
|
|
253907
253956
|
mainSeries.markTimeRange = [{
|
|
253908
253957
|
from: firstAnomalyTimeStr,
|
|
253909
253958
|
to: beginTimeStr,
|
|
@@ -254232,6 +254281,19 @@ const AlarmCharts = /* @__PURE__ */ defineComponent({
|
|
|
254232
254281
|
}
|
|
254233
254282
|
}
|
|
254234
254283
|
};
|
|
254284
|
+
const handleChartMouseover = (params) => {
|
|
254285
|
+
if (params.componentType !== "markPoint") return;
|
|
254286
|
+
const canvas = params.event?.event?.target;
|
|
254287
|
+
if (!canvas) return;
|
|
254288
|
+
cachedCursor = canvas.style.cursor;
|
|
254289
|
+
canvas.style.cursor = "default";
|
|
254290
|
+
};
|
|
254291
|
+
const handleChartMouseout = (params) => {
|
|
254292
|
+
if (params.componentType !== "markPoint") return;
|
|
254293
|
+
const canvas = params.event?.event?.target;
|
|
254294
|
+
if (!canvas) return;
|
|
254295
|
+
canvas.style.cursor = cachedCursor;
|
|
254296
|
+
};
|
|
254235
254297
|
onMounted(() => document.addEventListener("mousedown", handleCloseEventDetailPopup));
|
|
254236
254298
|
onUnmounted(() => document.removeEventListener("mousedown", handleCloseEventDetailPopup));
|
|
254237
254299
|
return {
|
|
@@ -254248,7 +254310,9 @@ const AlarmCharts = /* @__PURE__ */ defineComponent({
|
|
|
254248
254310
|
handleScatterClick,
|
|
254249
254311
|
eventDetailPopupPosition,
|
|
254250
254312
|
scatterClickEventData,
|
|
254251
|
-
handleMenuClick
|
|
254313
|
+
handleMenuClick,
|
|
254314
|
+
handleChartMouseover,
|
|
254315
|
+
handleChartMouseout
|
|
254252
254316
|
};
|
|
254253
254317
|
},
|
|
254254
254318
|
render() {
|
|
@@ -254272,6 +254336,8 @@ const AlarmCharts = /* @__PURE__ */ defineComponent({
|
|
|
254272
254336
|
"onClick": this.handleScatterClick,
|
|
254273
254337
|
"onDataZoomChange": this.handleDataZoomChange,
|
|
254274
254338
|
"onMenuClick": this.handleMenuClick,
|
|
254339
|
+
"onMouseout": this.handleChartMouseout,
|
|
254340
|
+
"onMouseover": this.handleChartMouseover,
|
|
254275
254341
|
"onRestore": this.handleRestore
|
|
254276
254342
|
}, null), this.eventDetailPopupPosition?.left > 0 && createVNode(AlarmChartEventDetail, {
|
|
254277
254343
|
"ref": "alertEventChartDetailRef",
|
|
@@ -255047,11 +255113,12 @@ const hostSvgUrl = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8
|
|
|
255047
255113
|
const bcsSvgUrl = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2016%2016'%20style='enable-background:new%200%200%2016%2016;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%232F567D;}%20.st1{fill:%23D4FBFF;}%20.st2{fill:%23FFFFFF;}%20.st3{fill:url(%23路径_5_);}%20.st4{opacity:0.3;fill:url(%23路径_6_);enable-background:new%20;}%20.st5{fill:url(%23形状_1_);}%20%3c/style%3e%3ccircle%20id='椭圆形'%20class='st0'%20cx='8'%20cy='8'%20r='8'/%3e%3cg%20id='容器管理'%20transform='translate(2,%202)'%3e%3cpath%20id='路径'%20class='st1'%20d='M11.3,2.8L6.7,0.1C6.5,0,6.3,0,6.1,0.1L1.5,2.8c0,0,0.1,0.1,0.1,0.3c0,0.2,0,0.3,0,0.3l4.5,2.6%20C6.3,6,6.5,6,6.7,5.9l4.6-2.7C11.5,3.1,11.5,2.9,11.3,2.8z'/%3e%3cpath%20id='路径_1_'%20class='st1'%20d='M6.9,6.3l4.6-2.7c0.2-0.1,0.4,0,0.4,0.2v5.3c0,0.2-0.1,0.4-0.3,0.5L7,12.4%20c-0.2,0.1-0.4,0-0.4-0.2V6.8C6.6,6.6,6.7,6.4,6.9,6.3z'/%3e%3cpath%20id='路径_2_'%20class='st2'%20d='M8.3,6.7c0-0.2,0.2-0.5,0.4-0.7s0.4,0,0.4,0.2c0,0.2-0.2,0.5-0.4,0.7C8.5,7.1,8.3,6.9,8.3,6.7z%20'/%3e%3clinearGradient%20id='路径_5_'%20gradientUnits='userSpaceOnUse'%20x1='-231.5369'%20y1='260.8506'%20x2='-231.5369'%20y2='261.8506'%20gradientTransform='matrix(6.1161%200%200%20-9.7948%201419.1677%202567.374)'%3e%3cstop%20offset='0'%20style='stop-color:%230054D4'/%3e%3cstop%20offset='1'%20style='stop-color:%2300D3FF'/%3e%3c/linearGradient%3e%3cpath%20id='路径_3_'%20class='st3'%20d='M5.8,6.3L1.3,3.6c0.2-0.3,0.1-0.8-0.2-1.1C0.6,2.7,0.7,3.3,0.7,3.3C0.3,3.2,0,3.4,0,3.4%20C0.2,3.8,0.5,4,0.8,3.9v5.3c0,0.2,0.1,0.4,0.3,0.5l4.6,2.7c0.2,0.1,0.4,0,0.4-0.2V6.8C6.1,6.6,6,6.4,5.8,6.3z'/%3e%3clinearGradient%20id='路径_6_'%20gradientUnits='userSpaceOnUse'%20x1='-208.6808'%20y1='250.3952'%20x2='-207.6829'%20y2='250.3952'%20gradientTransform='matrix(4.0258%200%200%20-7.0452%20848.0065%201772.407)'%3e%3cstop%20offset='0'%20style='stop-color:%232D7F56'/%3e%3cstop%20offset='1'%20style='stop-color:%2327B4A4'/%3e%3c/linearGradient%3e%3cpath%20id='路径_4_'%20class='st4'%20d='M8.7,11.4c0.4-0.5,0.5-1,0.5-1c0,0,0.1,0.1,0.1,0.2s0.2,0.2,0.2,0.1c0.4-0.7,0.1-1.7,0-2%20c0-0.3,0-0.7,0.1-1c0.2-0.8,0.7-1.3,1.4-1.7c0.7-0.4,0.8-1,0.8-1L9.2,6.9c0-0.2-1.3,5-1.3,5S8.7,11.4,8.7,11.4z'/%3e%3clinearGradient%20id='形状_1_'%20gradientUnits='userSpaceOnUse'%20x1='-225.3909'%20y1='257.6638'%20x2='-225.3909'%20y2='258.6628'%20gradientTransform='matrix(5.3806%200%200%20-8.7952%201222.0581%202278.5981)'%3e%3cstop%20offset='0'%20style='stop-color:%230054D4'/%3e%3cstop%20offset='1'%20style='stop-color:%2300D3FF'/%3e%3c/linearGradient%3e%3cpath%20id='形状'%20class='st5'%20d='M11.5,3.6L6.9,6.3C6.7,6.4,6.6,6.6,6.6,6.8v5.3c0,0.2,0.2,0.3,0.4,0.2c0,0,0.7-0.4,0.9-0.5%20c0.7-0.4,1.3-1.7,1.3-1.7c0,0.1,0,0.2,0,0.3s0.2,0.2,0.2,0.1C10,9.8,9.6,8.7,9.6,8.7c0-0.3,0.1-0.7,0.2-1.1%20c0.2-0.8,0.7-1.3,1.4-1.7c0.7-0.4,0.9-1,0.9-1V3.9C11.9,3.6,11.7,3.5,11.5,3.6z%20M8.3,6.7c0-0.2,0.2-0.5,0.4-0.7s0.4,0,0.4,0.2%20c0,0.2-0.2,0.5-0.4,0.7C8.5,7.1,8.3,6.9,8.3,6.7z'/%3e%3c/g%3e%3c/svg%3e";
|
|
255048
255114
|
const landunSvgUrl = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2016%2016'%20style='enable-background:new%200%200%2016%2016;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%232F567D;}%20.st1{fill-rule:evenodd;clip-rule:evenodd;fill:%23FEFEFE;}%20%3c/style%3e%3ccircle%20id='椭圆形'%20class='st0'%20cx='8'%20cy='8'%20r='8'/%3e%3cpath%20id='形状结合'%20class='st1'%20d='M7,7.4c0.1,0.1,0.3,0.3,0.5,0.5L7.6,8L7.2,8.5C7.1,8.6,7,8.6,6.9,8.7L6.5,9.1%20C6.3,8.9,6,8.6,5.8,8.4c-1-0.6-2,0-2.3,0.6C3,9.8,3.2,10.8,3.9,11.3c0.7,0.5,1.6,0.5,2.3-0.1c0.3-0.3,0.7-0.7,1.1-1.1l0.5-0.5%20c0.2-0.2,0.4-0.4,0.5-0.5l0.3-0.3l0.2,0.2C8.8,9.2,8.9,9.3,9,9.4l0.1,0.1c0,0,0,0,0,0c-0.7,0.7-1.5,1.6-2.3,2.2%20C6,12.5,5,12.7,3.9,12.3C2.8,11.9,2.2,11.1,2,9.9c0-0.1,0-0.3,0-0.4c0-1.2,0.7-2.3,1.8-2.7C4.9,6.3,6.2,6.6,7,7.4z%20M14,9.1%20c0,0.1,0,0.3,0,0.4c0,1.7-1.4,3.1-3.2,3c-0.7-0.1-1.3-0.3-1.8-0.8c-0.2-0.2-0.4-0.4-0.6-0.6L9.5,10c0.1,0.1,0.3,0.3,0.4,0.4%20c0.5,0.5,1.3,0.6,2,0.3c0.6-0.3,1-1,0.9-1.7c-0.1-0.8-0.6-1.3-1.4-1.5c-0.6-0.1-1.1,0-1.5,0.4C9.7,8.1,9.3,8.4,9.1,8.7l0,0L8.4,8%20c0.3-0.3,0.6-0.7,1-0.9C11.2,5.8,13.7,7,14,9.1z%20M8,8.4l0.4,0.4l0,0c0,0,0,0,0,0L8.2,8.9C8.1,9.1,7.9,9.3,7.7,9.5L7.4,9.7%20C7.3,9.8,7.2,9.9,7.1,10l-0.2,0.2c-0.3,0.3-0.6,0.6-0.9,0.9c-0.6,0.6-1.6,0.6-2.2,0l0,0l0-0.1c-0.5-0.4-0.6-1.3-0.2-1.9%20C3.6,9,3.7,8.9,3.7,8.8l0,0l0,0c0,0-0.1,0.2-0.1,0.2c-0.2,0.6,0.1,1.3,0.6,1.6c0.5,0.3,1.2,0.3,1.7-0.2C6.6,9.8,7.2,9.2,8,8.4%20C7.9,8.4,8,8.4,8,8.4z%20M10,8c0.5-0.5,1.2-0.6,1.8-0.3c1,0.5,1.2,1.8,0.4,2.6c0,0,0,0-0.1,0.1c0.2-0.2,0.3-0.5,0.3-0.8%20c0-0.7-0.6-1.4-1.4-1.4c0,0,0,0-0.1,0c-0.3,0-0.6,0.1-0.9,0.4C9.9,8.7,9.7,9,9.5,9.1c0,0-0.3-0.3-0.4-0.4C9.4,8.6,9.8,8.1,10,8z%20M8,4.8c0.9,0,1.6,0.6,1.7,1.4C9.5,6.4,9.3,6.5,9.2,6.6c0-0.6-0.5-1.1-1.2-1.1S6.8,5.9,6.8,6.6C6.7,6.4,6.5,6.4,6.3,6.3%20C6.4,5.5,7.1,4.8,8,4.8z%20M8,3c0.2,0,0.3,0,0.5,0l0.1,0.7c0.1,0,0.3,0.1,0.4,0.1l0.4-0.5c0.1,0,0.2,0.1,0.3,0.1l0.3,0.2%20c0.1,0.1,0.2,0.1,0.2,0.2L9.9,4.4c0.1,0.1,0.2,0.2,0.3,0.3l0.6-0.3C10.9,4.5,11,4.5,11,4.6L11.2,5c0,0.1,0.1,0.1,0.1,0.2l-0.5,0.4%20c0,0.1,0.1,0.3,0.1,0.4c-0.4,0-0.7,0.1-1,0.2C9.7,5.4,8.9,4.7,8,4.7S6.3,5.4,6.1,6.2C5.8,6.1,5.5,6,5.1,6c0-0.1,0.1-0.3,0.1-0.4%20L4.7,5.2C4.8,4.9,5,4.7,5.1,4.4l0.6,0.3C5.9,4.6,6,4.5,6.1,4.4L5.8,3.7c0.2-0.2,0.5-0.3,0.8-0.5L7,3.8c0.1,0,0.3-0.1,0.4-0.1L7.5,3%20C7.7,3,7.8,3,8,3z'/%3e%3c/svg%3e";
|
|
255049
255115
|
const defaultSvgUrl = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eLOGO/其他%3c/title%3e%3cg%20id='LOGO/其他'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3ccircle%20id='椭圆形'%20fill='%232F567D'%20cx='8'%20cy='8'%20r='8'%3e%3c/circle%3e%3cpath%20d='M8,2%20C11.3137085,2%2014,4.6862915%2014,8%20C14,11.3137085%2011.3137085,14%208,14%20C4.6862915,14%202,11.3137085%202,8%20C2,4.6862915%204.6862915,2%208,2%20Z%20M8,3%20C5.23857625,3%203,5.23857625%203,8%20C3,10.7614237%205.23857625,13%208,13%20C10.7614237,13%2013,10.7614237%2013,8%20C13,5.23857625%2010.7614237,3%208,3%20Z%20M7.998,10.193%20C8.196,10.193%208.367,10.256%208.502,10.382%20C8.628,10.508%208.7,10.67%208.7,10.868%20C8.7,11.066%208.628,11.237%208.493,11.363%20C8.358,11.489%208.196,11.552%207.998,11.552%20C7.8,11.552%207.638,11.48%207.503,11.354%20C7.368,11.228%207.305,11.066%207.305,10.868%20C7.305,10.67%207.368,10.508%207.503,10.382%20C7.638,10.256%207.8,10.193%207.998,10.193%20Z%20M8.16,5%20C8.745,5%209.222,5.153%209.582,5.477%20C9.942,5.792%2010.122,6.224%2010.122,6.773%20C10.122,7.223%2010.005,7.592%209.789,7.88%20C9.708,7.97%209.447,8.213%209.015,8.591%20C8.853,8.726%208.736,8.879%208.655,9.041%20C8.565,9.221%208.52,9.41%208.52,9.626%20L8.52,9.752%20L7.485,9.752%20L7.485,9.626%20C7.485,9.284%207.539,8.987%207.665,8.744%20C7.782,8.501%208.133,8.123%208.718,7.601%20L8.826,7.475%20C8.988,7.277%209.069,7.061%209.069,6.836%20C9.069,6.539%208.979,6.305%208.817,6.134%20C8.646,5.963%208.403,5.882%208.097,5.882%20C7.701,5.882%207.422,5.999%207.251,6.251%20C7.098,6.458%207.026,6.755%207.026,7.133%20L6,7.133%20C6,6.467%206.189,5.945%206.585,5.567%20C6.972,5.189%207.494,5%208.16,5%20Z'%20id='形状结合'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
|
|
255116
|
+
const escapeForSingleQuotedString = (value) => value.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
255050
255117
|
const SourceIconSvgMap = {
|
|
255051
|
-
[SourceTypeEnum.BCS]: bcsSvgUrl
|
|
255052
|
-
[SourceTypeEnum.BKCI]: landunSvgUrl
|
|
255053
|
-
[SourceTypeEnum.HOST]: hostSvgUrl
|
|
255054
|
-
[SourceTypeEnum.DEFAULT]: defaultSvgUrl
|
|
255118
|
+
[SourceTypeEnum.BCS]: escapeForSingleQuotedString(bcsSvgUrl),
|
|
255119
|
+
[SourceTypeEnum.BKCI]: escapeForSingleQuotedString(landunSvgUrl),
|
|
255120
|
+
[SourceTypeEnum.HOST]: escapeForSingleQuotedString(hostSvgUrl),
|
|
255121
|
+
[SourceTypeEnum.DEFAULT]: escapeForSingleQuotedString(defaultSvgUrl)
|
|
255055
255122
|
};
|
|
255056
255123
|
const tableColumnKey = {
|
|
255057
255124
|
TIME: "time",
|
|
@@ -255125,10 +255192,10 @@ const EventTable = /* @__PURE__ */ defineComponent({
|
|
|
255125
255192
|
}, [window.source_app !== "apm" ? createVNode("span", {
|
|
255126
255193
|
"class": `source-icon icon-monitor ${SourceIconMap[value]}`
|
|
255127
255194
|
}, null) : createVNode("span", {
|
|
255128
|
-
"class": `source-icon icon-monitor ${SourceIconMap[value]}`,
|
|
255129
255195
|
"style": {
|
|
255130
255196
|
backgroundImage: SourceIconSvgMap[item2.value] ? `url('${SourceIconSvgMap[item2.value]}')` : void 0
|
|
255131
|
-
}
|
|
255197
|
+
},
|
|
255198
|
+
"class": `source-icon icon-monitor ${SourceIconMap[value]}`
|
|
255132
255199
|
}, null), withDirectives(createVNode("span", {
|
|
255133
255200
|
"class": "common-table-ellipsis"
|
|
255134
255201
|
}, [" ", alias]), [[resolveDirective("overflow-tips"), {
|
|
@@ -255252,8 +255319,8 @@ const EventTable = /* @__PURE__ */ defineComponent({
|
|
|
255252
255319
|
}, null);
|
|
255253
255320
|
});
|
|
255254
255321
|
const sort3 = /* @__PURE__ */ shallowRef(null);
|
|
255255
|
-
const isAllSourceType = /* @__PURE__ */ shallowRef(
|
|
255256
|
-
const sourceType = /* @__PURE__ */ shallowRef([]);
|
|
255322
|
+
const isAllSourceType = /* @__PURE__ */ shallowRef(true);
|
|
255323
|
+
const sourceType = /* @__PURE__ */ shallowRef([SourceTypeEnum.BCS, SourceTypeEnum.BKCI, SourceTypeEnum.HOST, SourceTypeEnum.DEFAULT]);
|
|
255257
255324
|
const sourceTypeOptions = /* @__PURE__ */ shallowRef([{
|
|
255258
255325
|
label: window.i18n.t("全部"),
|
|
255259
255326
|
value: SourceTypeEnum.ALL,
|
|
@@ -255429,10 +255496,10 @@ const EventTable = /* @__PURE__ */ defineComponent({
|
|
|
255429
255496
|
}, [item2.icon ? window.source_app !== "apm" ? createVNode("span", {
|
|
255430
255497
|
"class": `source-icon icon-monitor ${item2.icon}`
|
|
255431
255498
|
}, null) : createVNode("span", {
|
|
255432
|
-
"class": `source-icon icon-monitor ${item2.icon}`,
|
|
255433
255499
|
"style": {
|
|
255434
255500
|
backgroundImage: SourceIconSvgMap[item2.value] ? `url('${SourceIconSvgMap[item2.value]}')` : void 0
|
|
255435
|
-
}
|
|
255501
|
+
},
|
|
255502
|
+
"class": `source-icon icon-monitor ${item2.icon}`
|
|
255436
255503
|
}, null) : void 0, createVNode("span", null, [item2.label]), createVNode("span", null, [createTextVNode(" ("), item2.count, createTextVNode(")")])])]
|
|
255437
255504
|
}));
|
|
255438
255505
|
}
|
|
@@ -255813,7 +255880,7 @@ const ExploreChart = /* @__PURE__ */ defineComponent({
|
|
|
255813
255880
|
default: false
|
|
255814
255881
|
}
|
|
255815
255882
|
},
|
|
255816
|
-
emits: ["dataZoomChange", "durationChange", "restore"],
|
|
255883
|
+
emits: ["dataZoomChange", "durationChange", "restore", "mouseover", "mouseout"],
|
|
255817
255884
|
setup(props2, {
|
|
255818
255885
|
emit: emit2
|
|
255819
255886
|
}) {
|
|
@@ -255877,6 +255944,12 @@ const ExploreChart = /* @__PURE__ */ defineComponent({
|
|
|
255877
255944
|
const handleMouseInChange = (v2) => {
|
|
255878
255945
|
mouseIn.value = v2;
|
|
255879
255946
|
};
|
|
255947
|
+
const handleMouseover = (params2) => {
|
|
255948
|
+
emit2("mouseover", params2);
|
|
255949
|
+
};
|
|
255950
|
+
const handleMouseout = (params2) => {
|
|
255951
|
+
emit2("mouseout", params2);
|
|
255952
|
+
};
|
|
255880
255953
|
watch(() => duration.value, (val) => {
|
|
255881
255954
|
emit2("durationChange", val);
|
|
255882
255955
|
});
|
|
@@ -255905,6 +255978,8 @@ const ExploreChart = /* @__PURE__ */ defineComponent({
|
|
|
255905
255978
|
handleSelectLegend,
|
|
255906
255979
|
handleDataZoom,
|
|
255907
255980
|
handleMouseInChange,
|
|
255981
|
+
handleMouseover,
|
|
255982
|
+
handleMouseout,
|
|
255908
255983
|
t: t3
|
|
255909
255984
|
};
|
|
255910
255985
|
},
|
|
@@ -255939,7 +256014,9 @@ const ExploreChart = /* @__PURE__ */ defineComponent({
|
|
|
255939
256014
|
"group": this.panel.dashboardId,
|
|
255940
256015
|
"option": this.options,
|
|
255941
256016
|
"autoresize": true,
|
|
255942
|
-
"onDatazoom": (e3) => this.handleDataZoom(e3, this.options)
|
|
256017
|
+
"onDatazoom": (e3) => this.handleDataZoom(e3, this.options),
|
|
256018
|
+
"onMouseout": this.handleMouseout,
|
|
256019
|
+
"onMouseover": this.handleMouseover
|
|
255943
256020
|
}, null), this.showRestore && createVNode("span", {
|
|
255944
256021
|
"class": "chart-restore",
|
|
255945
256022
|
"onClick": () => this.$emit("restore")
|
|
@@ -256698,9 +256775,10 @@ const useK8sChartPanel = (options = {}) => {
|
|
|
256698
256775
|
);
|
|
256699
256776
|
const resourceListData = computed(() => {
|
|
256700
256777
|
const obj = {};
|
|
256701
|
-
|
|
256702
|
-
|
|
256703
|
-
|
|
256778
|
+
const target2 = get$2(currentTarget);
|
|
256779
|
+
for (const key2 in target2) {
|
|
256780
|
+
if (key2 !== "bcs_cluster_id" && target2[key2]) {
|
|
256781
|
+
obj[key2] = target2[key2];
|
|
256704
256782
|
}
|
|
256705
256783
|
}
|
|
256706
256784
|
return [obj];
|
|
@@ -256775,7 +256853,7 @@ const useK8sChartPanel = (options = {}) => {
|
|
|
256775
256853
|
resourceMap = map3;
|
|
256776
256854
|
};
|
|
256777
256855
|
const createPanelList = async (signal) => {
|
|
256778
|
-
if (!get$2(metricList)?.length) return;
|
|
256856
|
+
if (!get$2(metricList)?.length || !get$2(currentTarget)) return;
|
|
256779
256857
|
const isWorkloadGroupBy = get$2(groupBy) === K8sTableColumnKeysEnum.WORKLOAD;
|
|
256780
256858
|
await getResourceList(isWorkloadGroupBy, signal);
|
|
256781
256859
|
if (signal.aborted) return;
|
|
@@ -259920,6 +259998,7 @@ const ValueOptions = /* @__PURE__ */ defineComponent({
|
|
|
259920
259998
|
}
|
|
259921
259999
|
scrollLoading.value = false;
|
|
259922
260000
|
loading3.value = false;
|
|
260001
|
+
emit2("getOptions", list2);
|
|
259923
260002
|
return list2;
|
|
259924
260003
|
}
|
|
259925
260004
|
function localOptionsFilter(list2) {
|
|
@@ -260039,6 +260118,16 @@ const ValueTagInput = /* @__PURE__ */ defineComponent({
|
|
|
260039
260118
|
}, {
|
|
260040
260119
|
immediate: true
|
|
260041
260120
|
});
|
|
260121
|
+
const getValueSpan = computed(() => {
|
|
260122
|
+
if (localValue2.value === NULL_VALUE_ID) {
|
|
260123
|
+
return NULL_VALUE_NAME;
|
|
260124
|
+
}
|
|
260125
|
+
const name = props2.valueMap.get(String(localValue2.value));
|
|
260126
|
+
if (["number", "string"].includes(typeof name) && String(name) !== String(localValue2.value)) {
|
|
260127
|
+
return `${name} (${localValue2.value})`;
|
|
260128
|
+
}
|
|
260129
|
+
return localValue2.value;
|
|
260130
|
+
});
|
|
260042
260131
|
function handleClick() {
|
|
260043
260132
|
isEdit.value = true;
|
|
260044
260133
|
inputFocus();
|
|
@@ -260073,6 +260162,7 @@ const ValueTagInput = /* @__PURE__ */ defineComponent({
|
|
|
260073
260162
|
isEdit.value = false;
|
|
260074
260163
|
handleChangeEmit();
|
|
260075
260164
|
}
|
|
260165
|
+
emit2("blur");
|
|
260076
260166
|
}
|
|
260077
260167
|
function handleChangeEmit() {
|
|
260078
260168
|
if (props2.value !== localValue2.value) {
|
|
@@ -260085,16 +260175,21 @@ const ValueTagInput = /* @__PURE__ */ defineComponent({
|
|
|
260085
260175
|
function handleDelete(e3) {
|
|
260086
260176
|
emit2("delete", e3);
|
|
260087
260177
|
}
|
|
260178
|
+
function handleFocus() {
|
|
260179
|
+
emit2("focus");
|
|
260180
|
+
}
|
|
260088
260181
|
return {
|
|
260089
260182
|
isEdit,
|
|
260090
260183
|
localValue: localValue2,
|
|
260184
|
+
getValueSpan,
|
|
260091
260185
|
handleComponentClick,
|
|
260092
260186
|
handleClick,
|
|
260093
260187
|
handleBlur,
|
|
260094
260188
|
handleInput,
|
|
260095
260189
|
handleKeyDown,
|
|
260096
260190
|
handleKeyUp,
|
|
260097
|
-
handleDelete
|
|
260191
|
+
handleDelete,
|
|
260192
|
+
handleFocus
|
|
260098
260193
|
};
|
|
260099
260194
|
},
|
|
260100
260195
|
render() {
|
|
@@ -260109,12 +260204,13 @@ const ValueTagInput = /* @__PURE__ */ defineComponent({
|
|
|
260109
260204
|
"key": "01",
|
|
260110
260205
|
"class": "value-span",
|
|
260111
260206
|
"onClick": () => this.handleClick()
|
|
260112
|
-
}, [this.
|
|
260207
|
+
}, [this.getValueSpan]), this.isEdit ? withDirectives(createVNode("textarea", {
|
|
260113
260208
|
"ref": "input",
|
|
260114
260209
|
"class": "value-span-input",
|
|
260115
260210
|
"onUpdate:modelValue": ($event) => this.localValue = $event,
|
|
260116
260211
|
"spellcheck": false,
|
|
260117
260212
|
"onBlur": this.handleBlur,
|
|
260213
|
+
"onFocus": this.handleFocus,
|
|
260118
260214
|
"onInput": this.handleInput,
|
|
260119
260215
|
"onKeydown": this.handleKeyDown,
|
|
260120
260216
|
"onKeyup": this.handleKeyUp
|
|
@@ -261188,6 +261284,7 @@ const ValueTagSelector = /* @__PURE__ */ defineComponent({
|
|
|
261188
261284
|
const inputValue = /* @__PURE__ */ shallowRef("");
|
|
261189
261285
|
const isFocus = /* @__PURE__ */ shallowRef(false);
|
|
261190
261286
|
const isChecked = /* @__PURE__ */ shallowRef(false);
|
|
261287
|
+
const optionsMap = /* @__PURE__ */ shallowRef(/* @__PURE__ */ new Map());
|
|
261191
261288
|
const isTypeInteger = computed(() => [EFieldType.integer, EFieldType.long].includes(props2.fieldInfo?.type));
|
|
261192
261289
|
init2();
|
|
261193
261290
|
watch(() => props2.value, (val) => {
|
|
@@ -261219,9 +261316,6 @@ const ValueTagSelector = /* @__PURE__ */ defineComponent({
|
|
|
261219
261316
|
}, 100);
|
|
261220
261317
|
}
|
|
261221
261318
|
}
|
|
261222
|
-
function handleSelectorBlur() {
|
|
261223
|
-
emit2("selectorBlur");
|
|
261224
|
-
}
|
|
261225
261319
|
function handleCheck(item2) {
|
|
261226
261320
|
activeIndex.value = -1;
|
|
261227
261321
|
if (localValue2.value.some((v2) => v2.id === item2.id)) return;
|
|
@@ -261311,6 +261405,22 @@ const ValueTagSelector = /* @__PURE__ */ defineComponent({
|
|
|
261311
261405
|
function handleSelectorFocus() {
|
|
261312
261406
|
emit2("selectorFocus");
|
|
261313
261407
|
}
|
|
261408
|
+
function handleSelectorBlur() {
|
|
261409
|
+
emit2("selectorBlur");
|
|
261410
|
+
}
|
|
261411
|
+
function handleGetOptions(options) {
|
|
261412
|
+
const oldMap = optionsMap.value;
|
|
261413
|
+
for (const option2 of options) {
|
|
261414
|
+
oldMap.set(String(option2.id), option2.name);
|
|
261415
|
+
}
|
|
261416
|
+
optionsMap.value = new Map(oldMap);
|
|
261417
|
+
}
|
|
261418
|
+
function handleValueTagInputBlur() {
|
|
261419
|
+
handleSelectorBlur();
|
|
261420
|
+
}
|
|
261421
|
+
function handleValueTagInputFocus() {
|
|
261422
|
+
handleSelectorFocus();
|
|
261423
|
+
}
|
|
261314
261424
|
return {
|
|
261315
261425
|
localValue: localValue2,
|
|
261316
261426
|
isFocus,
|
|
@@ -261318,6 +261428,7 @@ const ValueTagSelector = /* @__PURE__ */ defineComponent({
|
|
|
261318
261428
|
isShowDropDown,
|
|
261319
261429
|
inputValue,
|
|
261320
261430
|
isTypeInteger,
|
|
261431
|
+
optionsMap,
|
|
261321
261432
|
handleBackspaceNull,
|
|
261322
261433
|
handleClick,
|
|
261323
261434
|
handleBlur,
|
|
@@ -261327,6 +261438,9 @@ const ValueTagSelector = /* @__PURE__ */ defineComponent({
|
|
|
261327
261438
|
handleDelete,
|
|
261328
261439
|
handleIsChecked,
|
|
261329
261440
|
handleCheck,
|
|
261441
|
+
handleGetOptions,
|
|
261442
|
+
handleValueTagInputBlur,
|
|
261443
|
+
handleValueTagInputFocus,
|
|
261330
261444
|
t: t3
|
|
261331
261445
|
};
|
|
261332
261446
|
},
|
|
@@ -261358,8 +261472,11 @@ const ValueTagSelector = /* @__PURE__ */ defineComponent({
|
|
|
261358
261472
|
"is-error": this.isTypeInteger ? !isNumeric(item2.id) : false
|
|
261359
261473
|
},
|
|
261360
261474
|
"value": item2.id,
|
|
261475
|
+
"valueMap": this.optionsMap,
|
|
261476
|
+
"onBlur": this.handleValueTagInputBlur,
|
|
261361
261477
|
"onChange": (v2) => this.handleTagUpdate(v2, index2),
|
|
261362
|
-
"onDelete": () => this.handleDelete(index2)
|
|
261478
|
+
"onDelete": () => this.handleDelete(index2),
|
|
261479
|
+
"onFocus": this.handleValueTagInputFocus
|
|
261363
261480
|
}, null), this.activeIndex === index2 && inputRender(`${item2.id}_input`)]), this.activeIndex === -1 && inputRender("input")] : inputRender("input")]), this.isShowDropDown && createVNode(ValueOptions, {
|
|
261364
261481
|
"fieldInfo": this.fieldInfo,
|
|
261365
261482
|
"getValueFn": this.getValueFn,
|
|
@@ -261369,6 +261486,7 @@ const ValueTagSelector = /* @__PURE__ */ defineComponent({
|
|
|
261369
261486
|
"noDataSimple": true,
|
|
261370
261487
|
"search": this.inputValue,
|
|
261371
261488
|
"selected": this.localValue.map((item2) => item2.id),
|
|
261489
|
+
"onGetOptions": this.handleGetOptions,
|
|
261372
261490
|
"onIsChecked": this.handleIsChecked,
|
|
261373
261491
|
"onSelect": this.handleCheck
|
|
261374
261492
|
}, null)]);
|
|
@@ -264283,51 +264401,6 @@ const useTable = (options) => {
|
|
|
264283
264401
|
setDefaultFieldWidth
|
|
264284
264402
|
};
|
|
264285
264403
|
};
|
|
264286
|
-
const LogException = /* @__PURE__ */ defineComponent({
|
|
264287
|
-
name: "LogException",
|
|
264288
|
-
setup() {
|
|
264289
|
-
const {
|
|
264290
|
-
t: t3
|
|
264291
|
-
} = useI18n$1();
|
|
264292
|
-
const searchEmpty = () => {
|
|
264293
|
-
return createVNode("div", {
|
|
264294
|
-
"class": "log-table-new-empty-data"
|
|
264295
|
-
}, [createVNode("h1", null, [t3("检索无数据")]), createVNode("div", {
|
|
264296
|
-
"class": "sub-title"
|
|
264297
|
-
}, [t3("您可按照以下顺序调整检索方式")]), createVNode("div", {
|
|
264298
|
-
"class": "empty-validate-steps"
|
|
264299
|
-
}, [createVNode("div", {
|
|
264300
|
-
"class": "validate-step1"
|
|
264301
|
-
}, [createVNode("h3", null, [createTextVNode("1. "), t3("优化查询语句")]), createVNode("div", {
|
|
264302
|
-
"class": "step1-content"
|
|
264303
|
-
}, [createVNode("span", {
|
|
264304
|
-
"class": "step1-content-label"
|
|
264305
|
-
}, [t3("查询范围"), createTextVNode(":")]), createVNode("span", {
|
|
264306
|
-
"class": "step1-content-value"
|
|
264307
|
-
}, [createTextVNode("log: bklog*"), createVNode("br", null, null), t3("包含"), createTextVNode(" bklog"), createVNode("br", null, null), createTextVNode("= bklog "), t3("使用通配符"), createTextVNode(" (*)")])]), createVNode("div", {
|
|
264308
|
-
"class": "step1-content"
|
|
264309
|
-
}, [createVNode("span", {
|
|
264310
|
-
"class": "step1-content-label"
|
|
264311
|
-
}, [t3("精准匹配"), createTextVNode(":")]), createVNode("span", {
|
|
264312
|
-
"class": "step1-content-value"
|
|
264313
|
-
}, [createTextVNode('log: "bklog"')])])]), createVNode("div", {
|
|
264314
|
-
"class": "validate-step2"
|
|
264315
|
-
}, [createVNode("h3", null, [createTextVNode("2. "), t3("检查是否为分词问题")]), createVNode("div", null, [t3("当您的鼠标移动至对应日志内容上时,该日志单词将展示为蓝色。"), createVNode("br", null, null), createVNode("br", null, null), t3("若目标内容为整段蓝色,或中间存在字符粘连的情况。"), createVNode("br", null, null), t3("可能是因为分词导致的问题"), createTextVNode(";"), createVNode("br", null, null), createVNode("br", null, null), t3("将字符粘连的字符设置至自定义分词中,等待 3~5 分钟,新上报的日志即可生效设置。")])]), createVNode("div", {
|
|
264316
|
-
"class": "validate-step3"
|
|
264317
|
-
}, [createVNode("h3", null, [createTextVNode("3."), t3("一键反馈")]), createVNode("div", null, [t3("若您仍无法确认问题原因,请点击下方反馈按钮与我们联系,平台将第一时间响应处理。"), createVNode("br", null, null), createVNode("a", {
|
|
264318
|
-
"class": "segment-span-tag",
|
|
264319
|
-
"href": "wxwork://message/?username=BK助手"
|
|
264320
|
-
}, [t3("问题反馈")])])])])]);
|
|
264321
|
-
};
|
|
264322
|
-
return {
|
|
264323
|
-
t: t3,
|
|
264324
|
-
searchEmpty
|
|
264325
|
-
};
|
|
264326
|
-
},
|
|
264327
|
-
render() {
|
|
264328
|
-
return this.searchEmpty();
|
|
264329
|
-
}
|
|
264330
|
-
});
|
|
264331
264404
|
const LogTableNew = /* @__PURE__ */ defineComponent({
|
|
264332
264405
|
name: "LogTableNew",
|
|
264333
264406
|
props: {
|
|
@@ -264574,7 +264647,7 @@ const LogTableNew = /* @__PURE__ */ defineComponent({
|
|
|
264574
264647
|
"tableLayout": "fixed",
|
|
264575
264648
|
"onExpandChange": this.handleExpandChange,
|
|
264576
264649
|
"onSortChange": this.handleSortChange
|
|
264577
|
-
}, null) :
|
|
264650
|
+
}, null) : this.$slots?.empty?.()]);
|
|
264578
264651
|
}
|
|
264579
264652
|
});
|
|
264580
264653
|
const getAggTermsData = request("POST", "apm_log_forward/bklog/api/v1/search/index_set/{pk}/aggs/terms/");
|
|
@@ -264661,6 +264734,51 @@ function useLogFilter() {
|
|
|
264661
264734
|
setParams
|
|
264662
264735
|
};
|
|
264663
264736
|
}
|
|
264737
|
+
const LogException = /* @__PURE__ */ defineComponent({
|
|
264738
|
+
name: "LogException",
|
|
264739
|
+
setup() {
|
|
264740
|
+
const {
|
|
264741
|
+
t: t3
|
|
264742
|
+
} = useI18n$1();
|
|
264743
|
+
const searchEmpty = () => {
|
|
264744
|
+
return createVNode("div", {
|
|
264745
|
+
"class": "log-table-new-empty-data"
|
|
264746
|
+
}, [createVNode("h1", null, [t3("检索无数据")]), createVNode("div", {
|
|
264747
|
+
"class": "sub-title"
|
|
264748
|
+
}, [t3("您可按照以下顺序调整检索方式")]), createVNode("div", {
|
|
264749
|
+
"class": "empty-validate-steps"
|
|
264750
|
+
}, [createVNode("div", {
|
|
264751
|
+
"class": "validate-step1"
|
|
264752
|
+
}, [createVNode("h3", null, [createTextVNode("1. "), t3("优化查询语句")]), createVNode("div", {
|
|
264753
|
+
"class": "step1-content"
|
|
264754
|
+
}, [createVNode("span", {
|
|
264755
|
+
"class": "step1-content-label"
|
|
264756
|
+
}, [t3("查询范围"), createTextVNode(":")]), createVNode("span", {
|
|
264757
|
+
"class": "step1-content-value"
|
|
264758
|
+
}, [createTextVNode("log: bklog*"), createVNode("br", null, null), t3("包含"), createTextVNode(" bklog"), createVNode("br", null, null), createTextVNode("= bklog "), t3("使用通配符"), createTextVNode(" (*)")])]), createVNode("div", {
|
|
264759
|
+
"class": "step1-content"
|
|
264760
|
+
}, [createVNode("span", {
|
|
264761
|
+
"class": "step1-content-label"
|
|
264762
|
+
}, [t3("精准匹配"), createTextVNode(":")]), createVNode("span", {
|
|
264763
|
+
"class": "step1-content-value"
|
|
264764
|
+
}, [createTextVNode('log: "bklog"')])])]), createVNode("div", {
|
|
264765
|
+
"class": "validate-step2"
|
|
264766
|
+
}, [createVNode("h3", null, [createTextVNode("2. "), t3("检查是否为分词问题")]), createVNode("div", null, [t3("当您的鼠标移动至对应日志内容上时,该日志单词将展示为蓝色。"), createVNode("br", null, null), createVNode("br", null, null), t3("若目标内容为整段蓝色,或中间存在字符粘连的情况。"), createVNode("br", null, null), t3("可能是因为分词导致的问题"), createTextVNode(";"), createVNode("br", null, null), createVNode("br", null, null), t3("将字符粘连的字符设置至自定义分词中,等待 3~5 分钟,新上报的日志即可生效设置。")])]), createVNode("div", {
|
|
264767
|
+
"class": "validate-step3"
|
|
264768
|
+
}, [createVNode("h3", null, [createTextVNode("3."), t3("一键反馈")]), createVNode("div", null, [t3("若您仍无法确认问题原因,请点击下方反馈按钮与我们联系,平台将第一时间响应处理。"), createVNode("br", null, null), createVNode("a", {
|
|
264769
|
+
"class": "segment-span-tag",
|
|
264770
|
+
"href": "wxwork://message/?username=BK助手"
|
|
264771
|
+
}, [t3("问题反馈")])])])])]);
|
|
264772
|
+
};
|
|
264773
|
+
return {
|
|
264774
|
+
t: t3,
|
|
264775
|
+
searchEmpty
|
|
264776
|
+
};
|
|
264777
|
+
},
|
|
264778
|
+
render() {
|
|
264779
|
+
return this.searchEmpty();
|
|
264780
|
+
}
|
|
264781
|
+
});
|
|
264664
264782
|
const fieldTypeMap = {
|
|
264665
264783
|
integer: {
|
|
264666
264784
|
name: window.i18n.t("数字"),
|
|
@@ -265541,6 +265659,18 @@ const PanelLog = /* @__PURE__ */ defineComponent({
|
|
|
265541
265659
|
"targetList": this.displayColumnFields,
|
|
265542
265660
|
"onConfirm": this.handleDisplayColumnFieldsChange
|
|
265543
265661
|
}, null);
|
|
265662
|
+
},
|
|
265663
|
+
empty: () => {
|
|
265664
|
+
if (!this.indexSetList.length) {
|
|
265665
|
+
return createVNode(__webpack_exports__default$a, {
|
|
265666
|
+
"type": "building"
|
|
265667
|
+
}, {
|
|
265668
|
+
default: () => [createVNode("span", {
|
|
265669
|
+
"style": "margin: 0 24px 16px 24px;font-size: 14px;color: rgb(151, 155, 165);display: inline-block;"
|
|
265670
|
+
}, [this.t("暂无关联日志")])]
|
|
265671
|
+
});
|
|
265672
|
+
}
|
|
265673
|
+
return createVNode(LogException, null, null);
|
|
265544
265674
|
}
|
|
265545
265675
|
})]);
|
|
265546
265676
|
}
|
|
@@ -274097,22 +274227,6 @@ const ALERT_FILTER_FIELDS = [
|
|
|
274097
274227
|
}
|
|
274098
274228
|
]
|
|
274099
274229
|
},
|
|
274100
|
-
{
|
|
274101
|
-
name: "tags",
|
|
274102
|
-
alias: "维度",
|
|
274103
|
-
type: EFieldType.keyword,
|
|
274104
|
-
isEnableOptions: true,
|
|
274105
|
-
methods: [
|
|
274106
|
-
{
|
|
274107
|
-
alias: "=",
|
|
274108
|
-
value: "eq"
|
|
274109
|
-
},
|
|
274110
|
-
{
|
|
274111
|
-
alias: "!=",
|
|
274112
|
-
value: "neq"
|
|
274113
|
-
}
|
|
274114
|
-
]
|
|
274115
|
-
},
|
|
274116
274230
|
// tags 维度查询示例:
|
|
274117
274231
|
// {
|
|
274118
274232
|
// "key": "tags.auto_instance_id_0",
|
|
@@ -274231,6 +274345,22 @@ const ALERT_FILTER_FIELDS = [
|
|
|
274231
274345
|
value: "neq"
|
|
274232
274346
|
}
|
|
274233
274347
|
]
|
|
274348
|
+
},
|
|
274349
|
+
{
|
|
274350
|
+
name: "tags",
|
|
274351
|
+
alias: "维度",
|
|
274352
|
+
type: EFieldType.keyword,
|
|
274353
|
+
isEnableOptions: true,
|
|
274354
|
+
methods: [
|
|
274355
|
+
{
|
|
274356
|
+
alias: "=",
|
|
274357
|
+
value: "eq"
|
|
274358
|
+
},
|
|
274359
|
+
{
|
|
274360
|
+
alias: "!=",
|
|
274361
|
+
value: "neq"
|
|
274362
|
+
}
|
|
274363
|
+
]
|
|
274234
274364
|
}
|
|
274235
274365
|
];
|
|
274236
274366
|
const ALERT_STORAGE_KEY = "__ALERT_EVENT_COLUMN__";
|
|
@@ -311755,7 +311885,7 @@ function useAlarmFilter(options) {
|
|
|
311755
311885
|
}
|
|
311756
311886
|
const REFRESH_EFFECT_KEY = "__REFRESH_EFFECT_KEY__";
|
|
311757
311887
|
const useAlarmCenterStore = /* @__PURE__ */ defineStore("alarmCenter", () => {
|
|
311758
|
-
const timeRange = /* @__PURE__ */ ref(
|
|
311888
|
+
const timeRange = /* @__PURE__ */ ref(["now-7d", "now"]);
|
|
311759
311889
|
const timezone = /* @__PURE__ */ shallowRef(getDefaultTimezone());
|
|
311760
311890
|
const innerRefreshInterval = /* @__PURE__ */ shallowRef(-1);
|
|
311761
311891
|
const refreshImmediate = /* @__PURE__ */ shallowRef("");
|
|
@@ -311892,7 +312022,7 @@ const useAlarmCenterStore = /* @__PURE__ */ defineStore("alarmCenter", () => {
|
|
|
311892
312022
|
bizIds.value = [+window.bk_biz_id];
|
|
311893
312023
|
conditions.value = [];
|
|
311894
312024
|
queryString2.value = "";
|
|
311895
|
-
timeRange.value =
|
|
312025
|
+
timeRange.value = ["now-7d", "now"];
|
|
311896
312026
|
timezone.value = getDefaultTimezone();
|
|
311897
312027
|
refreshInterval.value = -1;
|
|
311898
312028
|
refreshImmediate.value = "";
|
|
@@ -314216,12 +314346,15 @@ const AlarmAnalysis = /* @__PURE__ */ defineComponent({
|
|
|
314216
314346
|
"title": this.t("告警分析"),
|
|
314217
314347
|
"onCollapseChange": this.handleCollapse
|
|
314218
314348
|
}, {
|
|
314219
|
-
headerCustom: () =>
|
|
314220
|
-
|
|
314221
|
-
|
|
314222
|
-
|
|
314223
|
-
"
|
|
314224
|
-
|
|
314349
|
+
headerCustom: () => {
|
|
314350
|
+
if (this.expand) return createVNode("div", {
|
|
314351
|
+
"class": "settings",
|
|
314352
|
+
"onClick": this.handleSettingsClick
|
|
314353
|
+
}, [createVNode("i", {
|
|
314354
|
+
"class": "icon-monitor icon-shezhi1"
|
|
314355
|
+
}, null), createVNode("span", null, [this.t("设置")])]);
|
|
314356
|
+
return null;
|
|
314357
|
+
},
|
|
314225
314358
|
default: this.renderCollapseContent
|
|
314226
314359
|
}), createVNode(AlarmAnalysisDetail, {
|
|
314227
314360
|
"show": this.detailSliderShow,
|