first commit

This commit is contained in:
2026-03-02 20:53:28 +01:00
commit d27c205106
63 changed files with 4593 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using HanaToolbox.Cli;
using HanaToolbox.Config;
using HanaToolbox.Logging;
using HanaToolbox.Services;
namespace HanaToolbox.Commands;
public static class MonitorCommand
{
public static async Task<int> RunAsync(CliArgs cli)
{
var log = new AppLogger(cli.Verbose);
try
{
var config = ConfigService.Load();
var sid = string.IsNullOrWhiteSpace(cli.Sid) ? config.Hana.Sid : cli.Sid;
log.Step("Running monitor check...");
await ServiceFactory.CreateMonitorService(log)
.RunAsync(config.Monitor, config.Hana, sid);
return 0;
}
catch (Exception ex) { log.Error(ex.Message); return 1; }
}
}