Make the RHAI variables more detailed. #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Drastically improve the variables exposed to the evaluation engine.
Repository related
repos_out_of_sync: The number of unique repositories out of sync across all servers scrapedrepos_total: The total number of unique repositories scraped across all servers (NEW!)Server counts, legacy variables
stratum0_servers: The number of stratum0 servers successfully scraped with a state of OKstratum1_servers: The number of stratum1 servers successfully scraped with a state of OKsync_servers: The number of sync servers successfully scraped with a state of OKServer counts, detailed variables (NEW!)
Stratum0
stratum0_ok: The number of stratum0 servers with status OK (legacy equivalent:stratum0_servers)stratum0_degraded: The number of stratum0 servers with status DEGRADEDstratum0_warning: The number of stratum0 servers with status WARNINGstratum0_failed: The number of stratum0 servers with status FAILEDstratum0_total: The total number of stratum0 servers scraped (should equal stratum0_ok + stratum0_degraded + stratum0_warning + stratum0_failed)Stratum1
stratum1_ok: The number of stratum1 servers with status OK (legacy equivalent:stratum1_servers)stratum1_degraded: The number of stratum1 servers with status DEGRADEDstratum1_warning: The number of stratum1 servers with status WARNINGstratum1_failed: The number of stratum1 servers with status FAILEDstratum1_total: The total number of stratum1 servers scraped (should equal stratum1_ok + stratum1_degraded + stratum1_warning + stratum1_failed)Syncservers
syncserver_ok: The number of sync servers with status OK (legacy equivalent:sync_servers)syncserver_degraded: The number of sync servers with status DEGRADEDsyncserver_warning: The number of sync servers with status WARNINGsyncserver_failed: The number of sync servers with status FAILEDsyncserver_total: The total number of sync servers scraped (should equal syncserver_ok + syncserver_degraded + syncserver_warning + syncserver_failed)Note: It's
syncserver(no underscore and singular, like stratum0/1).