Skip to content

agent-plugin-performance / Exports / MemoryPerformanceStorage

Class: MemoryPerformanceStorage

Performance storage interface

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new MemoryPerformanceStorage(maxEntries?): MemoryPerformanceStorage

Parameters

NameTypeDefault value
maxEntriesnumber5000

Returns

MemoryPerformanceStorage

Defined in

agent-plugin-performance/src/storages/memory-storage.ts:7

Methods

save

save(entry): Promise<void>

Parameters

NameType
entryIPerformanceMetrics

Returns

Promise<void>

Implementation of

IPerformanceStorage.save

Defined in

agent-plugin-performance/src/storages/memory-storage.ts:11


getMetrics

getMetrics(operation?, timeRange?): Promise<IPerformanceMetrics[]>

Parameters

NameType
operation?string
timeRange?Object
timeRange.startDate
timeRange.endDate

Returns

Promise<IPerformanceMetrics[]>

Implementation of

IPerformanceStorage.getMetrics

Defined in

agent-plugin-performance/src/storages/memory-storage.ts:18


getAggregatedStats

getAggregatedStats(timeRange?): Promise<IAggregatedPerformanceStats>

Parameters

NameType
timeRange?Object
timeRange.startDate
timeRange.endDate

Returns

Promise<IAggregatedPerformanceStats>

Implementation of

IPerformanceStorage.getAggregatedStats

Defined in

agent-plugin-performance/src/storages/memory-storage.ts:34


clear

clear(): Promise<void>

Returns

Promise<void>

Implementation of

IPerformanceStorage.clear

Defined in

agent-plugin-performance/src/storages/memory-storage.ts:77


flush

flush(): Promise<void>

Returns

Promise<void>

Implementation of

IPerformanceStorage.flush

Defined in

agent-plugin-performance/src/storages/memory-storage.ts:81


close

close(): Promise<void>

Returns

Promise<void>

Implementation of

IPerformanceStorage.close

Defined in

agent-plugin-performance/src/storages/memory-storage.ts:85

Released under the MIT License.