Measurement Point Alarm Conditions


A measurement point alarm condition is configured for a measurement point in a model. You can set conditions for the measurement point itself, or set conditions based on the numerical relationship between the measurement point and a numerical property, or between two measurement points. An alarm is triggered when the condition is met.


When setting alarm conditions for a measurement point, you can choose one of the following methods:

Configuration Method

Description

Example

Set Threshold

Select a measurement point and commonly used operators from the dropdown list to form an alarm condition. Configuration is simple and does not require writing formulas manually.

  • The update status of measurement point A values within a period of time.

  • Whether measurement point A values fall into a certain range within a period of time.

  • The relationship between measurement point A values and measurement point B values, for example, A is greater than B.

Write Expression

Select complex operators, measurement points, and time series functions, or enter custom values to form an alarm condition. Configuration is flexible and supports complex calculation logic.

  • Within a certain period of time, the average value of measurement point A is greater than the maximum value of attribute B, or the minimum value of measurement point A is less than 10.

  • The number of times the average value of measurement point A within a period of time exceeds the maximum value of attribute B is more than 5 times.

Set Threshold as Condition


When setting threshold as a condition, you can define the following information as needed.

Calculation Condition


The calculation condition for a measurement point contains the following information.


Primary Condition Operator Reference Condition Example
Select a site type, equipment type, or component type as the main asset type for triggering the alarm, then select one measurement point associated with the model for that asset type. The value of this measurement point will serve as the primary condition. >, >=, =, <, <=, != Enter a numerical value, or select another measurement point or attribute from the same model as the object to compare with. Only numerical attributes are supported. When the "actual temperature" of "wind turbine" is >= the "maximum environmental temperature" of "wind turbine", an alarm is triggered.
∈[min,max], ∈(min,max], ∈[min,max), ∈(min,max) Enter the minimum and maximum values to define a range as the reference condition. When the "actual temperature" of "wind turbine" is within the [45,50] range, an alarm is triggered.
Report Frequency No reference condition. An alarm is triggered when the reporting frequency of the measurement point meets the timing condition. When the number of times "actual temperature" measurement point reports data within 5 minutes is less than 10, an alarm is triggered.
Data Not Updated No reference condition. An alarm is triggered when the data not updated time of the measurement point meets the timing condition. When all data of "actual temperature" measurement point reported within 5 minutes are the same value, an alarm is triggered.
Data Not Reported No reference condition. An alarm is triggered when the data not reported time of the measurement point meets the timing condition. When "actual temperature" measurement point reports no data within 5 minutes, an alarm is triggered.

Timing Condition


Note

When the reference condition is an attribute, timing conditions are not supported. Timing conditions are only applicable when the reference condition is a numerical value or another measurement point.


If you enable the time series feature, it means that in addition to the calculation condition, the timing condition must also be met to trigger an alarm.

For example, suppose the calculation condition is set as A > B.

  • When the time series feature is disabled, an alarm is triggered whenever A is greater than B.

  • When the time series feature is enabled, an alarm is triggered only when A is greater than B more than X times within a period of time.


Refer to the following description to define the timing condition:

../_images/timing.png


Number

Description

1

Currently only supports time series data from the [tumbling window](/docs/alert/en/dev/reference/time_windows.html).

2

The size of the tumbling window. Indicates the length of the time period for each data segment when data is sorted by time sequence.

3

The number of times the condition is met within the window size.

4

Operator, which represents the relationship between the number of times the condition is met and the reference times.

5

Reference times.

Add Multiple Conditions


When setting threshold for a measurement point, you can add multiple calculation conditions and define the AND and OR relationships between conditions.


If the time series feature is enabled, the timing condition will apply to all calculation conditions. All calculation conditions must be met simultaneously under the timing condition to trigger an alarm.

Write Expression as Condition


When writing expression as a condition, you can define the following information as needed.

Calculation Condition


Refer to the following description to write the expression for the calculation condition:

  • Asset Type: Specify one asset type, which will limit the effective range of the alarm rule and the optional models.

  • Measurement Point: Select one or multiple measurement points from the model associated with the asset type as the main condition for calculation. You can select up to 5 measurement points. When selecting multiple measurement points, you cannot enable the time series feature and use time series functions.

  • Calculation Object: The numerical attributes in the model will be displayed in the Attribute list in the right-side calculation object panel. The selected measurement points will be displayed in the Measurement Point list. You can click these attributes and measurement points to add them to the expression area on the left for calculation. Repeated addition is supported.

  • Operator: Add operators to the expression area on the left to represent the relationship between calculation objects.

  • Expression: Continue editing the expression by entering custom values as needed.


../_images/point_expression.png

Timing Condition


When you select only one measurement point, you can enable the time series feature to use time series functions in the expression. For information about time windows, see Timing Condition.

Note

When using time series functions, ensure that each attribute and measurement point added to the expression area uses a time series function. For example, the expression “MIN(A measurement point) > B attribute” does not meet the requirement because attribute B does not use a time series function. You can modify it to “MIN(A measurement point) > AVG(B attribute)”.


../_images/point_expression_timing.png


The supported time series functions are described as follows:

Time Series Function

Description

COUNT

The number of times the condition is met within a time period.

MAX

The maximum value that meets the condition within a time period.

MIN

The minimum value that meets the condition within a time period.

SUM

The sum of values that meet the condition within a time period.

AVG

The average value that meets the condition within a time period.

FIRST

The first value that meets the condition within a time period.

LAST

The last value that meets the condition within a time period.