示例#1
0
 public DiskNameCollector(CollectorID id, Remote remote_info)
     : base(new WMIContext("Win32_LogicalDisk", "Name,VolumeName,DriveType", remote_info),
            new DataCollectorContext(id, ECollectorType.Disk))
 {
 }
示例#2
0
 public UptimeCollector(CollectorID id, Remote remote_info)
     : base(new WMIContext("Win32_PerfFormattedData_PerfOS_System", "SystemUpTime", remote_info),
            new DataCollectorContext(id, ECollectorType.Uptime))
 {
 }