Skip to content

Instantly share code, notes, and snippets.

@evanpurkhiser
Created June 16, 2021 18:05
Show Gist options
  • Save evanpurkhiser/cc36da61aee2d2551d84f6382cf9762a to your computer and use it in GitHub Desktop.
Save evanpurkhiser/cc36da61aee2d2551d84f6382cf9762a to your computer and use it in GitHub Desktop.
# 2m should mean 2 minutes for duration filters (as opposed to 2 million)
- query: transaction.duration:>2m
result:
- type: filter
filter: duration
negated: false
operator: '>'
key: { type: keySimple, value: transaction.duration, quoted: false }
value: { type: valueDuration, value: 2, unit: m }
- { type: spaces, value: "" }
[
{
"comment": "2m should mean 2 minutes for duration filters (as opposed to 2 million)",
"query": "transaction.duration:>2m",
"result": [
{
"type": "filter",
"filter": "duration",
"negated": false,
"key": {"type": "keySimple", "value": "transaction.duration", "quoted": false},
"operator": ">",
"value": {"type": "valueDuration", "value": 2, "unit": "m"}
},
{"type": "spaces", "value": ""}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment