logs eingefügt
All checks were successful
Gitea CI/CD / dotnet-build-and-test (push) Successful in 10m40s
Gitea CI/CD / Set Tag Name (push) Successful in 5s
Gitea CI/CD / docker-build-and-push (push) Successful in 12m32s
Gitea CI/CD / Create Tag (push) Successful in 5s

This commit is contained in:
2026-01-08 14:54:26 +01:00
parent 0b88292a85
commit 05e5a209da

View File

@@ -72,7 +72,7 @@ public class MonitoringController : Controller
try
{
// Find Server in Database
Server server = await _context.Servers.FindAsync(dto.Id);
var server = await _context.Servers.FindAsync(dto.Id);
// Add Hardware Configuration
try
@@ -83,6 +83,7 @@ public class MonitoringController : Controller
server.RamSize = dto.RamSize;
// Diskspace fehlt
_logger.LogInformation("Harware configuration successfull for server {server}", server.Name);
}
catch (Exception ex)
{
@@ -99,9 +100,24 @@ public class MonitoringController : Controller
}
// Server-Metrics endpoint for watcher-agent
[HttpPost("server-metrics/{id}")]
public async Task<IActionResult> ServerMetrics ([FromBody] HardwareDto dto)
{
return Ok();
}
// Service-Detection endpoint for watcher-agent
[HttpPost("container-detection")]
public async Task<IActionResult> ContainerDetection ([FromBody] HardwareDto dto)
{
return Ok();
}
// Service-Metrics endpoint for watcher-agent
// Container-Metrics endpoint for watcher-agent
[HttpPost("container-metrics/{id}")]
public async Task<IActionResult> ContainerMetrics ([FromBody] HardwareDto dto)
{
return Ok();
}
}