Added GetApplicationsCost method to get applications cost in general ( workspaces or experiments, can be differentiated using tags )
made GetWorkspacesCost deprecated
Type of change
[ ❌] Bug fix (non-breaking change which fixes an issue)
[ ✅] New feature (non-breaking change which adds functionality)
[ ❌] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ❌] This change requires a documentation update
why
To get costs of experiments and workspaces both while avoiding redundant code.
How Has This Been Tested?
locally using the test client
run go run cmd/testclient/client.go -method=GetApplicationsCost on running server to get costs of workspaces or experiments. NOTE: tag application id won't return any cost as of now.
Checklist:
[✅] My code follows the style guidelines of this project
[ ✅] I have performed a self-review of my own code
[ ✅] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ✅] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ✅] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
Type of change
why
To get costs of experiments and workspaces both while avoiding redundant code.
How Has This Been Tested?
locally using the test client run
go run cmd/testclient/client.go -method=GetApplicationsCost
on running server to get costs of workspaces or experiments. NOTE: tag application id won't return any cost as of now.Checklist: