-
Notifications
You must be signed in to change notification settings - Fork 53
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
Health status documentation #2375
Health status documentation #2375
Conversation
5fd1107
to
f921d95
Compare
Robot Results
|
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.
Good work! A bit more needs to be updated
5b800ec
to
99ce3cb
Compare
99ce3cb
to
bb98d1a
Compare
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.
Sorry, was a bit late to submit my review. But there are some mistakes in the updated docs, that you'd have to correct.
|root|Base topic to group the identifier and channel under one common namespace| | ||
|identifier|A descriptor which represents which device/service the channel data is related to| | ||
|channel|Represents the information, such as telemetry data and commands, related to the **identifier**. Each channel type defines its own sub topic structure and corresponding payload format.| | ||
| Group | Description | |
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.
Although I agree that this looks better, we're not sure if these reformattings are sustainable. Every time we add a new entry or update an existing entry, like Description
, a similar reformatting will be required affecting all the lines. That's why we went for the easiest, maintainable option.
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 agree, I'll disable my markdown formatting extensions and try to not reformat stuff in the future.
| a | Alarms | | ||
| cmd | Commands | | ||
| twin | Entity twin metadata | | ||
| status | Service status | |
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.
| status | Service status | | |
| status | Entity status | |
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.
AFAIK currently we have only services publishing health status messages, and this status
category is not clearly defined:
- can health status messages be published for devices as well?
- are there any other statuses valid for devices but not services?
I think this status
category is only referenced here, so I'd rather be conservative with the wording here and only describe what is currently implemented, instead of trying to cover how it might be implemented in the future.
|`pid`|Process ID of the service| | ||
|`status`|Service status. Possible values are `up` or `down`| | ||
|`time`|Unix timestamp in seconds| | ||
<!-- TODO: this should be in a reference about health status messages --> |
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.
What do you mean?
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.
See this comment: #2375 (comment)
IMO we have a lot of repetition going on between different documentation pages, where a lot of the properties of different messages are mentioned in different contexts, and we should be aiming to have a reference describing these things in a single place.
Here, I don't think this table of properties of a health message doesn't add much value, as we don't refer to pid
or time
much in the rest of this document, but it's tricky where to draw the line which things are better to be extracted, and which be duplicated for the convenience of the reader.
Proposed changes
This PR updates the markdown documentation regarding health statuses and health checks.
Types of changes
Paste Link to the issue
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments