Home
last modified time | relevance | path

Searched refs:powerOffConfig (Results 1 – 1 of 1) sorted by relevance

/openbmc/phosphor-fan-presence/monitor/
H A Djson_parser.cpp399 PowerRuleState getPowerOffPowerRuleState(const json& powerOffConfig) in getPowerOffPowerRuleState() argument
404 if (powerOffConfig.contains("state")) in getPowerOffPowerRuleState()
406 auto state = powerOffConfig.at("state").get<std::string>(); in getPowerOffPowerRuleState()
426 if (!powerOffConfig.contains("count") || !powerOffConfig.contains("cause")) in getPowerOffCause()
434 auto count = powerOffConfig.at("count").get<size_t>(); in getPowerOffCause()
467 getPowerOffAction(const json& powerOffConfig, in getPowerOffAction() argument
472 if (!powerOffConfig.contains("type")) in getPowerOffAction()
479 auto type = powerOffConfig.at("type").get<std::string>(); in getPowerOffAction()
482 !powerOffConfig.contains("delay")) in getPowerOffAction()
489 (!powerOffConfig.contains("service_mode_delay") || in getPowerOffAction()
[all …]