feat: add CLI execution mode and YAML hot-reload support#9
Merged
javaChip56 merged 3 commits intomasterfrom Mar 18, 2026
Merged
feat: add CLI execution mode and YAML hot-reload support#9javaChip56 merged 3 commits intomasterfrom
javaChip56 merged 3 commits intomasterfrom
Conversation
added 3 commits
March 18, 2026 18:42
… README documentation
…reporting - Add CliExecutionService for executing health checks on configured endpoints. - Introduce CliOptions for parsing command-line arguments. - Implement output serialization for JSON and XML formats in CliReportSerializer. - Create CliParseResult to handle CLI parsing results and errors. - Add support for hot-reloading dashboard configuration with DashboardConfigHotReloadService. - Implement tests for CliExecutionService, CliOptions, and DashboardConfigHotReloadService. - Add new endpoint configuration for UTPL Integration API. - Enhance PollingSchedulerService to synchronize state store with current configuration.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds two major post-v1 enhancements to ApiHealthDashboard:
a one-shot CLI execution mode for running the full suite or selected endpoint YAML files with machine-readable output
YAML hot-reload for
dashboard.yamland referenced endpoint files so config changes can be applied without restarting the appWhat Changed
added CLI mode with
--cli --allfor full-suite executionadded CLI mode with repeated
--endpoint-filearguments for selected endpoint YAML executionadded machine-readable JSON output to stdout for CLI runs
added optional JSON or XML file output with
--output-fileand--output-formatadded CLI report models, serializers, and execution service
extended YAML loading to support selected endpoint-file execution for CLI mode
added hot-reload watchers for
dashboard.yamland referenced endpoint YAML filesadded debounced YAML reload behavior for create, change, delete, and rename events
updated runtime config handling so the app can swap to new YAML safely without restarting
updated the scheduler to reload polling loops when endpoint config changes
preserved runtime state for endpoints that remain present across YAML reloads
updated configuration warning handling so reload failures keep the last good config active and surface warnings in the UI
expanded test coverage for CLI parsing, CLI reporting, state preservation, scheduler reload, and config hot-reload behavior
updated README with CLI usage and YAML hot-reload documentation
Validation
dotnet build ApiHealthDashboard.sln -c Releasedotnet test ApiHealthDashboard.sln -c ReleaseResult:
Notes
CLI stdout remains JSON by default for automation use cases
YAML reload is debounced and non-destructive: if a reload fails, the app keeps the last successfully loaded configuration active