Resolve "Create end point for machine logbook"
Closes #301 (closed)
- to search machine events, we search events with
investigationId
is null andinstrumentName
is null
Info for ACU
- I've installed a test portal on
dau-dm-01:3000
connected to the test DB. ACU can connect withlocalContact
user. - Swagger doc
http://dau-dm-01:8000/api-docs/#/DataAcquisition/post_dataacquisition__apiKey__notification
- Example of event to send to ACU:
{
"type": "broadcast",
"tag": [
{
"name": "machine"
}
],
"category": "error",
"content": [
{
"format": "plainText",
"text": "beam loss!"
}
],
"source": "ebs",
"machine": "",
"software": ""
}
- python example: https://gitlab.esrf.fr/icat/tango-metadata/-/blob/master/src/metadata_manager/MetadataManager.py#L619
-
type
must bebroadcast
-
category
could becommandline
,comment
,error
,debug
,info
-
tag
is optional, coudl have multiple tags -
machine
could beebs
- send also the
API_KEY
Edited by Marjolaine Bodin