Configures telemetry using external file
All checks were successful
Build, Push and Run Container / build (push) Successful in 25s
All checks were successful
Build, Push and Run Container / build (push) Successful in 25s
Reads telemetry configuration parameters such as hostname, port, and CA certificate from an external JSON file. This decouples configuration from code, allowing for easier updates and management of telemetry settings.
This commit is contained in:
10
Source/ProofOfConcept/Models/ValidationModel.cs
Normal file
10
Source/ProofOfConcept/Models/ValidationModel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ProofOfConcept.Models;
|
||||
|
||||
public class ValidationModel
|
||||
{
|
||||
[JsonPropertyName("hostname")] public string HostName { get; set; } = "";
|
||||
[JsonPropertyName("port")] public ushort Port { get; set; } = 443;
|
||||
[JsonPropertyName("ca")] public string CA { get; set; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user