generated from vshn/go-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We use a unicode whitespace as Odoo does not render normal spaces and and will escape
- Loading branch information
Showing
14 changed files
with
26 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{template "_compute" . -}} | ||
{{- define "_compute" -}} | ||
{{$s:="\u2001"}}{{/*We need to use unicode whitespaces to make Odoo render them*/}} | ||
Compute | ||
|
||
Qty: {{.Quantity | printf "%.2f"}} {{.Unit}}-Minutes | ||
Average Usage: {{.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute | ||
{{$s}}Memory Requests: {{.SubItems.appuio_cloud_memory_subquery_memory_request.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute | ||
{{$s}}CPU Requests: {{.SubItems.appuio_cloud_memory_subquery_cpu_request.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute | ||
Unit Price: CHF {{.PricePerUnit | printf "%.10f"}} / {{.Unit}} / Minute | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{{- define "_usage" -}} | ||
Qty: {{.Quantity | printf "%.2f"}} {{.Unit}}-Minutes | ||
Average Usage: {{.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute | ||
{{ range .SubItems -}} | ||
Average {{.Description}}: {{.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute | ||
{{ end -}} | ||
Unit Price: CHF {{.PricePerUnit | printf "%.10f"}} / {{.Unit}} / Minute | ||
{{- end -}} |
4 changes: 1 addition & 3 deletions
4
description_templates/appuio_cloud_memory:c-appuio-cloudscale-lpg-2.gotmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
Compute | ||
|
||
{{template "_usage" . -}} | ||
{{template "_compute" . -}} |
4 changes: 1 addition & 3 deletions
4
description_templates/appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0.gotmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
Compute | ||
|
||
{{template "_usage" . -}} | ||
{{template "_compute" . -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
description_templates/golden/appuio_cloud_memory:c-appuio-cloudscale-lpg-2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
|
||
Compute | ||
|
||
Qty: 87955674.09 UNIT-Minutes | ||
Average Usage: 7.61 UNIT / Minute | ||
Average Memory requests: 0.70 TPS / Minute | ||
Average CPU requests in memory request equivalent: 0.70 TPS / Minute | ||
Memory Requests: 0.70 UNIT / Minute | ||
CPU Requests: 0.70 UNIT / Minute | ||
Unit Price: CHF 0.0000007460 / UNIT / Minute |
5 changes: 3 additions & 2 deletions
5
description_templates/golden/appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
|
||
Compute | ||
|
||
Qty: 87955674.09 UNIT-Minutes | ||
Average Usage: 7.61 UNIT / Minute | ||
Average Memory requests: 0.70 TPS / Minute | ||
Average CPU requests in memory request equivalent: 0.70 TPS / Minute | ||
Memory Requests: 0.70 UNIT / Minute | ||
CPU Requests: 0.70 UNIT / Minute | ||
Unit Price: CHF 0.0000007460 / UNIT / Minute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters