Commit 04f745ed authored by Ziwen Su's avatar Ziwen Su

Added io switch.

parent 6634e381
......@@ -51,6 +51,13 @@ export class JobBaseComponent implements OnInit {
ngOnInit(){
this.type_items = [
{label: 'Lustre IO', command: () => {
this.switchIO('IO');
}},
{label: 'Local IO', command: () => {
this.switchIO('Local_IO');
}},
{separator: true},
{label: 'Maximum', command: () => {
this.selectedValueType = 'Maximum';
this.updateTimelineData();
......@@ -305,4 +312,5 @@ export class JobBaseComponent implements OnInit {
getTableData() {}
getChartData() {}
updateTimelineData() {}
switchIO(key:string){}
}
......@@ -168,4 +168,14 @@ export class JobChartComponent extends JobBaseComponent {
for (let timeline of this.timelines)
timeline.internalRelayout(this.selectedValueType);
}
switchIO(key:string){
if ( key == "IO" ){
this.timelines.splice(3, 1, new TimelineChart(this.monitoringservice, 3, 'io', this.selectedValueType, this.rows));
this.timelines.splice(5, 1, new TimelineChart(this.monitoringservice, 5, 'io_meta', this.selectedValueType, this.rows));
}
if ( key == "Local_IO" ){
this.timelines.splice(3, 1, new TimelineChart(this.monitoringservice, 3, 'local_io', this.selectedValueType, this.rows));
this.timelines.splice(5, 1, new TimelineChart(this.monitoringservice, 5, 'local_io_meta', this.selectedValueType, this.rows));
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment