mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
doc: Improve description of context methods
This commit is contained in:
parent
48a7ad9415
commit
86cc449203
@ -46,9 +46,10 @@ like which workload is currently running.
|
||||
|
||||
Notable methods of the context are:
|
||||
|
||||
context.add_artifact(name, path, kind, description=None, classifier=None)
|
||||
This is how plugins can add :ref:`artifacts <artifact>` of various types to
|
||||
the run output folder for WA.
|
||||
context.add_artifact(name, host_file_path, kind, description=None, classifier=None)
|
||||
Plugins can add :ref:`artifacts <artifact>` of various kinds to the run
|
||||
output folder for WA and associate them with a description and/or
|
||||
:ref:`classifier <classifiers>`.
|
||||
|
||||
context.add_metric(name, value, units=None, lower_is_better=False, classifiers=None)
|
||||
This method should be used to add :ref:`metrics <metrics>` that have been
|
||||
@ -83,7 +84,7 @@ context.current_job.current_iteration
|
||||
context.current_job_output
|
||||
This is the result object for the current iteration. This is an instance
|
||||
of :class:`wa.framework.output.JobOutput`. It contains the status
|
||||
of the iteration as well as the metrics and artefacts generated by the
|
||||
of the iteration as well as the metrics and artifacts generated by the
|
||||
workload.
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user