Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurement logging: pre-execution hook #156

Open
MatthieuDartiailh opened this issue Sep 11, 2018 · 1 comment
Open

Measurement logging: pre-execution hook #156

MatthieuDartiailh opened this issue Sep 11, 2018 · 1 comment

Comments

@MatthieuDartiailh
Copy link
Member

The idea is to have a pre-execution hook allowing to generate a log of the run measurements. Having this mechanism in place could prove quite powerful in the future but for the first implementation I propose for most settings to be hard-coded.

  • the file will be saved under the application folder (in measurement). It will be rolled monthly.
  • to be both human readable and allow efficient parsing I propose to use JSON. Each measurement run would be a top level entry in the file, which should allow to append to the file without the need to fully parse it.
  • the information stored will contain:
    • the measurement name, id and starting time
    • the default path of the measurement
    • the ids of the tasks used
    • the ids of the instruments used

That file can then be used to generate different kind of reports is necessary

The hook does not need a view since it is hard-coded.

@galactikvoyager @leghtas this is of interest to Erwann and will be implemented by him. Feel free to provide any feedback you may have.

@MatthieuDartiailh
Copy link
Member Author

Given its general nature this hook could be added in the default ones (listed in MeasurementPlugin.default_pre_hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant