getUsageStats v0.0.8

getUsageStats Sensor


Sensor to check Waylay usage metrics.

States
  • done
  • error

Raw data

If the specified metric could be successfully retrieved, the value is added as consumption in the rawData

  • consumption: object with result of sensor
The consumption object will contain the following data:
  • sandbox: executions
  • nativePlug: executions
  • broker: messages
  • broker: datapoints
  • webscripts: executions
  • resources: count
  • analytics: totalMs

Properties
  • threshold
  • service: one of sandbox, nativePlug, broker, webscripts, resources, analytics
  • metric: executions, messages, datapoints, count or totalMs(see above)
  • timeZone: timezone to use to determine begin of month (default: UTC)
# Required properties: - `timeZone` - `service` - `metricName`

States:

  • done
  • error

Raw data:

  • consumption (double)