Grails app which uses the Usage and Insights APIs to help with departmental chargebacks
This app requires 3 external configuration files, which you MUST NOT check in to source.
All config files use ## to indicate comment lines. App probably doesn't handle blank lines so well so don't leave any in there.
.starter-accounts
format:
name:accountID:[valid insights API query key]
.starter-apikeys
This just should have one non-comment line, with the word "usage" and then a valid Usage API key:
usage:[valid key]
.starter-departments
This is a mapping of applications to departments, and also groups departments into 'environments',
see below for how environments are used for pricing.
Any app in your data, not mapped here, will just be listed in [no department]
each row is [app name]:[department name]:[environment name]
example:
my application:my department:PROD
Then, you can add more lines for a mapping of environment -> pricing.
This will be used in the UI to compute a grand total price based on the grand total hours for the department.
example:
PRICING:PROD:.50
PRICING:DEV:.30