-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into migrate-subtract-to-builtin
Signed-off-by: Joseph Cook <33655003+jmcook1186@users.noreply.github.com>
- Loading branch information
Showing
57 changed files
with
1,935 additions
and
68 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,6 @@ | ||
module.exports = { | ||
'*.ts': [ | ||
'gts lint', | ||
], | ||
'package.json': 'fixpack', | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,4 +58,4 @@ tree: | |
inputs: | ||
- timestamp: "2024-04-04T08:00:00.001Z" | ||
duration: 3600 | ||
energy: 100 | ||
energy: 100 |
34 changes: 34 additions & 0 deletions
34
manifests/bugs/mock-observations-failure-duration-is-zero.yml
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,34 @@ | ||
name: mock-observation-demo | ||
description: a manifest demonstrating how to use the mock observations feature | ||
tags: | ||
initialize: | ||
outputs: ['yaml'] | ||
plugins: | ||
mock-observations: | ||
kind: plugin | ||
method: MockObservations | ||
path: "@grnsft/if-plugins" | ||
global-config: | ||
timestamp-from: 2023-07-06T00:00 | ||
timestamp-to: 2023-07-06T00:10 | ||
duration: 0 | ||
components: | ||
- cloud/instance-type: A1 | ||
- cloud/instance-type: B1 | ||
generators: | ||
common: | ||
region: uk-west | ||
common-key: common-val | ||
randint: | ||
cpu/utilization: | ||
min: 1 | ||
max: 99 | ||
memory/utilization: | ||
min: 1 | ||
max: 99 | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- mock-observations | ||
inputs: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: sci-embodied | ||
description: receiving incorrect error message when running sci-embodied without `resources-total` issue #716 | ||
tags: | ||
initialize: | ||
outputs: ['yaml'] | ||
plugins: | ||
"sci-embodied": # a model that calculates m from te, tir, el, rr and rtor | ||
method: SciEmbodied | ||
path: "builtin" | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- sci-embodied # duration & config -> embodied | ||
defaults: | ||
device/emissions-embodied: 1533.120 # gCO2eq | ||
time-reserved: 3600 # 1hr in seconds | ||
device/expected-lifespan: 94608000 # 3 years in seconds | ||
resources-reserved: 1 | ||
# resources-total: 8 | ||
inputs: | ||
- timestamp: 2023-07-06T00:00 | ||
duration: 3600 |
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
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,43 @@ | ||
name: Aggregation | ||
description: Apply both `horizontal` and `vertical` aggregations | ||
aggregation: | ||
metrics: | ||
- 'test' | ||
type: 'both' | ||
initialize: | ||
plugins: | ||
cloud-metadata: | ||
method: CloudMetadata | ||
path: "@grnsft/if-plugins" | ||
tree: | ||
children: | ||
application: | ||
pipeline: | ||
- cloud-metadata | ||
children: | ||
uk-west: | ||
children: | ||
server-1: | ||
inputs: | ||
- timestamp: '2024-02-26 00:00:00' | ||
duration: 300 | ||
cloud/instance-type: m5n.large | ||
cloud/vendor: aws | ||
cpu/utilization: 89 | ||
- timestamp: '2024-02-26 00:05:00' | ||
duration: 300 | ||
cloud/instance-type: m5n.large | ||
cloud/vendor: aws | ||
cpu/utilization: 59 | ||
server-2: | ||
inputs: | ||
- timestamp: '2024-02-26 00:00:00' | ||
duration: 300 | ||
cloud/instance-type: m5n.large | ||
cloud/vendor: aws | ||
cpu/utilization: 24 | ||
- timestamp: '2024-02-26 00:05:00' | ||
duration: 300 | ||
cloud/instance-type: m5n.large | ||
cloud/vendor: aws | ||
cpu/utilization: 27 |
Oops, something went wrong.