Skip to main content

Step 2: Select Adapter Statuses

The example deletes status 0 records. Any nonzero adapter status continues to the next processor.

Reference configuration

pipeline:
processors:
- mapping: |
if this.adapter_status == 0 {
root = deleted()
}

Status 0, 1, and 2 are fixture conventions. This configuration does not interpret a device condition or validate the gateway's status mapping.

Review before implementation

  • Confirm the adapter's status vocabulary and missing-value behavior.
  • Decide whether unknown statuses should pass, fail, or use a separate route.
  • Test retained and deleted counts with representative, authorized data.
  • Decide how deletion affects investigation and retention requirements.

No retained fraction or operating behavior has been measured for this configuration.

Source artifact: examples/integrations/scada-energy-edge/step-2-filter-nominal.yaml.

Next: Inspect event labeling.