[manager]bugfix:fix linux interface metrics no instance (#75)
This commit is contained in:
@@ -154,6 +154,7 @@ metrics:
|
|||||||
# 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 instance是否为实例主键 unit:指标单位
|
# 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 instance是否为实例主键 unit:指标单位
|
||||||
- field: interface_name
|
- field: interface_name
|
||||||
type: 1
|
type: 1
|
||||||
|
instance: true
|
||||||
- field: receive_bytes
|
- field: receive_bytes
|
||||||
type: 0
|
type: 0
|
||||||
unit: byte
|
unit: byte
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
.dynamic-button {
|
|
||||||
font-size: 20px;
|
|
||||||
margin-left: 45%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dynamic-button:hover {
|
|
||||||
font-size: 30px;
|
|
||||||
}
|
|
||||||
@@ -16,7 +16,7 @@ import { MonitorService } from '../../../service/monitor.service';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-monitor-modify',
|
selector: 'app-monitor-modify',
|
||||||
templateUrl: './monitor-edit.component.html',
|
templateUrl: './monitor-edit.component.html',
|
||||||
styleUrls: ['./monitor-edit.component.less']
|
styles: []
|
||||||
})
|
})
|
||||||
export class MonitorEditComponent implements OnInit {
|
export class MonitorEditComponent implements OnInit {
|
||||||
constructor(
|
constructor(
|
||||||
@@ -72,7 +72,6 @@ export class MonitorEditComponent implements OnInit {
|
|||||||
)
|
)
|
||||||
.subscribe(message => {
|
.subscribe(message => {
|
||||||
if (message.code === 0) {
|
if (message.code === 0) {
|
||||||
this.paramDefines = message.data;
|
|
||||||
this.params = [];
|
this.params = [];
|
||||||
this.advancedParams = [];
|
this.advancedParams = [];
|
||||||
this.paramDefines = [];
|
this.paramDefines = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user