What
Refactor aggregation so it grabs parameter aggregation methods from manifest context.
Why
This supports the deprecation of params.ts and simplifies how we configure the aggregation feature.
Context
The params.ts file is currently used to grab the aggregation method that the aggregate feature should use to aggregate the values for a given parameter across time or across components. This can be moved into the aggregate feature config.
This means you only have to provide the information when it is actually needed.
This is what the config should look like in the manifest:
aggregation: metrics:
- 'cpu/utilization'
method: sum
- cpu/energy
method: sum
type: 'both’
Prerequisites/resources
none
SoW (scope of work)
[ ] refactor aggregation feature to get its method value from manifest config
[ ] documentation updated
[ ] test cases and example manifests updated
Acceptance criteria
[ ] aggregation feature gets its method values from manifest config
GIVEN the aggregation feature is updated
WHEN I run the following manifest using if-run -m manifest.yml -s
AND the params.ts file has been deleted from IF
THEN the aggregate method should operate using the method values given in the manifest and return the following data:
What Refactor
aggregation
so it grabs parameter aggregation methods from manifestcontext
.Why This supports the deprecation of
params.ts
and simplifies how we configure the aggregation feature.Context
The
params.ts
file is currently used to grab the aggregation method that the aggregate feature should use to aggregate the values for a given parameter across time or across components. This can be moved into the aggregate feature config. This means you only have to provide the information when it is actually needed.This is what the config should look like in the manifest:
Prerequisites/resources none
SoW (scope of work)
aggregation
feature to get its method value from manifest configAcceptance criteria
method
values from manifest config GIVEN the aggregation feature is updated WHEN I run the following manifest usingif-run -m manifest.yml -s
AND the
params.ts
file has been deleted from IF THEN the aggregate method should operate using the method values given in the manifest and return the following data: