MySQL 26.10.0
Source Code Documentation
health_monitor_filesystem_sample.h File Reference
#include <mysql/components/library_mysys/system_info.h>
#include <ctime>
#include <functional>
#include <string>
#include "health_monitor_disk_bits.h"

Go to the source code of this file.

Classes

struct  hm::Filesystem_sample_state
 

Namespaces

namespace  hm
 

Typedefs

using hm::Disk_record_writer = std::function< void(const Disk_Info &)>
 

Enumerations

enum class  hm::Filesystem_change { hm::initial , hm::unchanged , hm::capacity_changed , hm::identity_changed }
 

Functions

bool hm::convert_filesystem_snapshot (const mysql::system_info::Filesystem_snapshot &snapshot, Disk_Info &output)
 Convert a filesystem snapshot into a Disk Collector record. More...
 
Filesystem_change hm::classify_filesystem_change (const Filesystem_sample_state &state, const Disk_Info &sample)
 Classify a complete sample against the last successful sample. More...
 
bool hm::accept_filesystem_snapshot (const mysql::system_info::Filesystem_snapshot &snapshot, Filesystem_sample_state &state, Disk_Info &output, Filesystem_change &change)
 Accept a complete snapshot and update the last successful sample state. More...
 
void hm::publish_filesystem_records (Disk_Info &sample, time_t timestamp, bool write_stat, bool write_metric, Filesystem_change change, const Disk_series_reset_action &reset_series, const Disk_record_writer &stat_writer, const Disk_record_writer &metric_writer)
 Publish the records for one complete filesystem sample. More...