1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

doc: Improve description of context methods

This commit is contained in:
Marc Bonnici 2018-05-09 15:30:43 +01:00 committed by setrofim
parent 48a7ad9415
commit 86cc449203

View File

@ -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.