mp-proj-size
v1.0.7
Published
estimate the size of a mixpanel project
Downloads
3
Maintainers
Readme
mp-proj-size
estimate the size of a mixpanel project... in human readable terms.
tldr;
define .env
variables
echo "API_SECRET='' #api secret for project
START_DATE='01-01-2022' #when to start looking for events
END_DATE='08-01-2022' #when to stop looking for events
ITERATIONS='30' #60 is the max before you get rate limited" > .env
run
npx mp-proj-size
alternatively, do it all in one command:
API_SECRET='' START_DATE='01-01-2022' END_DATE='08-01-2022' ITERATIONS='30' npx mp-proj-size
see:
note:
this script uses JQL so it only works on projects in which /jql
is accessible:
function main() {
return Events({
from_date: '${date}',
to_date: '${date}'
})
.groupBy(["name"], mixpanel.reducer.any());
}