Skip to content
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

docs: add more markdown examples for te2mqtt and the proposal banner #2106

Merged

Conversation

reubenmiller
Copy link
Contributor

Proposed changes

Extending the markdown examples with the following examples:

  • ProposalBanner - to show when a page is a proposal only (no implementation)
  • More examples for new te2mqtt options (e.g. formats, grouping etc.)

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • Documentation Update (if none of the other choices apply)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue


Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA (in all commits with git commit -s)
  • I ran cargo fmt as mentioned in CODING_GUIDELINES
  • I used cargo clippy as mentioned in CODING_GUIDELINES
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
@reubenmiller reubenmiller added the documentation Improvements or additions to documentation label Jul 27, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 27, 2023

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
239 0 5 239 100

Passed Tests

Name ⏱️ Duration Suite
Define Child device 1 ID 0.008 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 1.7530000000000001 s C8Y Child Alarms Rpi
Normal case when the child device already exists 0.835 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 1.046 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 65.283 s C8Y Child Alarms Rpi
Prerequisite Parent 13.439 s Child Conf Mgmt Plugin
Prerequisite Child 0.261 s Child Conf Mgmt Plugin
Child device bootstrapping 11.7 s Child Conf Mgmt Plugin
Snapshot from device 61.356 s Child Conf Mgmt Plugin
Child device config update 62.68 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 45.847 s Inotify Crate
Check lock file existence in default folder 1.45 s Lock File
Check PID number in lock file 1.669 s Lock File
Check PID number in lock file after restarting the services 61.585 s Lock File
Check starting same service twice 0.71 s Lock File
Switch off lock file creation 1.625 s Lock File
Set configuration when file exists 5.8309999999999995 s Configuration Operation
Set configuration when file does not exist 5.152 s Configuration Operation
Set configuration with broken url 4.515 s Configuration Operation
Get configuration 4.888 s Configuration Operation
Get non existent configuration file 4.432 s Configuration Operation
Get non existent configuration type 4.275 s Configuration Operation
Update configuration plugin config via cloud 4.549 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace 4.168 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite 2.561 s Configuration Operation
Update configuration plugin config via local filesystem copy 4.946 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) 2.912 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) 3.194 s Configuration Operation
Update the custom operation dynamically 49.834 s Dynamically Reload Operation
Custom operation successful 63.236 s Custom Operation
Custom operation fails 50.333 s Custom Operation
Successful firmware operation 119.06 s Firmware Operation
Install with empty firmware name 50.468 s Firmware Operation
Prerequisite Parent 15.067 s Firmware Operation Child Device
Prerequisite Child 7.723 s Firmware Operation Child Device
Child device firmware update 5.719 s Firmware Operation Child Device
Child device firmware update with cache 6.042 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 4.579 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json 0.879 s Inventory Update
Inventory includes the agent fragment with version information 0.656 s Inventory Update
Retrieve a JWT tokens 27.705 s Jwt Request
Mapper recovers and processes output of ongoing software update request 14.825 s Recover And Publish Software Update Message
Check running collectd 1.067 s Monitor Device Collectd
Is collectd publishing MQTT messages? 2.92 s Monitor Device Collectd
Check thin-edge monitoring 3.842 s Monitor Device Collectd
Check grouping of measurements 8.668 s Monitor Device Collectd
Main device registration 1.716 s Device Registration
Child device registration 2.044 s Device Registration
Supports restarting the device 40.865 s Restart Device
Update tedge version from previous using Cumulocity 82.134 s Tedge Self Update
Test if all c8y services are up 42.32 s Service Monitoring
Test if all c8y services are down 105.307 s Service Monitoring
Test if all c8y services are using configured service type 218.879 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 147.951 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 20.305 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 21.538 s Service Monitoring
Check health status of child device service 16.119 s Service Monitoring
Successful shell command with output 3.4859999999999998 s Shell Operation
Check Successful shell command with literal double quotes output 3.558 s Shell Operation
Execute multiline shell command 3.428 s Shell Operation
Failed shell command 3.201 s Shell Operation
Software list should be populated during startup 45.523 s Software
Install software via Cumulocity 48.554 s Software
tedge-agent should terminate on SIGINT while downloading file 38.723 s Software
Software list should only show currently installed software and not candidates 31.063 s Software
Create and publish the tedge agent supported operations on mapper restart 45.891 s Mapper-Publishing-Agent-Supported-Ops
Agent gets the software list request once it comes up 37.248 s Mapper-Publishing-Agent-Supported-Ops
Child devices support sending simple measurements 1.29 s Child Device Telemetry
Child devices support sending custom measurements 1.092 s Child Device Telemetry
Child devices support sending custom events 1.108 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.309 s Child Device Telemetry
Child devices support sending custom alarms #1699 1.408 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 0.875 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 1.458 s Child Device Telemetry
Check retained alarms 160.314 s Raise Alarms
Thin-edge devices support sending simple measurements 1.237 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type 1.019 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements 1.041 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events 0.905 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type 1.292 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 1.185 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y 1.692 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic 1.373 s Thin-Edge Device Telemetry
thin-edge components support a custom config-dir location via flags 26.709 s Config Dir
Validate updated data path used by tedge-agent 0.331 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 10.09 s Data Path Config
Validate updated data path used by tedge-agent 0.662 s Log Path Config
Check existence of init directories 1.092 s Tedge Init
Tedge init and check creation of folders 0.812 s Tedge Init
Check ownership of the folders 1.207 s Tedge Init
Change user/group and check the change 0.847 s Tedge Init
Tedge init and check if default values are restored 1.108 s Tedge Init
Install thin-edge via apt 36.973 s Install Apt
Install latest via script (from current branch) 20.97 s Install Tedge
Install specific version via script (from current branch) 24.583 s Install Tedge
Install latest tedge via script (from main branch) 21.141 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 56.132 s Install Tedge
Support starting and stopping services 27.587 s Service-Control
Supports a reconnect 49.711 s Test-Commands
Supports disconnect then connect 36.313 s Test-Commands
Update unknown setting 30.969 s Test-Commands
Update known setting 36.788 s Test-Commands
It checks MQTT messages using a pattern 63.537 s Test-Mqtt
Stop c8y-configuration-plugin 0.111 s Health C8Y-Configuration-Plugin
Update the service file 0.119 s Health C8Y-Configuration-Plugin
Reload systemd files 0.39 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.152 s Health C8Y-Configuration-Plugin
Start watchdog service 10.211 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.088 s Health C8Y-Configuration-Plugin
Kill the PID 0.175 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 6.562 s Health C8Y-Configuration-Plugin
Compare PID change 0.001 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.099 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.107 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.173 s Health C8Y-Log-Plugin
Update the service file 0.092 s Health C8Y-Log-Plugin
Reload systemd files 0.45 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.183 s Health C8Y-Log-Plugin
Start watchdog service 10.145 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.061 s Health C8Y-Log-Plugin
Kill the PID 0.167 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 6.519 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.118 s Health C8Y-Log-Plugin
Remove entry from service file 0.133 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.219 s Health Tedge Mapper C8Y
Update the service file 0.09 s Health Tedge Mapper C8Y
Reload systemd files 0.469 s Health Tedge Mapper C8Y
Start tedge-mapper 0.129 s Health Tedge Mapper C8Y
Start watchdog service 10.178 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.124 s Health Tedge Mapper C8Y
Kill the PID 0.208 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 6.47 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.308 s Health Tedge Mapper C8Y
Remove entry from service file 0.147 s Health Tedge Mapper C8Y
Stop tedge-agent 0.109 s Health Tedge-Agent
Update the service file 0.098 s Health Tedge-Agent
Reload systemd files 0.351 s Health Tedge-Agent
Start tedge-agent 0.185 s Health Tedge-Agent
Start watchdog service 10.175 s Health Tedge-Agent
Check PID of tedge-mapper 0.077 s Health Tedge-Agent
Kill the PID 0.209 s Health Tedge-Agent
Recheck PID of tedge-agent 6.809 s Health Tedge-Agent
Compare PID change 0.001 s Health Tedge-Agent
Stop watchdog service 0.248 s Health Tedge-Agent
Remove entry from service file 0.181 s Health Tedge-Agent
Stop tedge-mapper-az 0.094 s Health Tedge-Mapper-Az
Update the service file 0.122 s Health Tedge-Mapper-Az
Reload systemd files 0.542 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.209 s Health Tedge-Mapper-Az
Start watchdog service 10.216 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.091 s Health Tedge-Mapper-Az
Kill the PID 0.161 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 6.407 s Health Tedge-Mapper-Az
Compare PID change 0.001 s Health Tedge-Mapper-Az
Stop watchdog service 0.209 s Health Tedge-Mapper-Az
Remove entry from service file 0.324 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.117 s Health Tedge-Mapper-Collectd
Update the service file 0.151 s Health Tedge-Mapper-Collectd
Reload systemd files 0.398 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.135 s Health Tedge-Mapper-Collectd
Start watchdog service 10.163 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.224 s Health Tedge-Mapper-Collectd
Kill the PID 0.403 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 6.632 s Health Tedge-Mapper-Collectd
Compare PID change 0.002 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.356 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.293 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 5.784 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.426 s MQTT health endpoints
c8y-configuration-plugin health status 5.769 s MQTT health endpoints
Publish on a local insecure broker 0.315 s Basic Pub Sub
Publish on a local secure broker 1.669 s Basic Pub Sub
Publish on a local secure broker with client authentication 3.103 s Basic Pub Sub
Publish events to subscribed topic 0.339 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to unsubscribed topic 5.248 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to subscribed topic 0.236 s Custom Sub Topics Tedge-Mapper-Az
Publish measurements to unsubscribed topic 5.277 s Custom Sub Topics Tedge-Mapper-Az
Publish events to subscribed topic 0.215 s Custom Sub Topics Tedge-Mapper-C8Y
Publish measurements to unsubscribed topic 5.292 s Custom Sub Topics Tedge-Mapper-C8Y
Check remote mqtt broker #1773 2.88 s Remote Mqtt Broker
Apply name filter 0.093 s Filter Packages List Output
Apply maintainer filter 0.09 s Filter Packages List Output
Apply both filters 0.094 s Filter Packages List Output
No filters 0.147 s Filter Packages List Output
Both filters but name filter as empty string 0.123 s Filter Packages List Output
Both filters but maintainer filter as empty string 0.103 s Filter Packages List Output
Both filters as empty string 0.074 s Filter Packages List Output
Wrong package name 0.154 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.094 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.235 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.258 s Tedge Connect Test
tedge_connect_test_negative 0.696 s Tedge Connect Test
tedge_connect_test_sm_services 7.627 s Tedge Connect Test
tedge_disconnect_test_sm_services 60.434 s Tedge Connect Test
Install thin-edge.io 22.108 s Call Tedge
call tedge -V 0.114 s Call Tedge
call tedge -h 0.073 s Call Tedge
call tedge -h -V 0.119 s Call Tedge
call tedge help 0.101 s Call Tedge
tedge config list 0.099 s Call Tedge Config List
tedge config list --all 0.079 s Call Tedge Config List
set/unset device.type 0.301 s Call Tedge Config List
set/unset device.key_path 0.222 s Call Tedge Config List
set/unset device.cert_path 0.243 s Call Tedge Config List
set/unset c8y.root_cert_path 0.289 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.307 s Call Tedge Config List
set/unset c8y.topics 0.231 s Call Tedge Config List
set/unset az.root_cert_path 0.302 s Call Tedge Config List
set/unset az.topics 0.239 s Call Tedge Config List
set/unset aws.topics 0.358 s Call Tedge Config List
set/unset aws.url 0.304 s Call Tedge Config List
set/unset aws.root_cert_path 0.309 s Call Tedge Config List
set/unset aws.mapper.timestamp 0.311 s Call Tedge Config List
set/unset az.mapper.timestamp 0.45 s Call Tedge Config List
set/unset mqtt.bind.address 0.528 s Call Tedge Config List
set/unset mqtt.bind.port 0.466 s Call Tedge Config List
set/unset http.bind.port 0.607 s Call Tedge Config List
set/unset tmp.path 0.466 s Call Tedge Config List
set/unset logs.path 0.364 s Call Tedge Config List
set/unset run.path 0.316 s Call Tedge Config List
set/unset firmware.child.update.timeout 0.468 s Call Tedge Config List
set/unset c8y.url 0.278 s Call Tedge Config List
set/unset az.url 0.228 s Call Tedge Config List
set/unset mqtt.external.bind.port 0.318 s Call Tedge Config List
mqtt.external.bind.address 0.326 s Call Tedge Config List
mqtt.external.bind.interface 0.389 s Call Tedge Config List
set/unset mqtt.external.ca_path 0.268 s Call Tedge Config List
set/unset mqtt.external.cert_file 0.244 s Call Tedge Config List
set/unset mqtt.external.key_file 0.236 s Call Tedge Config List
set/unset software.plugin.default 0.235 s Call Tedge Config List
Get Put Delete 1.561 s Http File Transfer Api
Set keys should return value on stdout 0.1 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.218 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.219 s Tedge Config Get
Set configuration via environment variables 1.011 s Tedge Config Get
Set configuration via environment variables for topics 0.296 s Tedge Config Get
Set unknown configuration via environment variables 0.102 s Tedge Config Get

@reubenmiller reubenmiller temporarily deployed to Test Pull Request July 28, 2023 10:27 — with GitHub Actions Inactive
@reubenmiller reubenmiller merged commit 063c96b into thin-edge:main Jul 28, 2023
16 checks passed
@reubenmiller reubenmiller deleted the docs-component-examples-mqtt-banner branch July 28, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants