Class MaterializedViewHealthCheckOptions
- Namespace
- Excalibur.EventSourcing.Health
- Assembly
- Excalibur.EventSourcing.dll
Configuration options for Excalibur.EventSourcing.Health.MaterializedViewHealthCheck.
public sealed class MaterializedViewHealthCheckOptions
- Inheritance
-
MaterializedViewHealthCheckOptions
- Inherited Members
Remarks
Controls health check behavior including staleness thresholds and failure rate monitoring.
Properties
FailureRateThresholdPercent
Gets or sets the threshold for failure rate percentage before reporting degraded status.
[Range(0, 100)]
public double FailureRateThresholdPercent { get; set; }
Property Value
- double
The failure rate threshold as a percentage (0-100). Defaults to 10%.
Remarks
When the rolling failure rate exceeds this threshold, the health check reports a degraded status. Values are clamped to the 0-100 range.
IncludeDetails
Gets or sets a value indicating whether to include detailed view information in the health report.
public bool IncludeDetails { get; set; }
Property Value
Name
Gets or sets the name of the health check.
[Required]
public string Name { get; set; }
Property Value
- string
The health check name. Defaults to "materialized-views".
StalenessThreshold
Gets or sets the maximum allowed staleness duration before a view is considered unhealthy.
public TimeSpan StalenessThreshold { get; set; }
Property Value
- TimeSpan
The staleness threshold. Defaults to 5 minutes.
Remarks
If the time since the last successful refresh exceeds this threshold, the health check will report a degraded or unhealthy status.
Tags
Gets or sets the tags to apply to this health check.
public List<string> Tags { get; set; }