inactivitySensor v1.1.1

by Dylan & Thomas

checks for recent activity on a resource

Checks the timestamp of the most recent data in the Time Series Database or Persisted Cloud Cache against a given data window

this functionality requires an active TS analytics license for your Waylay tenant

Properties
  • resource waylay resource, defaults to the resource of the task
  • metric if given, checks the timeseries database for activity on this metric. Otherwise the message cache of the resource is checked. (optional)
  • window timewindow in seconds or as iso8601 duration expression such as ‘PT1H30M’ for 1 hour and 30 minutes. (optional, default 1800, i.e, 30 minutes)

States
  • Active if a message or metric event with a timestamp within the window was found in storage
  • Inactive otherwise

Data returned
  • lastMessage if a message or metric event with a timestamp within the window was found in storage
  • window the time window used
  • since the begin timestamp of the window that was checked
  • asOf the now timestamp at which this check was performed

Required properties:

  • resource
  • metric
  • window

External Settings:

  • waylay_data

States:

  • Inactive
  • Active

Raw data:

  • lastMessage (obj)
  • window (integer)
  • since (string)
  • asOf (string)