Skip to content

Commit

Permalink
Test project-costshares
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Jun 13, 2024
1 parent b760605 commit 3600c98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/2024-01-01_2024-02-01.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ START,END,accountname,Proj$,COST
2024-01-01,2024-02-01,aws-auth,Proj$project-002,0.1231
2024-01-01,2024-02-01,aws-auth,Proj$project-003,9.32
2024-01-01,2024-02-01,aws-auth,Proj$project-004,9.30
2024-01-01,2024-02-01,aws-auth,Proj$project-noshared,0.33
2024-01-01,2024-02-01,aws-monitoring,Proj$,444.66772
2024-01-01,2024-02-01,aws-development,Proj$,1002.1
2024-01-01,2024-02-01,aws-development,Proj$a,501.05
Expand Down
3 changes: 3 additions & 0 deletions example/output.csv
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
start,projectname,account,tag,cost
2024-01-01,Internal - development,aws-auth [shared],Proj$,4.264684
2024-01-01,Internal - training,aws-auth [shared],Proj$,4.264684
2024-01-01,No shared costs,aws-auth [shared],Proj$,0.0
2024-01-01,No shared costs,aws-auth [shared],Proj$project-noshared,0.33
2024-01-01,Project A,aws-auth [shared],Proj$,4.264684
2024-01-01,Project A,aws-auth [shared],Proj$project-001,21.24323
2024-01-01,Project B,aws-auth [shared],Proj$,4.264684
2024-01-01,Project B,aws-auth [shared],Proj$project-002,0.1231
2024-01-01,Project B,aws-auth [shared],Proj$project-003,9.32
2024-01-01,SPECIAL-OPS,aws-auth [shared],Proj$,4.264684
2024-01-01,SPECIAL-OPS,aws-auth [shared],Proj$project-004,9.3
2024-01-01,No shared costs,aws-monitoring [shared],Proj$,0.0
2024-01-01,SPECIAL-OPS,aws-monitoring [shared],Proj$,444.66772
2024-01-01,Internal - development,aws-development [project-specific],Proj$,1002.1
2024-01-01,Internal - development,aws-development [project-specific],Proj$a,501.05
Expand Down
3 changes: 3 additions & 0 deletions example/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ proj-tag-names:
"project-002": "Project B"
"project-003": "Project B"
"project-004": "SPECIAL-OPS"
"project-noshared": "No shared costs"

shared-tag-values:
- "shared"
Expand All @@ -22,6 +23,8 @@ project-groups:
web:
- name: "SPECIAL-OPS"
costshare: 1
- name: "No shared costs"
costshare: 0
# TODO: Should every project be in at least one group?
other:
- name: "Complicated Project Name / 🐣 / 🐧"
Expand Down

0 comments on commit 3600c98

Please sign in to comment.