Skip to content

metrics assignment from variables #1427

@shahzebsiddiqui

Description

@shahzebsiddiqui

we should be able to assign metrics from variables defined in tests. This could look as follows. We can have a property name vars which will look for key under the vars section of the test. If the key is found we will assign the value to the metric. In this example below we can perform an assertion equality.

buildspecs:
  metric_variables:
    executor: generic.local.bash
    type: script
    description: capture metrics from variables
    vars:
       FOO: BAR
    run: echo $FOO
    tags: tutorials
    metrics: 
      foo:
        type: str
        vars: foo 
    status:
      assert_eq:
        - name: foo
          ref: BAR

TODO:

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions