Skip to content

Instantly share code, notes, and snippets.

@kevpie
Last active August 29, 2015 14:02
Show Gist options
  • Save kevpie/db9091633762b19d4e9f to your computer and use it in GitHub Desktop.
Save kevpie/db9091633762b19d4e9f to your computer and use it in GitHub Desktop.
{
"window": {
"id": 2717,
"challenge_id": 95,
"start_date": "2014-01-13 00:00:00",
"end_date": "2014-01-19 23:59:59",
"interval": "1 day",
"ruleset": {
"id": 1, "multipliers": {"device-steps": 1}, "rules": [
{
"range": "day", "rules": [
{"type": ["device-steps"], "max": "100000"}
]
}
]
}
},
"series": [
{
"party": "person",
"window_id": 2717,
"operation": "person-sum-for-person",
"party_id": 1,
"value": 32170.00,
"updated_at": "2014-06-04 15:49:00.772508",
"series": [2468.00, 5198.00, 8152.00, 12562.00, 15152.00, 22699.00, 32170.00]
},
{
"party": "team",
"window_id": 2717,
"operation": "person-sum-for-team",
"party_id": 6860,
"value": 124143.00,
"updated_at": "2014-06-20 13:38:00.334494",
"series": [18212.00, 32183.00, 47428.00, 63764.00, 85719.00, 108131.00, 124143.00]
}
],
"breakdown": {
"window_id": 2717, "party": "person", "party_id": 1, "updated_at": "2014-06-04 15:47:09", "scores": [
{
"activityId": 2099425,
"createdAt": "2014-01-20 00:46:23",
"awardedAt": "2014-01-19 00:00:00",
"actualValue": 9471,
"adjustedValue": 9471,
"reasons": ["device-steps"]
},
{
"activityId": 2159233,
"createdAt": "2014-01-30 20:16:38",
"awardedAt": "2014-01-18 00:00:00",
"actualValue": 7547,
"adjustedValue": 7547,
"reasons": ["device-steps"]
},
{
"activityId": 2091940,
"createdAt": "2014-01-17 15:51:25",
"awardedAt": "2014-01-17 00:00:00",
"actualValue": 2590,
"adjustedValue": 2590,
"reasons": ["device-steps"]
},
{
"activityId": 2087022,
"createdAt": "2014-01-16 08:05:22",
"awardedAt": "2014-01-16 00:00:00",
"actualValue": 4410,
"adjustedValue": 4410,
"reasons": ["device-steps"]
},
{
"activityId": 2083862,
"createdAt": "2014-01-15 16:20:23",
"awardedAt": "2014-01-15 00:00:00",
"actualValue": 2954,
"adjustedValue": 2954,
"reasons": ["device-steps"]
},
{
"activityId": 2079757,
"createdAt": "2014-01-14 16:23:21",
"awardedAt": "2014-01-14 00:00:00",
"actualValue": 2730,
"adjustedValue": 2730,
"reasons": ["device-steps"]
},
{
"activityId": 2074604,
"createdAt": "2014-01-13 15:59:22",
"awardedAt": "2014-01-13 00:00:00",
"actualValue": 2468,
"adjustedValue": 2468,
"reasons": ["device-steps"]
}
]
},
"leaderboard": [
{
"party": "person",
"container": "group",
"window_id": 2717,
"perspective": "person-within-group",
"party_id": 1,
"container_id": 32,
"value": 32170.00,
"rank": 3,
"updated_at": "2014-06-20 13:38:00.334494"
},
{
"party": "person",
"container": "team",
"window_id": 2717,
"perspective": "person-within-team",
"party_id": 1,
"container_id": 6860,
"value": 32170.00,
"rank": 2,
"updated_at": "2014-06-20 13:38:00.334494"
},
{
"party": "team",
"container": "group",
"window_id": 2717,
"perspective": "team-within-group",
"party_id": 6860,
"container_id": 32,
"value": 124143.00,
"rank": 1,
"updated_at": "2014-06-20 13:38:00.334494"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment