-
Notifications
You must be signed in to change notification settings - Fork 54
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
Domain Model #1554
Domain Model #1554
Conversation
TODO (5)
With the latest structure changes focused on OT devices is gone.
Also that "gateway case" is covered now. |
TODO (1)
Entire document was changed according to the suggestion (see https://github.com/cstoidner/thin-edge.io/commit/0a9449d1f76ff94e2131937fe4584cff218b3fc4). |
TODO (2)
Suggestion applied, see https://github.com/cstoidner/thin-edge.io/commit/cfe5163bc6a396d6643412ee6dff39050fb67955 |
TODO (3)
The term "external child-device" is used, since beside those also processes or containers on the main-device can be handled as "logical child-devices". I added now an according hint, see https://github.com/cstoidner/thin-edge.io/commit/da26172f73e0f8109f3c53e09bc2d406ca550463 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please:
- clean the commit history inherited from child-device requirements #1195
- sign you commit with
commit -s
- read and follow the CONTRIBUTING.md guide
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
cfe5163
to
8a703d6
Compare
Done. |
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
TODO (6)
I see. I adopted the definition of metric now, see https://github.com/cstoidner/thin-edge.io/commit/e5e47a334d2db1aa939cbd02c2fcb9ddf5d8087f More details about that shall be later considered in the data model. |
TODO (7)
New response in old PR:
See #1195 (comment) Replaced now |
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
TODO(12)
I added the inventory, see e9c186a @reubenmiller , please have a look. |
TODO (13)
Also insprired by your suggestion I decoupled the concept 'telemtry data' from state now. |
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
TODO (4)
I removed now the concept "metric", but added "sample" underneath the measurements. See c6bbf0c |
TODO (11)
Software, configuration and log management do not really base on I assume your comment is a result of that missleading term of |
TODO (9)
Document was restructured and that entire section "thin-edge data concept" was removed now. |
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
|
TODO (10)
New suggestion in old PR:
See #1195 (comment) Still to be aligned about a suitable term. |
TODO (8)
Suggested explanation for "device twin" is adopted now.
More details can be added into a specific document. |
Co-authored-by: Albin Suresh <albinsuresh@hotmail.com>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
Signed-off-by: Christoph Stoidner <c.stoidner@gmx.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay to have this merged - as long as the commits are squashed.
However, I find this text really too dry with a long list of definitions with little context and definitions. Hope this will be improved in the future.
## Inventory | ||
|
||
**thin-edge** holds and manages an **inventory** on the **main-device**, that stores and provides information about the **main-device** and known **child-devices** | ||
* information stored per **device** are | ||
* supported kinds of **Device Management** capabilities/operations | ||
* supported kinds of **Telemetry Data** | ||
* optionally any custom-specific meta-information per **device** | ||
* the **inventory** is the communication backbone for **plugins**, **external child-devices**, the **domain application**[^1] and **thin-edge** it-self | ||
* one can add information to announce capabilities a **device** supports | ||
* another one can retrieve those information to identify capabililties a **device** supports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing of that section has been currently implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats true. Same for the new telemetry item setpoint
and telemetry details units
and samples
; and finally new device management functionality firmware management
.
For all those development work need to be planned.
Proposed changes
Documentation of the thin-edge domain-model.
That PR is a replacement for discontinued PR #1195.
but exclusively focuses on domain-model
Last unresolved domain-model comments from discontinued PR #1195 are listed below as TODOs. All those TODOs shall be considered/resolved in that PR; for each an individual comment shall be opened.
Synopsis: "This syntax is used in several places in this document, but sounds really weird."
Link: child-device requirements #1195 (comment)
Synopsis: "simplify this by removing "sensors, actuators or domain applications."
Link: child-device requirements #1195 (comment)
Synopsis: "Why do we use 'external' here? (external child-device)"
Link: child-device requirements #1195 (comment)
Synopsis: "I am a bit irretated by introducing "metric" here."
Link: child-device requirements #1195 (comment)
Synopsis: "This device model is focused on OT devices, while thin-edge will run elsewhere. I find this confusing."
Link: child-device requirements #1195 (comment)
Synopsis: "The source of a metric it not necessarily a device - it can be a process."
Link: child-device requirements #1195 (comment)
Synopsis: "Having "Command" under "telemetry" heading feels a bit strange to me."
Link: child-device requirements #1195 (comment)
Synopsis: "we should explain somewhere in more details our approach (device-twin) here,
e.g. that commands do a device state change and then update the device twin afterwards]"
Link: child-device requirements #1195 (comment)
Synopsis: "this section (data concept) is not domain-model related."
Link: child-device requirements #1195 (comment)
Synopsis: "better term for plugin"
Link: child-device requirements #1195 (comment)
Synopsis: "It would be good to explain that DM is conceptually based on the doamin model terms above."
Link: child-device requirements #1195 (comment)
Synopsis: "I think we are missing a section for the "Inventory data" which is neither measurement nor metrics."
Link: child-device requirements #1195 (comment)
Synopsis: Improvement for definition of 'device twin'
Link: child-device requirements #1195 (comment)
Types of changes
Paste Link to the issue
#1260
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments