/openbmc/telemetry/src/types/ |
H A D | trigger_types.hpp | 47 namespace discrete namespace 64 } // namespace discrete 140 std::vector<discrete::ThresholdParam>>; 144 std::vector<discrete::LabeledThresholdParam>>; 148 discrete::LabeledThresholdParam>; 153 return std::holds_alternative<std::vector<discrete::LabeledThresholdParam>>( in isTriggerThresholdDiscrete() 176 constexpr std::array<std::pair<std::string_view, discrete::Severity>, 3> 179 discrete::Severity::ok), 181 discrete::Severity::warning), 184 discrete::Severity::critical)}; [all …]
|
/openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/configuration/ncplite-yaml-config/ |
H A D | ncplite-ipmi-sensors.yaml | 155 0x40: &discrete 176 <<: *discrete 183 <<: *discrete 190 <<: *discrete 197 <<: *discrete 204 <<: *discrete 211 <<: *discrete 218 <<: *discrete 225 <<: *discrete 232 <<: *discrete [all …]
|
/openbmc/telemetry/src/utils/ |
H A D | conversion_trigger.cpp | 33 const std::vector<discrete::ThresholdParam>& arg) const in operator ()() 38 return discrete::LabeledThresholdParam( in operator ()() 59 const std::vector<discrete::LabeledThresholdParam>& arg) const in operator ()() 62 arg, [](const discrete::LabeledThresholdParam& labeledThresholdParam) { in operator ()() 63 return discrete::ThresholdParam( in operator ()() 92 return std::vector<discrete::ThresholdParam>(); 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() 105 return discrete::ThresholdParam( in fromLabeledThresholdParam()
|
H A D | conversion_trigger.hpp | 16 const std::vector<discrete::ThresholdParam>& arg) const; 25 const std::vector<discrete::LabeledThresholdParam>& arg) const;
|
/openbmc/telemetry/tests/src/ |
H A D | test_trigger_actions.cpp | 116 namespace discrete namespace 118 using LogParam = std::tuple<::discrete::Severity, TriggerValue>; 123 std::make_tuple(::discrete::Severity::critical, in getCorrectParams() 125 std::make_tuple(::discrete::Severity::warning, TriggerValue("On")), in getCorrectParams() 126 std::make_tuple(::discrete::Severity::ok, TriggerValue("Off"))); in getCorrectParams() 132 std::make_tuple(static_cast<::discrete::Severity>(-1), in getIncorrectParams() 134 std::make_tuple(static_cast<::discrete::Severity>(42), in getIncorrectParams() 136 std::make_tuple(::discrete::Severity::critical, TriggerValue(42.0)), in getIncorrectParams() 137 std::make_tuple(::discrete::Severity::warning, TriggerValue(0.0)), in getIncorrectParams() 138 std::make_tuple(::discrete::Severity::ok, TriggerValue(0.1))); in getIncorrectParams() [all …]
|
H A D | test_trigger.cpp | 36 .name("My Discrete Trigger") 37 .thresholdParams(std::vector<discrete::LabeledThresholdParam>{ 38 discrete::LabeledThresholdParam{ 39 "userId", discrete::Severity::warning, 41 discrete::LabeledThresholdParam{ 42 "userId_2", discrete::Severity::critical, 166 getProperty<bool>(sut->getPath(), "Discrete"), in TEST_F() 174 EXPECT_THAT(getProperty<std::vector<discrete::ThresholdParam>>( in TEST_F() 328 auto newThresholds = std::vector<discrete::ThresholdParam>({std::make_tuple( in TEST_F() 329 "discrete threshold", utils::enumToString(discrete::Severity::ok), 10, in TEST_F() [all …]
|
H A D | test_trigger_manager.cpp | 29 const std::vector<discrete::LabeledThresholdParam> discThresh = in addTrigger() 92 auto thresholds = std::vector<discrete::LabeledThresholdParam>{ in TEST_F() 93 {"discrete_threshold1", discrete::Severity::ok, 10, "11.0"}, in TEST_F() 94 {"discrete_threshold2", discrete::Severity::warning, 10, "12.0"}, in TEST_F() 95 {"discrete_threshold3", discrete::Severity::critical, 10, "13.0"}}; in TEST_F() 107 auto thresholds = std::vector<discrete::LabeledThresholdParam>(); in TEST_F() 271 .name("My Discrete Trigger") in TEST_F() 272 .thresholdParams(std::vector<discrete::LabeledThresholdParam>{ in TEST_F() 273 discrete::LabeledThresholdParam{ in TEST_F() 275 discrete::Severity::warning, Milliseconds(10).count(), in TEST_F() [all …]
|
H A D | test_discrete_threshold.cpp | 32 discrete::Severity severity = discrete::Severity::ok, in makeThreshold() 54 sut = makeThreshold(0ms, "90.0", discrete::Severity::critical); in SetUp() 86 sut = makeThreshold(0ms, GetParam(), discrete::Severity::critical); in TEST_P() 87 LabeledThresholdParam expected = discrete::LabeledThresholdParam( in TEST_P() 88 "treshold name", discrete::Severity::critical, 0, GetParam()); in TEST_P() 112 auto sut = makeThreshold(0ms, "12.3", discrete::Severity::ok, "non-empty"); in TEST_F() 114 std::get<discrete::LabeledThresholdParam>(sut->getThresholdParam()) in TEST_F() 121 auto sut = makeThreshold(0ms, "12.3", discrete::Severity::ok, ""); in TEST_F() 123 std::get<discrete::LabeledThresholdParam>(sut->getThresholdParam()) in TEST_F()
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/ |
H A D | Trigger.interface.yaml | 7 - name: Discrete 10 If true than trigger uses discrete thresholds as threshold conditions. 46 A collection of discrete thresholds that contains following fields - 47 user id, severity, dwell time and threshold value. Discrete value does 48 not need to be a number. Array size is not limited. If discrete 98 Defines a context of a message that is logged when discrete threshold
|
/openbmc/bmcweb/redfish-core/include/generated/enums/ |
H A D | trusted_component.hpp | 12 Discrete, enumerator 18 {TrustedComponentType::Discrete, "Discrete"},
|
H A D | triggers.hpp | 13 Discrete, enumerator 53 {MetricTypeEnum::Discrete, "Discrete"},
|
H A D | metric_definition.hpp | 13 Discrete, enumerator 56 {MetricType::Discrete, "Discrete"},
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Inventory/Item/ |
H A D | TrustedComponent.interface.yaml | 39 - name: Discrete 41 A discrete trusted component. It is "discrete" when basic
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/ |
H A D | MetricDefinition.v1_3_5.json | 182 …rsus actual values. The property is not meaningful when the `MetricType` property is `Discrete`.", 247 …e `Units` property. The property is not meaningful when the `MetricType` property is `Discrete`.", 266 … "description": "This array property specifies possible values of a discrete metric.", 273 …fy the possible values of the discrete metric. This property shall have values when the `MetricTy… 315 …the property Units. The property is not meaningful when the `MetricType` property is `Discrete`.", 363 …the property Units. The property is not meaningful when the `MetricType` property is `Discrete`.", 404 …the metric reading. The property is not meaningful when the `MetricType` property is `Discrete`.", 461 "Discrete", 470 …"Discrete": "The metric is a discrete metric. The metric value is discrete. The possible values … string 473 …ng": "The metric is a non-discrete string metric. The metric reading is a non-discrete string tha… [all …]
|
H A D | Triggers.v1_4_0.json | 49 "description": "The characteristics of the discrete trigger.", 50 … "longDescription": "This object shall contain the characteristics of the discrete trigger.", 99 "description": "The discrete metric value that constitutes a trigger event.", 100 …"longDescription": "This property shall contain the value discrete metric that constitutes a trigg… 111 …"description": "The condition, in relationship to the discrete trigger values, which constitutes a… 117 "Changed": "A discrete trigger condition is met whenever the metric value changes.", 118 …"Specified": "A discrete trigger condition is met when the metric value becomes one of the values … 120 …iption": "This type shall specify the condition, in relationship to the discrete trigger values, w… 167 "Discrete" 170 "Discrete": "A discrete value trigger.", string [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | MetricDefinition.v1_3_5.json | 182 …rsus actual values. The property is not meaningful when the `MetricType` property is `Discrete`.", 247 …e `Units` property. The property is not meaningful when the `MetricType` property is `Discrete`.", 266 … "description": "This array property specifies possible values of a discrete metric.", 273 …fy the possible values of the discrete metric. This property shall have values when the `MetricTy… 315 …the property Units. The property is not meaningful when the `MetricType` property is `Discrete`.", 363 …the property Units. The property is not meaningful when the `MetricType` property is `Discrete`.", 404 …the metric reading. The property is not meaningful when the `MetricType` property is `Discrete`.", 461 "Discrete", 470 …"Discrete": "The metric is a discrete metric. The metric value is discrete. The possible values … string 473 …ng": "The metric is a non-discrete string metric. The metric reading is a non-discrete string tha… [all …]
|
H A D | Triggers.v1_4_0.json | 49 "description": "The characteristics of the discrete trigger.", 50 … "longDescription": "This object shall contain the characteristics of the discrete trigger.", 99 "description": "The discrete metric value that constitutes a trigger event.", 100 …"longDescription": "This property shall contain the value discrete metric that constitutes a trigg… 111 …"description": "The condition, in relationship to the discrete trigger values, which constitutes a… 117 "Changed": "A discrete trigger condition is met whenever the metric value changes.", 118 …"Specified": "A discrete trigger condition is met when the metric value becomes one of the values … 120 …iption": "This type shall specify the condition, in relationship to the discrete trigger values, w… 167 "Discrete" 170 "Discrete": "A discrete value trigger.", string [all …]
|
/openbmc/telemetry/src/ |
H A D | trigger_actions.hpp | 73 namespace discrete namespace 78 explicit LogToJournal(::discrete::Severity severity) : severity(severity) {} in LogToJournal() 85 const ::discrete::Severity severity; 101 ::discrete::Severity severity, boost::asio::io_context& ioc, 132 } // namespace discrete
|
H A D | trigger.cpp | 73 "DiscreteThresholds", std::vector<discrete::ThresholdParam>{}, in __anon5e4599b80402() 76 const std::vector<discrete::ThresholdParam>& newVal, in __anon5e4599b80402() 77 std::vector<discrete::ThresholdParam>& oldVal) { in __anon5e4599b80402() 91 std::get_if<std::vector<discrete::ThresholdParam>>( in __anon5e4599b80402() 96 return std::vector<discrete::ThresholdParam>{}; in __anon5e4599b80402() 172 "Discrete", isDiscrete(), sdbusplus::vtable::property_::const_, in __anon5e4599b80402() 273 utils::isFirstElementOfType<discrete::LabeledThresholdParam>( in isDiscrete()
|
H A D | trigger_actions.cpp | 166 namespace discrete namespace 177 "Discrete condition '" + thresholdNameIn->get() + "' of trigger '" + in commit() 194 "Logging discrete trigger action to Redfish Event Log.", in commit() 206 ::discrete::Severity severity, boost::asio::io_context& ioc, in fillActions() 245 "Discrete condition 'OnChange' of trigger '" + triggerId + in commit() 260 "Logging onChange discrete trigger action to Redfish Event Log.", in commit() 300 } // namespace discrete
|
H A D | trigger_factory.cpp | 29 const std::vector<discrete::LabeledThresholdParam>& newParams) const in updateDiscreteThresholds() 50 std::get<discrete::LabeledThresholdParam>( in updateDiscreteThresholds() 135 std::get<std::vector<discrete::LabeledThresholdParam>>(newParams); in updateThresholds() 158 const discrete::LabeledThresholdParam& thresholdParam) const in makeDiscreteThreshold() 163 discrete::Severity severity = thresholdParam.at_label<ts::Severity>(); in makeDiscreteThreshold() 168 action::discrete::fillActions(actions, triggerActions, severity, in makeDiscreteThreshold() 209 action::discrete::onChange::fillActions(actions, triggerActions, in makeOnChangeThreshold()
|
H A D | discrete_threshold.hpp | 30 const std::string& name, const discrete::Severity severity, 47 const discrete::Severity severity;
|
/openbmc/qemu/include/hw/audio/ |
H A D | asc.h | 22 ASC_TYPE_ASC = 0, /* original discrete Apple Sound Chip */ 23 ASC_TYPE_EASC = 1 /* discrete Enhanced Apple Sound Chip */
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | trigger.hpp | 210 Discrete, enumerator 261 if (metricType == "Discrete") in getMetricType() 263 return MetricType::Discrete; in getMetricType() 472 if (*ctx.metricType == MetricType::Discrete && numericThresholds.any()) in parseTriggerThresholds() 493 (ctx.metricType && *ctx.metricType == MetricType::Discrete)) in parseTriggerThresholds() 845 const bool* discrete = nullptr; in fillTrigger() local 854 dbus_utils::UnpackErrorPrinter(), properties, "Name", name, "Discrete", in fillTrigger() 855 discrete, "Sensors", sensors, "Reports", reports, "TriggerActions", in fillTrigger() 897 if (discrete != nullptr) in fillTrigger() 899 if (*discrete) in fillTrigger() [all …]
|
/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | types.hpp | 105 uint8_t assertOffset0_7; //!< Discrete assertion states(0-7). 106 uint8_t assertOffset8_14; //!< Discrete assertion states(8-14). 117 uint8_t thresholdLevelsStates; // threshold/discrete sensor states 118 uint8_t discreteReadingSensorStates; // discrete-only, optional states
|