Files
flutter_server_box/lib/data/model/server/cpu_status.dart
2021-10-31 21:40:36 +08:00

39 lines
564 B
Dart

///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
class CpuStatus {
/*
{
"user": 0,
"sys": 0,
"nice": 0,
"idel": 0,
"wa": 0,
"hi": 0,
"si": 0,
"st": 0
}
*/
late String id;
late int user;
late int sys;
late int nice;
late int idle;
late int iowait;
late int irq;
late int softirq;
CpuStatus(
this.id,
this.user,
this.sys,
this.nice,
this.idle,
this.iowait,
this.irq,
this.softirq,
);
int get total => user + sys + nice + idle + iowait + irq + softirq;
}