/// <summary> /// <para>Initializes a new instance of the <see cref="System.Fabric.Health.HealthReport" /> class.</para> /// </summary> /// <param name="kind"> /// <para>The kind of the health report. </para> /// </param> /// <param name="healthInformation"> /// <para>The <see cref="System.Fabric.Health.HealthInformation"/> which describes the report fields, like sourceId, property, health state. Required.</para> /// </param> protected HealthReport(HealthReportKind kind, HealthInformation healthInformation) { Requires.Argument <HealthInformation>("healthInformation", healthInformation).NotNull(); this.Kind = kind; this.HealthInformation = healthInformation; }
protected internal HealthCheckInfo(HealthMonitor healthMonitor, TimeSpan frequency, HealthReportKind kind, String property) { HealthMonitor = healthMonitor; Frequency = frequency; Kind = kind; Property = property; Timer = new Timer(o => DoHealthCheckAsync(), null, Timeout.Infinite, Timeout.Infinite); }
public static void ReportHealth(ILogger <CachedServiceFabricCaller> logger, HealthReportKind kind, HealthState healthState, string healthReportType, Uri serviceName) { _reportHealth(logger, kind, healthState, healthReportType, serviceName, null); }