| Class | Vmstat::Snapshot |
| In: |
lib/vmstat/snapshot.rb
|
| Parent: | Object |
Snapshots help to gather information about the whole system quickly. @attr [Time] at the timestamp, when the snapshot was created. @attr [Time] boot_time the timestamp, when the system booted. @attr [Array<Vmstat::Cpu>] cpus the data of each and every cpu. @attr [Array<Vmstat::Disk>] disks the disks that are part of the snapshot. @attr [Vmstat::LoadAverage] load_average current load average at the time
when the snapshot toke place.
@attr [Vmstat::Memory] memory the memory data snapshot. @attr [Array<Vmstat::NetworkInterface>] network_interfaces the network
interface data snapshots per network interface.
@attr [Vmstat::Task] task optionally the information for the current task @example Creating a snapshot
snapshop = Vmstat::Snapshop.new(["/dev/disk0", "/dev/disk1"])
| at | [R] | |
| boot_time | [R] | |
| cpus | [R] | |
| disks | [R] | |
| load_average | [R] | |
| memory | [R] | |
| network_interfaces | [R] | |
| task | [R] |
Create a new snapshot for system informations. The passed paths array, should contain the disk paths to create a snapshot for. @param [Array<String>] paths the paths to create snapshots for