agents / Exports / PerformanceStorage
Interface: PerformanceStorage
Performance storage interface
Implemented by
Table of contents
Methods
Methods
save
▸ save(entry): Promise<void>
Parameters
| Name | Type |
|---|---|
entry | PerformanceMetrics |
Returns
Promise<void>
Defined in
packages/agents/src/plugins/performance/types.ts:119
getMetrics
▸ getMetrics(operation?, timeRange?): Promise<PerformanceMetrics[]>
Parameters
| Name | Type |
|---|---|
operation? | string |
timeRange? | Object |
timeRange.start | Date |
timeRange.end | Date |
Returns
Promise<PerformanceMetrics[]>
Defined in
packages/agents/src/plugins/performance/types.ts:120
getAggregatedStats
▸ getAggregatedStats(timeRange?): Promise<AggregatedPerformanceStats>
Parameters
| Name | Type |
|---|---|
timeRange? | Object |
timeRange.start | Date |
timeRange.end | Date |
Returns
Promise<AggregatedPerformanceStats>
Defined in
packages/agents/src/plugins/performance/types.ts:121
clear
▸ clear(): Promise<void>
Returns
Promise<void>
Defined in
packages/agents/src/plugins/performance/types.ts:122
flush
▸ flush(): Promise<void>
Returns
Promise<void>
Defined in
packages/agents/src/plugins/performance/types.ts:123
close
▸ close(): Promise<void>
Returns
Promise<void>