thirdeye icon indicating copy to clipboard operation
thirdeye copied to clipboard

/api/app-analytics should add alert vs anomaly count stats

Open suvodeep-pyne opened this issue 3 years ago • 0 comments

The /api/app-analytics is intended to respond with useful stats around app usage.

This is currently a stub API at the moment. Goal is to enhance it with alert stats. The first stat the could be interesting is having a count of anomalies per alert.

Here's a possible starting point.

{
  "version": "1.59.0-cc6fd8bc34461f3a2efd9e5ab41c3f1e698b7655",
  "alertStats": [
    {
      "id": 1234,
      "name": "my-alert-on-orders",
      "stats": {
        "anomalyCount": 24
      }
    },
    {
      "id": 2345,
      "name": "my-alert-on-orders-2",
      "stats": {
        "anomalyCount": 17
      }
    }
  ]
}

suvodeep-pyne avatar Jul 21 '22 23:07 suvodeep-pyne