Skip to content

agent-plugin-usage / Exports / IUsagePluginStats

Interface: IUsagePluginStats

Usage plugin statistics

Hierarchy

  • IPluginStats

    IUsagePluginStats

Table of contents

Properties

Properties

enabled

enabled: boolean

Inherited from

IPluginStats.enabled

Defined in

agent-core/dist/node/index.d.ts:1004


calls

calls: number

Inherited from

IPluginStats.calls

Defined in

agent-core/dist/node/index.d.ts:1005


errors

errors: number

Inherited from

IPluginStats.errors

Defined in

agent-core/dist/node/index.d.ts:1006


lastActivity

Optional lastActivity: Date

Inherited from

IPluginStats.lastActivity

Defined in

agent-core/dist/node/index.d.ts:1007


moduleEventsReceived

Optional moduleEventsReceived: number

Inherited from

IPluginStats.moduleEventsReceived

Defined in

agent-core/dist/node/index.d.ts:1008


entriesTracked

entriesTracked: number

Total number of usage entries tracked

Defined in

agent-plugin-usage/src/types.ts:121


totalTokens

totalTokens: number

Total tokens tracked

Defined in

agent-plugin-usage/src/types.ts:123


totalCost

totalCost: number

Total cost tracked

Defined in

agent-plugin-usage/src/types.ts:125


strategy

strategy: TUsageTrackingStrategy

Current tracking strategy

Defined in

agent-plugin-usage/src/types.ts:127


lastTrackTime

Optional lastTrackTime: Date

Last tracking timestamp

Defined in

agent-plugin-usage/src/types.ts:129


failedTracking

failedTracking: number

Number of failed tracking attempts

Defined in

agent-plugin-usage/src/types.ts:131

Released under the MIT License.