Package reference page maintained from the source documentation in src/HealthChecks.IoTDB.
Apache IoTDB Health Check
This health check verifies the ability to communicate with Apache IoTDB. It uses the Apache.IoTDB.Data library.
NuGet
dotnet add package DotNetDiag.HealthChecks.IoTDB
Example Usage
With all of the following examples, you can additionally add the following parameters:
name: The health check name. Default if not specified isiotdb.failureStatus: TheHealthStatusthat should be reported when the health check fails. Default isHealthStatus.Unhealthy.tags: A list of tags that can be used to filter sets of health checks.timeout: ASystem.TimeSpanrepresenting the timeout of the check.
Use a connection string
void Configure(IHealthChecksBuilder builder)
{
builder.Services
.AddHealthChecks()
.AddIoTDB("DataSource=localhost;Port=6667;Username=root;Password=root");
}
Use IoTDBHealthCheckOptions for advanced configuration
void Configure(IHealthChecksBuilder builder)
{
builder.Services
.AddHealthChecks()
.AddIoTDB(new IoTDBHealthCheckOptions
{
ConnectionString = "DataSource=localhost;Port=6667;Username=root;Password=root",
EnableRpcCompression = true
});
}