Open stufisher opened 7 years ago
Hi @stufisher,
I had a brief discussion with Olof about this and we wonder if we could make it more generic. It seems to us that AutoProcProgramAnalysis will work only for xtraige (that by the way it is also run at ESRF) and it makes it not very scalable.
Our question is: could we make a new generic table like AutoProcProgramStatistic, for instance, with the following columns:
AutoProcProgramStatistic
---------------------------------
autoProcProgramStatisticId
autoProcProgramId
key
value
Then someone can attach n statistics to an AutoProcProgram but not necessarily severity, message or description. Otherwise, every new program to be executed with different output parameters would need a new table on ISPyB...
What do you think?
Sorry i think i forgot to explain the use case. We would populate one row in this table for each analysis result from any analysis program. I.e. xtraige might make 10 rows.
We think severity is the most important part of this table so you can specify whether the analysis result is good or bad.
I'm not quite clear how message and description are xtraige specific? Any program could output a message and a description?
I guess message could become summary?
message/description could be shortComments/comments or shortText/text in line with some other tables?
Ok. I understand, we thought severity was a specific output from xtriage but what you are suggesting here is a sort of generic notifications table, right?
So think this has evolved into an AutoProcProgramMessage table mentioned under the notifications discussion #3 and discussed on Video conference
AutoProcProgramMessage
----------------------------------
autoProcProgramMessageId - Primary Key
autoProcProgramId - Foreign Key
recordTimeStamp - timestamp
severity - enum('ERROR', 'WARNING', 'INFO')
message - varchar(200)
description - text
Diamond is now running xtraige on each autoprocessed data set, we would like to propose a table to store these results:
Example: Severity: 0 == good, 1 == alert, 2 == bad Message
Description:
@karllevik can weigh in with sql statements again