nagios-check-0.3.0: lib/System/Nagios/Plugin/Range.hs
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
module System.Nagios.Plugin.Range
(
Range
) where
import System.Nagios.Plugin.PerfData (PerfValue)
-- | A 'Range' is a combination of a lower boundary and an upper boundary (x,y).
-- An 'AcceptableRange' asserts that measured values between x and y
-- imply that nothing is wrong; an UnacceptableRange implies the inverse.
data Range = AcceptableRange PerfValue PerfValue
| UnacceptableRange PerfValue PerfValue