Interface IMetricsConsentService
Provides operations for managing telemetry metrics consent.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IMetricsConsentService
Methods
View SourceGetConsentLevel()
Gets the current telemetry consent level.
Declaration
TelemetryLevel GetConsentLevel()
Returns
| Type | Description |
|---|---|
| TelemetryLevel | The current TelemetryLevel configured for the system. |
SetConsentLevelAsync(TelemetryLevel)
Sets the telemetry consent level asynchronously.
Declaration
Task SetConsentLevelAsync(TelemetryLevel telemetryLevel)
Parameters
| Type | Name | Description |
|---|---|---|
| TelemetryLevel | telemetryLevel | The TelemetryLevel to set. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |