Skip to content

Commit

Permalink
Merge pull request #420 from Green-Software-Foundation/update-yamls
Browse files Browse the repository at this point in the history
exmaples: added missed yamls, updated old yamls
  • Loading branch information
jmcook1186 authored Feb 2, 2024
2 parents 932ec3f + 4ec4f43 commit e101783
Show file tree
Hide file tree
Showing 15 changed files with 30,239 additions and 30,133 deletions.
38 changes: 19 additions & 19 deletions examples/impls/test/aggregation-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: nesting-demo
description:
aggregation:
metrics: ['carbon', 'energy']
type: 'horizontal'
metrics: ["carbon", "energy"]
type: "horizontal"
tags:
kind: web
complexity: moderate
Expand Down Expand Up @@ -39,71 +39,71 @@ graph:
sci-m:
total-embodied-emissions: 251000 # gCO2eq
time-reserved: 3600 # 1 hour in s
expected-lifespan: 126144000 # 4 years in seconds
resources-reserved: 1
total-resources: 1
expected-lifespan: 126144000 # 4 years in seconds
resources-reserved: 1
total-resources: 1
sci-o:
grid-carbon-intensity: 457 # gCO2/kwh
sci:
functional-unit-duration: 1
functional-duration-time: ''
functional-unit-time: 1 minute
functional-duration-time: ""
functional-unit: requests # factor to convert per time to per f.unit
children:
child-1:
inputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu-util: 10
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
- timestamp: 2023-07-06T00:10
duration: 10
cpu-util: 10
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
- timestamp: 2023-07-06T00:20
duration: 10
cpu-util: 10
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
- timestamp: 2023-07-06T00:30
duration: 10
cpu-util: 10
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
child-2:
inputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu-util: 20
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
- timestamp: 2023-07-06T00:10
duration: 10
cpu-util: 30
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
- timestamp: 2023-07-06T00:20
duration: 10
cpu-util: 40
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
- timestamp: 2023-07-06T00:30
duration: 10
cpu-util: 50
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
child-3:
inputs:
inputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu-util: 10
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
child-4:
inputs:
inputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu-util: 10
e-net: 0.000811 #kwh
e-net: 0.000811 #kwh
requests: 380
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ccf-demo
description: example impl invoking CCF model
name: azure-importer
description: example impl invoking Azure Importer model
tags:
initialize:
models:
Expand All @@ -15,12 +15,10 @@ graph:
config:
azure-importer:
inputs:
- timestamp: '2023-11-02T10:35:31.820Z'
- timestamp: "2023-11-02T10:35:31.820Z"
duration: 3600
azure-observation-window: 5 min # value and unit must be space separated
azure-observation-aggregation: 'average'
azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
azure-resource-group: vm1_group
azure-vm-name: vm1


azure-observation-window: 5 min # value and unit must be space separated
azure-observation-aggregation: "average"
azure-subscription-id: 42a3c589-87ce-4478-8ed6-9adc11b81965
azure-resource-group: Group1
azure-vm-name: VM1
27 changes: 27 additions & 0 deletions examples/impls/test/boavizta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: boavizta
description: calls boavizta api
tags:
initialize:
models:
- name: boavizta-cpu
model: BoaviztaCpuOutputModel
path: "@grnsft/if-unofficial-models"
config:
allocation: LINEAR
verbose: true
graph:
children:
child:
pipeline:
- boavizta-cpu
config:
boavizta-cpu:
core-units: 24
physical-processor: Intel® Core™ i7-1185G7
inputs:
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
duration: 3600 # Secs
cpu-util: 18.392
- timestamp: 2023-08-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
duration: 3600 # Secs
cpu-util: 16
2 changes: 0 additions & 2 deletions examples/impls/test/if-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ graph:
sci:
functional-unit: ''
functional-unit-time: hour
functional-unit-duration: 1
inputs:
- timestamp: '2023-11-02T10:35:31.820Z'
duration: 3600
Expand All @@ -58,4 +57,3 @@ graph:
expected-lifespan: 94348800 # 3 yrs in seconds
resources-reserved: 1
total-resources: 64

Loading

0 comments on commit e101783

Please sign in to comment.