Interface IAnalyticsService
Service for managing analytics goals.
Namespace: DataWeb.Analytics
Assembly: DataWeb.Core.dll
Syntax
public interface IAnalyticsService
Methods
GetGoalAsync(AnalyticsGoalFilter, CancellationToken)
Gets an analytics goal matching the specified filter.
Declaration
Task<AnalyticsGoal> GetGoalAsync(AnalyticsGoalFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
AnalyticsGoalFilter | filter | The AnalyticsGoalFilter to use when querying for the goal. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<AnalyticsGoal> | An analytics goal matching the specified filter. |
GetGoalCountAsync(AnalyticsGoalFilter, CancellationToken)
Gets the count of analytics goals matching the specified filter.
Declaration
Task<long> GetGoalCountAsync(AnalyticsGoalFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
AnalyticsGoalFilter | filter | The AnalyticsGoalFilter to use when counting goals. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<long> | The count of analytics goals matching the specified filter. |
GetGoalTotalValueAsync(AnalyticsGoalFilter, CancellationToken)
Gets the total value of analytics goals matching the specified filter.
Declaration
Task<decimal> GetGoalTotalValueAsync(AnalyticsGoalFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
AnalyticsGoalFilter | filter | The AnalyticsGoalFilter to use when calculating the total value of goals. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<decimal> | The total value of analytics goals matching the specified filter. |
GetGoalsAsync(AnalyticsGoalFilter, CancellationToken)
Gets a collection of AnalyticsGoal objects that match the specified AnalyticsGoalFilter.
Declaration
Task<IEnumerable<AnalyticsGoal>> GetGoalsAsync(AnalyticsGoalFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
AnalyticsGoalFilter | filter | The AnalyticsGoalFilter used to search for goals. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IEnumerable<AnalyticsGoal>> | A collection of AnalyticsGoal objects. |
SetGoalAsync(AnalyticsGoal, CancellationToken)
Sets an analytics goal.
Declaration
Task SetGoalAsync(AnalyticsGoal goal, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
AnalyticsGoal | goal | The AnalyticsGoal to set. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |