diff options
Diffstat (limited to 'usecaseui-portal/src/app/alarm')
-rw-r--r-- | usecaseui-portal/src/app/alarm/alarm.component.ts | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/usecaseui-portal/src/app/alarm/alarm.component.ts b/usecaseui-portal/src/app/alarm/alarm.component.ts index 3f563b6e..58c75e7b 100644 --- a/usecaseui-portal/src/app/alarm/alarm.component.ts +++ b/usecaseui-portal/src/app/alarm/alarm.component.ts @@ -132,13 +132,16 @@ export class AlarmComponent implements OnInit { startTime: this.startTime, endTime: this.endTime } - this.myhttp.getHomePerformanceChartData(paramsObj) + this.myhttp.getHomeAlarmChartData(paramsObj) .subscribe((data) => { this.alarmChartData = { - series: [ - { data: data.CPU }, - { data: data.CPU }, - { data: data.Memory } + xAxis:{ + data:data.dataList + }, + series:[ + {data:data.allList}, + {data:data.ActiveList}, + {data:data.closedList} ] } }, (err) => { @@ -151,13 +154,16 @@ export class AlarmComponent implements OnInit { alarmSourceName: this.sourceName, day:"day" } - this.myhttp.getHomePerformanceChartData(paramsObj) + this.myhttp.getHomeAlarmChartData(paramsObj) .subscribe((data) => { this.alarmChartData = { - series: [ - { data: data.CPU }, - { data: data.CPU }, - { data: data.Memory } + xAxis:{ + data:data.dataList + }, + series:[ + {data:data.allList}, + {data:data.ActiveList}, + {data:data.closedList} ] } }, (err) => { @@ -169,13 +175,16 @@ export class AlarmComponent implements OnInit { alarmSourceName: this.sourceName, day:"month" } - this.myhttp.getHomePerformanceChartData(paramsObj) + this.myhttp.getHomeAlarmChartData(paramsObj) .subscribe((data) => { this.alarmChartData = { - series: [ - { data: data.CPU }, - { data: data.CPU }, - { data: data.Memory } + xAxis:{ + data:data.dataList + }, + series:[ + {data:data.allList}, + {data:data.ActiveList}, + {data:data.closedList} ] } }, (err) => { |