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.cpp387 PowerRuleState getPowerOffPowerRuleState(const json& powerOffConfig) in getPowerOffPowerRuleState() argument
392 if (powerOffConfig.contains("state")) in getPowerOffPowerRuleState()
394 auto state = powerOffConfig.at("state").get<std::string>(); in getPowerOffPowerRuleState()
409 std::unique_ptr<PowerOffCause> getPowerOffCause(const json& powerOffConfig) in getPowerOffCause() argument
413 if (!powerOffConfig.contains("count") || !powerOffConfig.contains("cause")) in getPowerOffCause()
420 auto count = powerOffConfig.at("count").get<size_t>(); in getPowerOffCause()
421 auto powerOffCause = powerOffConfig.at("cause").get<std::string>(); in getPowerOffCause()
453 const json& powerOffConfig, in getPowerOffAction() argument
458 if (!powerOffConfig.contains("type")) in getPowerOffAction()
464 auto type = powerOffConfig.at("type").get<std::string>(); in getPowerOffAction()
[all …]