< Summary

Information
Class: Intentum.Analytics.AnalyticsExtensions
Assembly: Intentum.Analytics
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Analytics/AnalyticsExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 36
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
AddIntentAnalytics(...)100%110%
AddBehaviorPatternDetector(...)100%110%
AddIntentProfileService(...)100%110%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Analytics/AnalyticsExtensions.cs

#LineLine coverage
 1using Microsoft.Extensions.DependencyInjection;
 2
 3namespace Intentum.Analytics;
 4
 5/// <summary>
 6/// Extension methods for registering Intent Analytics.
 7/// </summary>
 8public static class AnalyticsExtensions
 9{
 10    /// <summary>
 11    /// Adds Intent Analytics to the service collection.
 12    /// </summary>
 13    public static IServiceCollection AddIntentAnalytics(this IServiceCollection services)
 014    {
 015        services.AddScoped<IIntentAnalytics, IntentAnalytics>();
 016        return services;
 017    }
 18
 19    /// <summary>
 20    /// Adds behavior pattern detector (sequence mining, frequency anomalies, template matching) to the service collecti
 21    /// </summary>
 22    public static IServiceCollection AddBehaviorPatternDetector(this IServiceCollection services)
 023    {
 024        services.AddScoped<IBehaviorPatternDetector, BehaviorPatternDetector>();
 025        return services;
 026    }
 27
 28    /// <summary>
 29    /// Adds intent-based profile service (timeline → labels, top intents, confidence summary) to the service collection
 30    /// </summary>
 31    public static IServiceCollection AddIntentProfileService(this IServiceCollection services)
 032    {
 033        services.AddScoped<IIntentProfileService, IntentProfileService>();
 034        return services;
 035    }
 36}