Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chandanjog/db343f2c82d3d1ab169b to your computer and use it in GitHub Desktop.
Save chandanjog/db343f2c82d3d1ab169b to your computer and use it in GitHub Desktop.
{
// retain all the other fields, especially the ones related to aggregate metric that are currently being populated. Once we make a switch
to start showing country level metic estimates we can play a card to delete the old field generation and remove any usage.
.
.
.
"metrics_by_country": {
"IN": {
"downloads_last_7_days_actual": "1977924",
"downloads_last_7_days_growth_percent": -40.88745740849383,
"downloads_last_7_days_growth_actual": "-1368107",
"downloads_last_30_days_actual": "11086980",
"downloads_last_30_days_growth_percent": 563.1183064524811,
"downloads_last_30_days_growth_actual": "9415034",
"downloads_last_cal_month_actual": "9750828",
"downloads_last_cal_month_growth_percent": 826.7702660317642,
"downloads_last_cal_month_growth_actual": "8698698",
// New time period fields for last year(last 365 days).
// Return 'NA' for growth numbers for apps where it does not make sense.
"downloads_last_year_actual": "9750828",
"downloads_last_year_growth_percent": 826.7702660317642,
"downloads_last_year_growth_actual": "8698698",
// New time period fields for last calendar year.
"downloads_last_cal_year_actual": "9750828",
"downloads_last_cal_year_growth_percent": 826.7702660317642,
"downloads_last_cal_year_growth_actual": "8698698",
// New time period fields for data since we track the estimates.
// Downloads since "earliest_available_estimate_date"
"downloads_since_tracked_actual": "9750828",
"downloads_since_tracked_growth_percent": 826.7702660317642,
"downloads_since_tracked_growth_actual": "8698698",
"revenue_last_7_days_actual": "0",
"revenue_last_7_days_growth_percent": 0,
"revenue_last_7_days_growth_actual": "0",
"revenue_last_30_days_actual": "0",
"revenue_last_30_days_growth_percent": 0,
"revenue_last_30_days_growth_actual": "0",
"revenue_last_cal_month_actual": "0",
"revenue_last_cal_month_growth_percent": 0,
"revenue_last_cal_month_growth_actual": "0",
// New time period fields for last year(last 365 days).
// Return 'NA' for growth numbers for apps where it does not make sense.
"revenue_last_year_actual": "9750828",
"revenue_last_year_growth_percent": 826.7702660317642,
"revenue_last_year_growth_actual": "8698698",
// New time period fields for last calendar year.
"revenue_last_cal_year_actual": "9750828",
"revenue_last_cal_year_growth_percent": 826.7702660317642,
"revenue_last_cal_year_growth_actual": "8698698",
// New time period fields for data since we track the estimates.
// Revenue since "earliest_available_estimate_date"
"revenue_since_tracked_actual": "9750828",
"revenue_since_tracked_growth_percent": 826.7702660317642,
"revenue_since_tracked_growth_actual": "8698698",
},
"US":{
...
},
//Global country
"GG":{
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment