Virtual Record Generator


This stage generates new records based on the specified conditions. The functions of this stage include:

  • Generating required records by fixed triggering frequency (multiple frequency options).
  • Determining the dataset to be generated for the specific device and point, i.e., Map<assetId,Set<pointId>>, based on the filtering conditions (such as model IDs and asset tags).
  • Based on the above dataset, simulate triggering point data according to fixed technical frequency.

Configuration

The configuration tabs for this stage are General and Output.

General

Name Required? Description
Name Yes The name of the stage.
Description No The description of the stage.
Stage Library Yes The streaming operator library to which the stage belongs.
On Record Error Yes

The processing method for error data.

  • Discard: Error data will be discarded and ignored
  • Send to Error: Error messages will be reported
  • Stop Pipeline: The pipeline will be stopped

Output

Name Required? Description
Generate Type Yes

Select the method to generate new records.

  • By ModelIDs:Match measurement points by model IDs
  • By Asset Tags:Match measurement points by asset tags
Trigger Frequency Yes

Specify the triggering frequency for generating records. Options are:

  • 1 Second
  • 10 Seconds
  • 30 Seconds
  • 1 Minute
  • 5 Minutes
  • 10 Minutes
  • 30 Minutes
  • 1 Hour
Mode No When the By ModelIDs method is selected, specify the model ID. In the Output Point field, specify the measurement point for the generated data records, using the format {modelId}::{pointId}.
AssetTag Key::Value No When the By Asset Tags method is selected, specify the asset tag key and value. In the Output Point field, specify the measurement point for the generated data records, using the format {modelId}::{pointId} or {pointId}.
Output Point Yes Specify the measurement point for the generated data records, using the format {modelId}::{pointId}.

Output Results

The output results of this stage are the generated records, which include the following:

  • Common fields (such as assetId, pointId, modelId, time, and value). The value field has no practical meaning, and its value is 0.

Output Example

../../../_images/virtual_record_generator_result1.png