oms_wp_phy_alert_threshold_dir_get()
摘要
获取指定告警句柄的阈值方向属性。
语法
oms_wp_phy_alert_threshold_dir_get (alert_handle)
| 参数 | 类型 | 说明 |
|---|---|---|
alert_handle |
OmsT_WP_Phy_Alert_Handle |
告警句柄 |
返回类型
OmsT_WP_Measurement_Threshold_Direction
详细说明
阈值方向值是在通过 oms_wp_phy_measure_notification_subscribe() 为感兴趣的测量注册通知请求时指定的。允许的阈值方向取值见 OmsT_WP_Measurement_Threshold_Direction。
示例
coverage_area_tracker 进程模型头部代码的节选。
#define HIGH_SIGNAL (oms_wp_phy_alert_threshold_dir_get(alert_hdl)==OmsC_WP_Alert_Threshold_Direction_Up)
#define LOW_SIGNAL (oms_wp_phy_alert_threshold_dir_get(alert_hdl)==OmsC_WP_Alert_Threshold_Direction_Down)