-
Notifications
You must be signed in to change notification settings - Fork 66
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
Establish the structure/schema of an incoming messages on MQTT #5032
Comments
I've added some basic tests to the mqtt-schema-agent to test for the following:
At the moment this is pushed to the topic API, but not stored yet. Need to work out what columns we need to add to the MQTTTopicSchema table |
Just to emphasise something I mentioned yesterday re: workflow that may impact DB columns, ideally we have a review process in place (as requested by customers). We propose that we think a given structure is relevant, e.g. once confirmed it'd show as part of the AsyncAPI docs and the view in the topic hierarchy. Designs can be found here: #4963 |
I'm thinking we need 2 columns
The first carries the value from the agent, the UI lets the user either "accept" this (copy it to the user payload column) or provide their own. This way users can always override the generated value? |
We already have the We should add a second column for the inferred metadata. It does feel like this can get messy quite quickly after the user has 'confirmed' a payload schema - and we continue to detect and infer things under the covers. Not sure how we'd highlight to the user there's a difference. Lets take this one step at a time. |
Have raised FlowFuse/mqtt-schema-agent#12 to improve some of the edge case handling around non-string payloads. |
@knolleary this is good to close now, right? |
I believe it's closed by FlowFuse/mqtt-schema-agent#6 |
Given our traffic monitoring for the MQTT brokers, establish, and record, the payload structure/schema seen on each topic.
This would extend the work in #4919 where Nick established a foundation Async API schema for the topic hierarchy.
The text was updated successfully, but these errors were encountered: