Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "from": 0,
- "size": 0,
- "aggregations": {
- "deviceFilter": {
- "filter": {
- "or": {
- "filters": [
- {
- "and": {
- "filters": [
- {
- "or": {
- "filters": [
- {
- "range": {
- "startTimestamp": {
- "from": "2017-03-01T00:00:00.000+00:00",
- "to": "2017-04-30T23:59:59.999+00:00",
- "include_lower": true,
- "include_upper": false
- }
- }
- }
- ]
- }
- },
- {
- "term": {
- "mmId": "0001"
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggregations": {
- "perInterval": {
- "date_histogram": {
- "field": "startTimestamp",
- "interval": "1d",
- "pre_zone": "Europe/Berlin"
- },
- "aggregations": {
- "consumption": {
- "sum": {
- "field": "consumption"
- }
- },
- "chargingEvents": {
- "cardinality": {
- "field": "chargingProcessNumber"
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement