Check config
All checks were successful
Build, Push and Run Container / build (push) Successful in 24s
All checks were successful
Build, Push and Run Container / build (push) Successful in 24s
This commit is contained in:
@@ -396,6 +396,10 @@ app.MapGet("/Status", async ([FromServices] ILogger<Configurator> logger, [FromS
|
|||||||
string statusResponseContent = await statusResponse.Content.ReadAsStringAsync();
|
string statusResponseContent = await statusResponse.Content.ReadAsStringAsync();
|
||||||
logger.LogTrace("Fleet status response: {statusResponseContent}", statusResponseContent);
|
logger.LogTrace("Fleet status response: {statusResponseContent}", statusResponseContent);
|
||||||
|
|
||||||
|
HttpResponseMessage rspmsg = await client.GetAsync($"GET /api/1/vehicles/{vin}/fleet_telemetry_config");
|
||||||
|
string rsp = await rspmsg.Content.ReadAsStringAsync();
|
||||||
|
logger.LogInformation("Telemetry config: {response}", rsp);
|
||||||
|
|
||||||
HttpResponseMessage responseMessage = await client.GetAsync($"/api/1/vehicles/{vin}/fleet_telemetry_errors");
|
HttpResponseMessage responseMessage = await client.GetAsync($"/api/1/vehicles/{vin}/fleet_telemetry_errors");
|
||||||
string response = await responseMessage.Content.ReadAsStringAsync();
|
string response = await responseMessage.Content.ReadAsStringAsync();
|
||||||
logger.LogInformation("Telemetry errors: {response}", response);
|
logger.LogInformation("Telemetry errors: {response}", response);
|
||||||
@@ -403,6 +407,7 @@ app.MapGet("/Status", async ([FromServices] ILogger<Configurator> logger, [FromS
|
|||||||
return Results.Ok(JsonSerializer.Serialize(new
|
return Results.Ok(JsonSerializer.Serialize(new
|
||||||
{
|
{
|
||||||
FleetStatus = statusResponseContent,
|
FleetStatus = statusResponseContent,
|
||||||
|
TelemetryConfig = rsp,
|
||||||
TelemetryErrors = response
|
TelemetryErrors = response
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user