Monotonic

Monotonic alerts perform comparison operations between the latest calculated metric and the second latest calculated metric

Configuration parameters

Parameter name Parameter values
1. Name Arbitrary String
2. Operator
  • Equal to
  • Not equal to
  • Less than
  • Less than or equal to
  • Greater than
  • Greater than or equal to

What is being compared?

The monotonic alert compares the latest calculated numeric metric (t) with the second latest calculated metric (t-1).

When should it be used?

Monotonic alerts are suitable in the below example use cases:

  • Check that ‘row count’ is always strictly increasing ensuring each batch update adds new records
  • Check that ‘invoicing amount’ by each customer is increasing or stays the same to catch customers scaling down their service/product usage
  • Check that ‘inventory’ is not equal to the preceding transaction, knowing that in each record representing a transaction, an item is either bought or returned and inventory should be updated accordingly
  • Check that ‘loan-principal’ is decreasing or stays the same, knowing new loans will not be taken and automatic mortgage payments is in place

What is t and t-1?

t refers to the latest calculated metric, and t-1 to the preceding, or equally, second latest calculated metric.

Monitors

In Monitors, t and t-1 refers to the two latest batches dictated by the batching logic chosen in the Dataset Pipeline Configuration , that is either:

  • Streaming Dataset Pipeline
  • Data Warehouse Dataset Pipeline
  • Object Store Dataset Pipeline

Filter

In Filters, t and t-1 refers to the latest and second latest Filter metric (passing, failing, passing percentage, failing percentage, total). Filter metrics are calculated once every 60 seconds.