@grnsft/if 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,112 @@
1
+ carbon:
2
+ description: an amount of carbon emitted into the atmosphere
3
+ unit: gCO2e
4
+ aggregation: sum
5
+ core-units:
6
+ description: number of cores available
7
+ unit: cores
8
+ aggregation: none
9
+ cpu-util:
10
+ description: refers to CPU utilization.
11
+ unit: percentage
12
+ aggregation: avg
13
+ disk-io:
14
+ description: refers to GB of data written/read from disk
15
+ unit: GB
16
+ aggregation: sum
17
+ duration:
18
+ description: refers to the duration of the input
19
+ unit: seconds
20
+ aggregation: sum
21
+ energy:
22
+ description: amount of energy utilised by the component
23
+ unit: kWh
24
+ aggregation: sum
25
+ energy-cpu:
26
+ description: Energy consumed by the CPU of the component
27
+ unit: kWh
28
+ aggregation: sum
29
+ expected-lifespan:
30
+ description: Total Expected Lifespan of the Component in Seconds
31
+ unit: seconds
32
+ aggregation: sum
33
+ energy-memory:
34
+ description: Energy consumed by the Memory of the component
35
+ unit: kWh
36
+ aggregation: sum
37
+ embodied-carbon:
38
+ description: Embodied Emissions of the component
39
+ unit: gCO2e
40
+ aggregation: sum
41
+ energy-network:
42
+ description: Energy consumed by the Network of the component
43
+ unit: kWh
44
+ aggregation: sum
45
+ functional-unit:
46
+ description: the name of the functional unit in which the final SCI value should be expressed, e.g. requests, users
47
+ unit: none
48
+ aggregation: sum
49
+ functional-unit-time:
50
+ description: string describing the unit of time in which the final SCI calculation should be expressed, e.g. "1-min"
51
+ unit: none
52
+ aggregation: none
53
+ gpu-util:
54
+ description: refers to CPU utilization.
55
+ unit: percentage
56
+ aggregation: avg
57
+ grid-carbon-intensity:
58
+ description: Carbon intensity for the grid
59
+ unit: gCO2eq/kWh
60
+ aggregation: avg
61
+ instance-type:
62
+ description: Type of Cloud Instance name used in the cloud provider APIs
63
+ unit: None
64
+ aggregation: None
65
+ location:
66
+ description: Geographic location of provider as string (for watt-time model it is provided as latitude and longitude, comma separated, in decimal degrees)
67
+ unit: None (decimal degrees for watt-time model)
68
+ aggregation: None
69
+ operational-carbon:
70
+ description: Operational Emissions of the component
71
+ unit: gCO2e
72
+ aggregation: sum
73
+ physical-processor:
74
+ description: Name of the physical processor
75
+ unit: None
76
+ aggregation: none
77
+ vendor:
78
+ description: Name of the cloud service provider in the ccf model. Can be aws, gcp or azure
79
+ unit: None
80
+ aggregation: none
81
+ ram-alloc:
82
+ description: refers to GB of memory allocated.
83
+ unit: GB
84
+ aggregation: avg
85
+ ram-util:
86
+ description: refers to percentage of memory utilized.
87
+ unit: percentage
88
+ aggregation: avg
89
+ resources-reserved:
90
+ description: resources reserved for an application
91
+ unit: count
92
+ aggregation: none
93
+ thermal-design-power:
94
+ description: thermal design power for a processor
95
+ unit: kwh
96
+ aggregation: avg
97
+ total-embodied-emissions:
98
+ description: total embodied emissions of some component
99
+ unit: gCO2e
100
+ aggregation: sum
101
+ timestamp:
102
+ description: refers to the time of occurrence of the input
103
+ unit: RFC3339
104
+ aggregation: none
105
+ time-reserved:
106
+ description: time reserved for a component
107
+ unit: seconds
108
+ aggregation: none
109
+ total-resources:
110
+ description: total resources available
111
+ unit: count
112
+ aggregation: none
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grnsft/if",
3
3
  "description": "Impact Framework",
4
- "version": "v0.1.5",
4
+ "version": "v0.1.6",
5
5
  "author": {
6
6
  "name": "Green Software Foundation",
7
7
  "email": "info@gsf.com"
@@ -13,6 +13,7 @@
13
13
  "url": "https://github.com/Green-Software-Foundation/if/issues/new?assignees=&labels=feedback&projects=&template=feedback.md&title=Feedback+-+"
14
14
  },
15
15
  "dependencies": {
16
+ "copyfiles": "^2.4.1",
16
17
  "js-yaml": "^4.1.0",
17
18
  "moment": "^2.29.4",
18
19
  "moment-range": "^4.0.2",
@@ -55,7 +56,7 @@
55
56
  "url": "https://github.com/Green-Software-Foundation/if"
56
57
  },
57
58
  "scripts": {
58
- "build": "rm -rf build && tsc --project tsconfig.build.json",
59
+ "build": "rm -rf build && tsc --project tsconfig.build.json && copyfiles -u 2 src/config/units.yaml build/config",
59
60
  "coverage": "jest --verbose --coverage",
60
61
  "fix": "gts fix",
61
62
  "fix:package": "fixpack",