agents / Exports / MemoryPerformanceStorage
Class: MemoryPerformanceStorage
Performance storage interface
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new MemoryPerformanceStorage(maxEntries?): MemoryPerformanceStorage
Parameters
| Name | Type | Default value |
|---|---|---|
maxEntries | number | 5000 |
Returns
Defined in
packages/agents/src/plugins/performance/storages/memory-storage.ts:7
Methods
save
▸ save(entry): Promise<void>
Parameters
| Name | Type |
|---|---|
entry | PerformanceMetrics |
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/performance/storages/memory-storage.ts:11
getMetrics
▸ getMetrics(operation?, timeRange?): Promise<PerformanceMetrics[]>
Parameters
| Name | Type |
|---|---|
operation? | string |
timeRange? | Object |
timeRange.start | Date |
timeRange.end | Date |
Returns
Promise<PerformanceMetrics[]>
Implementation of
Defined in
packages/agents/src/plugins/performance/storages/memory-storage.ts:18
getAggregatedStats
▸ getAggregatedStats(timeRange?): Promise<AggregatedPerformanceStats>
Parameters
| Name | Type |
|---|---|
timeRange? | Object |
timeRange.start | Date |
timeRange.end | Date |
Returns
Promise<AggregatedPerformanceStats>
Implementation of
PerformanceStorage.getAggregatedStats
Defined in
packages/agents/src/plugins/performance/storages/memory-storage.ts:31
clear
▸ clear(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/performance/storages/memory-storage.ts:71
flush
▸ flush(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/performance/storages/memory-storage.ts:75
close
▸ close(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/performance/storages/memory-storage.ts:79