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
Methods
save
▸ save(_entry): Promise<void>
Parameters
| Name | Type |
|---|---|
_entry | IUsageStats |
Returns
Promise<void>
Implementation of
Defined in
agent-plugin-usage/src/storages/silent-storage.ts:8
getStats
▸ getStats(_conversationId?, _timeRange?): Promise<IUsageStats[]>
Parameters
| Name | Type |
|---|---|
_conversationId? | string |
_timeRange? | Object |
_timeRange.start | Date |
_timeRange.end | Date |
Returns
Promise<IUsageStats[]>
Implementation of
Defined in
agent-plugin-usage/src/storages/silent-storage.ts:12
getAggregatedStats
▸ getAggregatedStats(_timeRange?): Promise<IAggregatedUsageStats>
Parameters
| Name | Type |
|---|---|
_timeRange? | Object |
_timeRange.start | Date |
_timeRange.end | Date |
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
Defined in
agent-plugin-usage/src/storages/silent-storage.ts:27
flush
▸ flush(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
agent-plugin-usage/src/storages/silent-storage.ts:31
close
▸ close(): Promise<void>
Returns
Promise<void>