Module riaknostic_util

Utility functions for riaknostic.

Description

Utility functions for riaknostic.

Function Index

binary_to_float/1Converts a binary containing a text representation of a float into a float type.
run_command/1Runs a shell command and returns the output.
short_name/1Converts a check module name into a short name that can be used to refer to a check on the command line.

Function Details

binary_to_float/1

binary_to_float(Bin::binary()) -> float()

Converts a binary containing a text representation of a float into a float type.

run_command/1

run_command(Command::iodata()) -> StdOut::iodata()

Runs a shell command and returns the output. stderr is redirected to stdout so its output will be included.

short_name/1

short_name(Mod::module()) -> iodata() | unicode:charlist()

Converts a check module name into a short name that can be used to refer to a check on the command line. For example, riaknostic_check_disk becomes "disk".


Generated by EDoc, Feb 18 2012, 03:37:56.