MySQL 26.10.0
Source Code Documentation
hm::ds::Warning_State Class Reference

Warning State. More...

#include <health_monitor_disk_state.h>

Inheritance diagram for hm::ds::Warning_State:
[legend]

Public Member Functions

 Warning_State ()
 
void enter () override
 Warning State - Enter Issue a warning immediately upon entering the warning state. More...
 
void check_levels () override
 Warning State - Check levels Issue warnings when the warning level changes. More...
 
- Public Member Functions inherited from hm::ds::Storage_State
 Storage_State ()=default
 
 Storage_State (const char *state_name, State state)
 
virtual ~Storage_State ()=default
 
virtual void exit ()
 
enum State state () const
 

Static Public Member Functions

static bool check_warning_level ()
 Warning State - Check warning levels. More...
 
- Static Public Member Functions inherited from hm::ds::Storage_State
static void set_collector (Disk_Collector *collector)
 
static void get_params ()
 Storage State - Get params Get the storage threshold params from the disk collector. More...
 
static void get_levels ()
 Storage State - Get levels Get the storage levels from the disk collector. More...
 
static bool normal_level ()
 Storage State - Storage levels. More...
 
static bool warning_level ()
 
static bool low_level ()
 
static bool critical_level ()
 
static bool disk_error ()
 
static void set_normal_state ()
 Storage State - Transitions. More...
 
static void set_warning_state ()
 
static void set_low_limit_state ()
 
static void set_critical_state ()
 
static void set_error_state ()
 

Additional Inherited Members

- Public Types inherited from hm::ds::Storage_State
enum  State {
  UNDEF , START , STOP , NORMAL ,
  WARNING , LOW_LIMIT , CRITICAL , RECOVERY_1 ,
  RECOVERY_2 , ERROR
}
 
- Static Public Attributes inherited from hm::ds::Storage_State
static Disk_Collector * dc {nullptr}
 
static size_t available_mb {0}
 
static size_t reserve_mb {0}
 
static size_t critical_level_mb {0}
 
static size_t warn_level_1_mb {0}
 
static size_t warn_level_2_mb {0}
 
static size_t warn_level_3_mb {0}
 
static size_t max_warn_level_mb {0}
 
static size_t recovery_level_mb {0}
 

Detailed Description

Warning State.

Available space is below one or more warning levels, but above the low space limit.

Constructor & Destructor Documentation

◆ Warning_State()

hm::ds::Warning_State::Warning_State ( )
inline

Member Function Documentation

◆ check_levels()

void hm::Warning_State::check_levels ( )
overridevirtual

Warning State - Check levels Issue warnings when the warning level changes.

Warning State - Check levels.

Reimplemented from hm::ds::Storage_State.

◆ check_warning_level()

bool hm::Warning_State::check_warning_level ( )
static

Warning State - Check warning levels.

  • Warning levels can be in any order
  • 0 is a valid warning level
    Returns
    true if in warning state, false if above or below warning range
  • warning levels can be in any order
  • 0 is a valid warning level

◆ enter()

void hm::Warning_State::enter ( )
overridevirtual

Warning State - Enter Issue a warning immediately upon entering the warning state.

Reimplemented from hm::ds::Storage_State.


The documentation for this class was generated from the following files: