Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Vmstator is a Ruby API for vmstat. It provides an OO interface to be able to parse the contents of the output of vmstat and access that infromation intuitively.
Currently working on / testing on Debian GNU/Linux 8
Add this line to your application's Gemfile:
gem 'vmstator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vmstator
Still working on this bit, but, for the mean time...
require 'vmstator'
parser = Vmstator::Parser.new
# Parse command-line arguments to vmstat.
parser.parse("-a")
# Access the command-line arguments directly as methods.
parser.active
# Other Vmstator methods for vmstat:
parser.active
parser.average
parser.disk_statistics
parser.disk_summary
parser.event_counter_statistics
parser.forks
parser.parse
parser.slab_info
parser.version
# If returns a Vmstator object, for example, for active memory "-a" ...
active_memory = parser.active
# Example, the available methods to access data about Vmstator::ActiveMemory objects.
active_memory.blocks_recv
active_memory.buffer
active_memory.cntxt_swtchs
active_memory.idle_time
active_memory.kernel
active_memory.runnable
active_memory.swapped_in
active_memory.uninter
active_memory.used
active_memory.blocks_sent
active_memory.cache
active_memory.free
active_memory.interrupts
active_memory.non_kernel
active_memory.stolen
active_memory.swapped_to
active_memory.update
active_memory.waiting
# Types of Vmstator objects:
ActiveMemory
Cache
DiskStatistics
EventCounterStatistics
Memory
SlabInfo
AverageMemory
Disk
DiskSummary
Parser
Stats
VmstatError
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that vmstator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.