The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OP::Enum::State - Criticality enumeration

DESCRIPTION

Exports "Nagios-style" states: OK (0), Warn (1), and Crit (2).

SYNOPSIS

  use OP::Enum::State;

  sub foo($) {
    ...

    return OK if $ok;
    return Warn if $warn;
    return Crit if $crit;
  }

CONSTANTS

  • OP::Enum::State::OK

    0

  • OP::Enum::State::Warn

    1

  • OP::Enum::State::Crit

    2

SEE ALSO

OP::Enum, OP::Persistence

This file is part of OP.