druid/examples/twitter/group_by_query.body

21 lines
758 B
Plaintext
Raw Normal View History

2012-10-24 03:39:51 -04:00
{
2012-10-24 04:51:32 -04:00
"queryType": "groupBy",
2012-10-24 03:39:51 -04:00
"dataSource": "twitterstream",
"granularity": "all",
"dimensions": ["lang"],
2012-10-24 03:39:51 -04:00
"aggregations":[
{ "type": "count", "name": "rows"},
2012-10-24 04:51:32 -04:00
{ "type": "doubleSum", "fieldName": "tweets", "name": "tweets"},
2012-10-24 03:39:51 -04:00
2012-10-24 04:51:32 -04:00
{ "type": "max", "fieldName": "max_statuses_count", "name": "theMaxStatusesCount"},
{ "type": "max", "fieldName": "max_retweet_count", "name": "theMaxRetweetCount"},
2012-10-24 03:39:51 -04:00
2012-10-24 04:51:32 -04:00
{ "type": "max", "fieldName": "max_friends_count", "name": "theMaxFriendsCount"},
{ "type": "max", "fieldName": "max_follower_count", "name": "theMaxFollowerCount"},
2012-10-24 03:39:51 -04:00
2012-10-24 04:51:32 -04:00
{ "type": "doubleSum", "fieldName": "total_statuses_count", "name": "total_tweets_all_time"}
2012-10-24 03:39:51 -04:00
],
"intervals":["2012-10-01T00:00/2020-01-01T00"]
}