Timed Counter Node

It counts how many times an event occurs within a specified time frame, allowing for temporal analysis of data, such as counting events per minute or hour.

Inputs

The Timed Counter node has a mandatory input.

Input

Requirement

Comments

Field to Count

Mandatory

Enter the JSON key that determines if the payload should be counted.


Functionality

The Timed Counter node can be used to check for the peak within a moving window and ignore false peaks.

Outputs 

An additional JSON key appended to the original payload to hold the counter value which can be used in the workflow.

How to Use

Implementation

In the Rayven Workflow Builder:

  • Select Functions.
  • Drag the Timed Counter node to the canvas.
  • Provide an input to the Timed Counter node by connecting it to another node.
  • Double click on the Timed Counter node to open the configuration window.

Configuration

Section: General

This section contains basic configuration elements required for any Timed Counter implementation

Field

Requirement

Comments

Node Name

Mandatory

Enter a name for this node.


This provides a handle to which you and others can refer, so it should be simple but meaningful and explain the node’s purpose.

Field to Count

Mandatory

Enter the JSON field name that holds the field to be counted.

Timeframe (Seconds)

Mandatory

Enter a numerical value for the timeframe of the counter.

Filter Field by

Optional

Enter the value for the data field name. If this is specified, only payloads that meet this condition will be counted.

Output Field Name

Mandatory

Enter the JSON field name that will hold the output of the counter based on the configuration set.



Section: Activation

This section contains basic configuration elements required for any Trigger node activation

Field

Requirement

Comments

Logical Operand

Mandatory

Select the logical operand from the dropdown list

  • OR
  • AND

Select Device Filter

Mandatory

Select Device Filter configured in Device Management to select the devices that will receive this payload.


Activation: Once the node has been configured, click the Activate button and then click Save. The node is ready to receive data into the workflow.