Skip to content

agent-plugin-usage / Exports / SilentUsageStorage

Class: SilentUsageStorage

Silent storage implementation for usage statistics (no-op)

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new SilentUsageStorage(): SilentUsageStorage

Returns

SilentUsageStorage

Methods

save

save(_entry): Promise<void>

Parameters

NameType
_entryIUsageStats

Returns

Promise<void>

Implementation of

IUsageStorage.save

Defined in

agent-plugin-usage/src/storages/silent-storage.ts:8


getStats

getStats(_conversationId?, _timeRange?): Promise<IUsageStats[]>

Parameters

NameType
_conversationId?string
_timeRange?Object
_timeRange.startDate
_timeRange.endDate

Returns

Promise<IUsageStats[]>

Implementation of

IUsageStorage.getStats

Defined in

agent-plugin-usage/src/storages/silent-storage.ts:12


getAggregatedStats

getAggregatedStats(_timeRange?): Promise<IAggregatedUsageStats>

Parameters

NameType
_timeRange?Object
_timeRange.startDate
_timeRange.endDate

Returns

Promise<IAggregatedUsageStats>

Implementation of

IUsageStorage.getAggregatedStats

Defined in

agent-plugin-usage/src/storages/silent-storage.ts:20


clear

clear(): Promise<void>

Returns

Promise<void>

Implementation of

IUsageStorage.clear

Defined in

agent-plugin-usage/src/storages/silent-storage.ts:27


flush

flush(): Promise<void>

Returns

Promise<void>

Implementation of

IUsageStorage.flush

Defined in

agent-plugin-usage/src/storages/silent-storage.ts:31


close

close(): Promise<void>

Returns

Promise<void>

Implementation of

IUsageStorage.close

Defined in

agent-plugin-usage/src/storages/silent-storage.ts:35

Released under the MIT License.