[manager,webapp] 指标历史数据API定义,去掉instance展示

This commit is contained in:
tomsun28
2021-12-18 18:25:44 +08:00
parent 65ddcadafc
commit 01b47ca2a0
5 changed files with 14 additions and 34 deletions

View File

@@ -3,13 +3,11 @@
<nz-table #smallTable nzSize="small" nzNoResult="No Metrics Data" nzFrontPagination="false" [nzData]="valueRows">
<thead>
<tr>
<th style="text-align: center">instanceId</th>
<th style="text-align: center" *ngFor="let field of fields">{{field.name}}</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let valueRow of smallTable.data">
<td>{{valueRow.instance || ''}}</td>
<td *ngFor="let value of valueRow.values">{{ value.origin}}</td>
</tr>
</tbody>

View File

@@ -1,6 +1,5 @@
import {Component, Input, OnInit} from '@angular/core';
import {MonitorService} from "../../../service/monitor.service";
import {finalize} from "rxjs/operators";
@Component({
selector: 'app-monitor-data-chart',
@@ -49,23 +48,4 @@ export class MonitorDataChartComponent implements OnInit {
})
}
data = [
{
name: 'John Brown',
age: 32,
address: 'New York No. 1 Lake Park'
},
{
name: 'Jim Green',
age: 42,
address: 'London No. 1 Lake Park'
},
{
name: 'Joe Black',
age: 32,
address: 'Sidney No. 1 Lake Park'
}
];
}