Table of Contents

Interface ISupportAssistantUsageCollection

Namespace
Tharga.Team.MongoDB
Assembly
Tharga.Team.MongoDB.dll
public interface ISupportAssistantUsageCollection : IDiskRepositoryCollection<SupportAssistantUsageRecordEntity>, IDiskRepositoryCollection<SupportAssistantUsageRecordEntity, ObjectId>, IRepositoryCollection<SupportAssistantUsageRecordEntity, ObjectId>, IReadOnlyRepositoryCollection<SupportAssistantUsageRecordEntity, ObjectId>, IRepositoryCollection, IReadOnlyRepositoryCollection
Inherited Members
IDiskRepositoryCollection<SupportAssistantUsageRecordEntity, ObjectId>.GetCollection()
IReadOnlyRepositoryCollection<SupportAssistantUsageRecordEntity, ObjectId>.GetDirtyAsync()
IReadOnlyRepositoryCollection<SupportAssistantUsageRecordEntity, ObjectId>.GetFailedIndices()
IRepositoryCollection.DropCollectionAsync()

Methods

TotalAsync(DateTime, DateTime, string, CancellationToken)

The usage in a period totalled per team, provider and model by the server; for one team when teamKey is given.

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

Parameters

from DateTime
to DateTime
teamKey string
cancellationToken CancellationToken

Returns

Task<SupportAssistantUsageTotal[]>