Skip to content
Discussion options

You must be logged in to vote

Hi, all payload keys are of type String so this won't work. My recommendation is to use separate signals per course and use the floatValue parameter, which you can sum up.

This is what your signal could look like:

{
  "type": "order.dessertSum",
  "payload": {},
  "floatValue": 2
}

Then your (custom) query could look like this:

{
  "aggregations": [
    {
      "fieldName": "floatValue",
      "name": "Sum",
      "type": "doubleSum"
    }
  ],
  "filter": {
    "dimension": "type",
    "type": "selector",
    "value": "order.dessertSum"
  },
  "granularity": "day",
  "queryType": "timeseries"
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Pernic
Comment options

Answer selected by winsmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants