Home
last modified time | relevance | path

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

/openbmc/telemetry/src/utils/
H A Dconversion_trigger.cpp26 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>(&param); in fromLabeledThresholdParam()
[all …]
H A Dconversion_trigger.hpp23 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 Dtrigger_types.hpp60 using LabeledThresholdParam = utils::LabeledTuple< typedef
132 using LabeledThresholdParam = utils::LabeledTuple< typedef
143 std::variant<std::vector<numeric::LabeledThresholdParam>,
144 std::vector<discrete::LabeledThresholdParam>>;
146 using LabeledThresholdParam = typedef
147 std::variant<std::monostate, numeric::LabeledThresholdParam,
148 discrete::LabeledThresholdParam>;
153 return std::holds_alternative<std::vector<discrete::LabeledThresholdParam>>( in isTriggerThresholdDiscrete()
/openbmc/telemetry/tests/src/params/
H A Dtrigger_params.hpp102 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/tests/src/mocks/
H A Dthreshold_mock.hpp18 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/src/
H A Dtrigger_factory.cpp29 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 Dtrigger_factory.hpp65 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 Dtrigger_manager.cpp93 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 Ddiscrete_threshold.cpp106 LabeledThresholdParam DiscreteThreshold::getThresholdParam() const in getThresholdParam()
108 return discrete::LabeledThresholdParam(name, severity, dwellTime.count(), in getThresholdParam()
H A Dnumeric_threshold.cpp129 LabeledThresholdParam NumericThreshold::getThresholdParam() const in getThresholdParam()
131 return numeric::LabeledThresholdParam(type, dwellTime.count(), direction, in getThresholdParam()
H A Don_change_threshold.hpp31 LabeledThresholdParam getThresholdParam() const override;
H A Don_change_threshold.cpp75 LabeledThresholdParam OnChangeThreshold::getThresholdParam() const in getThresholdParam()
H A Dtrigger.hpp50 std::vector<LabeledThresholdParam> getLabeledThresholds() const;
H A Dtrigger.cpp274 std::vector<LabeledThresholdParam> Trigger::getLabeledThresholds() const in getLabeledThresholds()
286 utils::isFirstElementOfType<discrete::LabeledThresholdParam>( in isDiscreate()
H A Dnumeric_threshold.hpp37 LabeledThresholdParam getThresholdParam() const override;
H A Ddiscrete_threshold.hpp37 LabeledThresholdParam getThresholdParam() const override;
/openbmc/telemetry/tests/src/
H A Dtest_trigger_manager.cpp27 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 Dtest_discrete_threshold.cpp87 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 Dtest_trigger.cpp37 .thresholdParams(std::vector<discrete::LabeledThresholdParam>{
38 discrete::LabeledThresholdParam{
41 discrete::LabeledThresholdParam{
360 std::get<std::vector<numeric::LabeledThresholdParam>>( in TEST_F()
366 std::get<std::vector<numeric::LabeledThresholdParam>>(std::visit( in TEST_F()
386 std::get<std::vector<discrete::LabeledThresholdParam>>( in TEST_F()
392 std::get<std::vector<discrete::LabeledThresholdParam>>(std::visit( in TEST_F()
H A Dtest_on_change_threshold.cpp68 LabeledThresholdParam expected = std::monostate(); in TEST_F()
H A Dtest_numeric_threshold.cpp77 LabeledThresholdParam expected = numeric::LabeledThresholdParam( in TEST_F()
/openbmc/telemetry/src/interfaces/
H A Dthreshold.hpp15 virtual LabeledThresholdParam getThresholdParam() const = 0;