aggregate_duration_filter_overrides_numeric_shorthand.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [
  2. {
  3. "desc": "2m should mean 2 minutes for duration filters (as opposed to 2 million)",
  4. "query": "avg(transaction.duration):>2m",
  5. "result": [
  6. {"type": "spaces", "value": ""},
  7. {
  8. "type": "filter",
  9. "filter": "aggregateDuration",
  10. "negated": false,
  11. "key": {
  12. "type": "keyAggregate",
  13. "name": {"type": "keySimple", "value": "avg", "quoted": false},
  14. "args": {
  15. "type": "keyAggregateArgs",
  16. "args": [
  17. {
  18. "separator": "",
  19. "value": {
  20. "type": "keyAggregateParam",
  21. "value": "transaction.duration",
  22. "quoted": false
  23. }
  24. }
  25. ]
  26. },
  27. "argsSpaceBefore": {"type": "spaces", "value": ""},
  28. "argsSpaceAfter": {"type": "spaces", "value": ""}
  29. },
  30. "operator": ">",
  31. "value": {
  32. "type": "valueDuration",
  33. "value": "2",
  34. "unit": "m",
  35. "parsed": {"value": 120000}
  36. }
  37. },
  38. {"type": "spaces", "value": ""}
  39. ]
  40. }
  41. ]