| /openbmc/telemetry/src/utils/ |
| H A D | conversion_trigger.cpp | 26 return numeric::LabeledThresholdParam( in operator ()() 38 return discrete::LabeledThresholdParam( in operator ()() 44 const std::vector<numeric::LabeledThresholdParam>& arg) const in operator ()() 47 arg, [](const numeric::LabeledThresholdParam& labeledThresholdParam) { in operator ()() 59 const std::vector<discrete::LabeledThresholdParam>& arg) const in operator ()() 62 arg, [](const discrete::LabeledThresholdParam& labeledThresholdParam) { in operator ()() 82 const std::vector<LabeledThresholdParam>& params) in fromLabeledThresholdParam() 95 if (isFirstElementOfType<discrete::LabeledThresholdParam>(params)) in fromLabeledThresholdParam() 98 const discrete::LabeledThresholdParam* paramUnpacked = in fromLabeledThresholdParam() 99 std::get_if<discrete::LabeledThresholdParam>(¶m); in fromLabeledThresholdParam() [all …]
|
| H A D | conversion_trigger.hpp | 23 const std::vector<numeric::LabeledThresholdParam>& arg) const; 25 const std::vector<discrete::LabeledThresholdParam>& arg) const; 31 const std::vector<LabeledThresholdParam>& params);
|
| /openbmc/telemetry/src/types/ |
| H A D | trigger_types.hpp | 56 using LabeledThresholdParam = utils::LabeledTuple< typedef 128 using LabeledThresholdParam = utils::LabeledTuple< typedef 139 std::variant<std::vector<numeric::LabeledThresholdParam>, 140 std::vector<discrete::LabeledThresholdParam>>; 142 using LabeledThresholdParam = typedef 143 std::variant<std::monostate, numeric::LabeledThresholdParam, 144 discrete::LabeledThresholdParam>; 149 return std::holds_alternative<std::vector<discrete::LabeledThresholdParam>>( in isTriggerThresholdDiscrete()
|
| /openbmc/telemetry/tests/src/mocks/ |
| H A D | threshold_mock.hpp | 18 MOCK_METHOD(LabeledThresholdParam, getThresholdParam, (), 28 if (std::holds_alternative<std::vector<numeric::LabeledThresholdParam>>( in makeThresholds() 32 std::get<std::vector<numeric::LabeledThresholdParam>>(params); in makeThresholds() 44 std::get<std::vector<discrete::LabeledThresholdParam>>(params); in makeThresholds()
|
| /openbmc/telemetry/tests/src/params/ |
| H A D | trigger_params.hpp | 102 const std::vector<numeric::LabeledThresholdParam> numericThresholdParams() in numericThresholdParams() 113 const std::vector<discrete::LabeledThresholdParam> discreteThresholdParams() in discreteThresholdParams() 136 std::vector<numeric::LabeledThresholdParam>{ 137 numeric::LabeledThresholdParam{numeric::Type::lowerCritical, 140 numeric::LabeledThresholdParam{
|
| /openbmc/telemetry/src/ |
| H A D | trigger_factory.hpp | 65 const std::vector<discrete::LabeledThresholdParam>& newParams) const; 73 const std::vector<numeric::LabeledThresholdParam>& newParams) const; 81 const discrete::LabeledThresholdParam& thresholdParam) const; 89 const numeric::LabeledThresholdParam& thresholdParam) const;
|
| H A D | trigger_factory.cpp | 29 const std::vector<discrete::LabeledThresholdParam>& newParams) const in updateDiscreteThresholds() 50 std::get<discrete::LabeledThresholdParam>( in updateDiscreteThresholds() 95 const std::vector<numeric::LabeledThresholdParam>& newParams) const in updateNumericThresholds() 106 std::get<numeric::LabeledThresholdParam>( in updateNumericThresholds() 135 std::get<std::vector<discrete::LabeledThresholdParam>>(newParams); in updateThresholds() 144 std::get<std::vector<numeric::LabeledThresholdParam>>(newParams); in updateThresholds() 158 const discrete::LabeledThresholdParam& thresholdParam) const in makeDiscreteThreshold() 183 const numeric::LabeledThresholdParam& thresholdParam) const in makeNumericThreshold()
|
| H A D | trigger_manager.cpp | 93 std::get_if<std::vector<discrete::LabeledThresholdParam>>( in verifyThresholdParams() 177 .get<std::vector<numeric::LabeledThresholdParam>>(); in loadFromPersistent() 183 .get<std::vector<discrete::LabeledThresholdParam>>(); in loadFromPersistent()
|
| H A D | discrete_threshold.cpp | 106 LabeledThresholdParam DiscreteThreshold::getThresholdParam() const in getThresholdParam() 108 return discrete::LabeledThresholdParam(name, severity, dwellTime.count(), in getThresholdParam()
|
| H A D | numeric_threshold.cpp | 129 LabeledThresholdParam NumericThreshold::getThresholdParam() const in getThresholdParam() 131 return numeric::LabeledThresholdParam(type, dwellTime.count(), direction, in getThresholdParam()
|
| H A D | on_change_threshold.hpp | 34 LabeledThresholdParam getThresholdParam() const override;
|
| H A D | on_change_threshold.cpp | 75 LabeledThresholdParam OnChangeThreshold::getThresholdParam() const in getThresholdParam()
|
| H A D | trigger.hpp | 51 std::vector<LabeledThresholdParam> getLabeledThresholds() const;
|
| H A D | numeric_threshold.hpp | 40 LabeledThresholdParam getThresholdParam() const override;
|
| H A D | discrete_threshold.hpp | 40 LabeledThresholdParam getThresholdParam() const override;
|
| H A D | trigger.cpp | 257 std::vector<LabeledThresholdParam> Trigger::getLabeledThresholds() const in getLabeledThresholds() 273 utils::isFirstElementOfType<discrete::LabeledThresholdParam>( in isDiscrete()
|
| /openbmc/telemetry/tests/src/ |
| H A D | test_trigger_manager.cpp | 27 const std::vector<numeric::LabeledThresholdParam> numThresh = in addTrigger() 29 const std::vector<discrete::LabeledThresholdParam> discThresh = in addTrigger() 92 auto thresholds = std::vector<discrete::LabeledThresholdParam>{ in TEST_F() 107 auto thresholds = std::vector<discrete::LabeledThresholdParam>(); in TEST_F() 272 .thresholdParams(std::vector<discrete::LabeledThresholdParam>{ in TEST_F() 273 discrete::LabeledThresholdParam{ in TEST_F() 367 .thresholdParams(std::vector<discrete::LabeledThresholdParam>{ in TEST_F() 368 discrete::LabeledThresholdParam{ in TEST_F() 502 std::vector<discrete::LabeledThresholdParam>{ in TEST_F()
|
| H A D | test_discrete_threshold.cpp | 87 LabeledThresholdParam expected = discrete::LabeledThresholdParam( in TEST_P() 114 std::get<discrete::LabeledThresholdParam>(sut->getThresholdParam()) in TEST_F() 123 std::get<discrete::LabeledThresholdParam>(sut->getThresholdParam()) in TEST_F()
|
| H A D | test_trigger.cpp | 37 .thresholdParams(std::vector<discrete::LabeledThresholdParam>{ 38 discrete::LabeledThresholdParam{ 41 discrete::LabeledThresholdParam{ 369 std::get<std::vector<numeric::LabeledThresholdParam>>( in TEST_F() 375 std::get<std::vector<numeric::LabeledThresholdParam>>(std::visit( in TEST_F() 395 std::get<std::vector<discrete::LabeledThresholdParam>>( in TEST_F() 401 std::get<std::vector<discrete::LabeledThresholdParam>>(std::visit( in TEST_F() 462 .thresholdParams(std::vector<numeric::LabeledThresholdParam>{});
|
| H A D | test_on_change_threshold.cpp | 68 LabeledThresholdParam expected = std::monostate(); in TEST_F()
|
| H A D | test_numeric_threshold.cpp | 77 LabeledThresholdParam expected = numeric::LabeledThresholdParam( in TEST_F()
|
| /openbmc/telemetry/src/interfaces/ |
| H A D | threshold.hpp | 15 virtual LabeledThresholdParam getThresholdParam() const = 0;
|