コード例 #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
ファイル: UptimeCollector.cs プロジェクト: gaybro8777/common
 public UptimeCollector(CollectorID id, Remote remote_info)
     : base(new WMIContext("Win32_PerfFormattedData_PerfOS_System", "SystemUpTime", remote_info),
            new DataCollectorContext(id, ECollectorType.Uptime))
 {
 }