blink1-control
blink1_control::config::ProcessMonitorConfig Struct Reference

#include <ProcessMonitorConfig.hpp>

Inheritance diagram for blink1_control::config::ProcessMonitorConfig:
blink1_control::config::ConditionConfig

Public Attributes

std::string cmd
 
- Public Attributes inherited from blink1_control::config::ConditionConfig
Type type
 
std::string name
 
std::vector< std::string > patterns
 

Additional Inherited Members

- Public Types inherited from blink1_control::config::ConditionConfig
enum  Type { Type::ProcessMonitor, Type::Rollup }
 

Detailed Description

Configuration for process monitors

This is an extension of ConditionConfig for the case where the type is ConditionConfig::Type::ProcessMonitor

The state of the process monitor is based on running a command (stored in ProcessMonitorConfig::cmd).

If the process returns 0 then the monitor considers it good. If it is non-zero then it is considered bad. If there are patterns on this condition, there must be exactly two, and the first will be used for the good case while the second will used for the bad case.

Member Data Documentation

◆ cmd

std::string blink1_control::config::ProcessMonitorConfig::cmd

The command to run to monitor.


The documentation for this struct was generated from the following file: