Try StarTree Cloud: 30-day free trial

Dimension Drift Operators

The ThirdEye drift operators are used to measure population drift across each value of a dimension.

Thirdeye has two drift operators:

  1. Static Drift Operator
  2. Lookback Drift Operator

The output of the dimension drift operators can be passed into any anomaly detector.

Sample alert configuration

Link to video how it works (opens in a new tab)

{
  "name": "USStoreSales-drift-lookback-dx",
  "description": "",
  "template": {
    "name": "startree-drift-lookback-threshold-dx"
  },
  "templateProperties": {
    "dataSource": "mypinot",
    "dataset": "USStoreSalesOrderData",
    "aggregationColumn": "*",
    "aggregationFunction": "COUNT",
    "seasonalityPeriod": "P7D",
    "lookback": "P28D",
    "monitoringGranularity": "P1D",
    "sensitivity": "3",
    "bucketSize": "${bucketSize}",
    "bucketCount": "${bucketCount}",
    "bucketStart": "${bucketStart}",
    "encoder": "${encoder}",
    "max": "${max}",
    "min": "0",
    "enumerationItems": [
      {
        "name": "DiscountApplied",
        "params": {
          "dimension": "DiscountApplied",
          "encoder": "LINEAR_BUCKETS",
          "bucketSize": 0.05,
          "bucketCount": 10,
          "bucketStart": 0,
          "max": 0.5
        }
      },
      {
        "name": "UnitPrice",
        "params": {
          "dimension": "UnitPrice",
          "encoder": "LINEAR_BUCKETS",
          "bucketSize": 50,
          "bucketCount": 120,
          "bucketStart": 0,
          "max": 0.5
        }
      },
      {
        "name": "UnitCost",
        "params": {
          "dimension": "UnitCost",
          "encoder": "LINEAR_BUCKETS",
          "bucketSize": 50,
          "bucketCount": 120,
          "bucketStart": 0,
          "max": 0.5
        }
      },
      {
        "name": "OrderQuantity",
        "params": {
          "dimension": "OrderQuantity",
          "encoder": "LINEAR_BUCKETS",
          "bucketSize": 1,
          "bucketCount": 10,
          "bucketStart": 0,
          "max": 0.7
        }
      },
      {
        "name": "SalesChannel",
        "params": {
          "dimension": "SalesChannel",
          "encoder": "ENUMERATE",
          "bucketSize": 0,
          "bucketCount": 0,
          "bucketStart": 0,
          "max": 0.5
        }
      },
      {
        "name": "StoreLocation",
        "params": {
          "dimension": "StoreLocation",
          "encoder": "ENUMERATE",
          "bucketSize": 0,
          "bucketCount": 0,
          "bucketStart": 0,
          "max": 0.9
        }
      },
      {
        "name": "SalesRegion",
        "params": {
          "dimension": "SalesRegion",
          "encoder": "ENUMERATE",
          "bucketSize": 0,
          "bucketCount": 0,
          "bucketStart": 0,
          "max": 0.5
        }
      },
      {
        "name": "WarehouseCode",
        "params": {
          "dimension": "WarehouseCode",
          "encoder": "ENUMERATE",
          "bucketSize": 0,
          "bucketCount": 0,
          "bucketStart": 0,
          "max": 0.5
        }
      }
    ],
    "dimension": "${dimension}",
    "dayHoursOfWeek": {}
  },
  "cron": "0 0 5 ? * MON-FRI *",
}