View Source
Class AnalyticsController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "SectionAccessSettings")]
public class AnalyticsController : UmbracoAuthorizedJsonController
Constructors
View Source
AnalyticsController(IMetricsConsentService)
Declaration
public AnalyticsController(IMetricsConsentService metricsConsentService)
Parameters
Type |
Name |
Description |
IMetricsConsentService |
metricsConsentService |
|
Methods
View Source
GetAllLevels()
Declaration
public IEnumerable<TelemetryLevel> GetAllLevels()
Returns
Type |
Description |
IEnumerable<TelemetryLevel> |
|
View Source
GetConsentLevel()
Declaration
public TelemetryLevel GetConsentLevel()
Returns
Type |
Description |
TelemetryLevel |
|
View Source
SetConsentLevel(TelemetryResource)
Declaration
[HttpPost]
public IActionResult SetConsentLevel([FromBody] TelemetryResource telemetryResource)
Parameters
Type |
Name |
Description |
TelemetryResource |
telemetryResource |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.IActionResult |
|