/// <summary> /// Sets health alert for current stateless service instance /// Typically called when there is a problem in service instance or its sub-components(NT service). /// </summary> /// <param name="description">description of the health report</param> private void SetHealthAlert(string description) { HealthManagerHelper.PostServiceInstanceHealthReport(this.fabricClient, this.context, HealthManagerHelper.SourceId, this.healthProperty, description, HealthState.Warning); }
/// <summary> /// Reset the Health Alert for current stateless service instance /// Typically called when condition causing health alert is remedied /// </summary> /// <param name="description">description of the health report</param> private void ResetHealthAlert(string description) { HealthManagerHelper.PostServiceInstanceHealthReport(this.fabricClient, this.context, HealthManagerHelper.SourceId, this.healthProperty, description, HealthState.Ok, HealthManagerHelper.HealthyEventTtlInMinutes); }