The flow
Starts it 1Logic 19Service 6
The steps in the order they run, from what starts it.
- 1Schedule TriggerSchedule triggerStarts it
- 2OpenAI Admin - Get costHttp RequestService
- 3OpenAI Admin - get token usageHttp RequestService
- 4Merge token and usageMergeLogic
- 5Set api_key and project idsSetLogic
- 6Merge Usage dataMergeLogic
- 7Get project_idsCodeLogic
- 8Merge token, usage, projectsMergeLogic
- 9Split Out api_key and projectSplit OutLogic
- 10Add api_key name to token usageCodeLogic
- 11OpenAI Admin - Get Project detailsHttp RequestService
- 12Structure usage, cost, projectsSetLogic
- 13OpenAI Admin - Get API Key detailsHttp RequestService
- 14Add Project name in cost and usage objectsCodeLogic
- 15Set api_key id and nameSetLogic
- 16Split Out UsageSplit OutLogic
- 17Split Out CostSplit OutLogic
- 18Remove DuplicatesRemove DuplicatesLogic
- 19Structure Usage dataSetLogic
- 20Structure Cost dataSetLogic
- 21Split Out Usage ResultsSplit OutLogic
- 22Split Out Cost resultsSplit OutLogic
- 23Set Usage data for GsheetsSetLogic
- 24Set Cost data for GsheetsSetLogic
- 25Append Usage to GSheetsGoogle SheetsService
- 26Append Cost to GSheetsGoogle SheetsService