Table of Contents

Interface ISupportAssistantUsageService

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Reads the support assistant's usage, for the staff who run the product or bill it.

public interface ISupportAssistantUsageService

Remarks

Authorized by UsageRead, which no level and no role holds by default. It says how much every team used and who asked, so it is a decision about the product, not an access level's.

Methods

GetUsageAsync(DateTime, DateTime, string, CancellationToken)

The usage from from (inclusive) to to (exclusive), totalled per team, provider and model; for one team when teamKey is given. Empty where no store is registered.

Task<SupportAssistantUsageTotal[]> GetUsageAsync(DateTime from, DateTime to, string teamKey = null, CancellationToken cancellationToken = default)

Parameters

from DateTime
to DateTime
teamKey string
cancellationToken CancellationToken

Returns

Task<SupportAssistantUsageTotal[]>