# Class FeedHealthTracker

Singleton service that records feed tool invocation outcomes and derives per-feed and overall availability health.

Does not make network calls — all data comes from tool dispatch hooks.

- Defined in services/FeedHealthTracker.ts:91

##### Index

### Constructors

constructor

### Properties

feedToolSet
startTime
statuses

### Methods

getAllStatuses
getAvailability
getStatus
getUptimeSeconds
isFeedTool
recordError
recordSuccess
reset

## Constructors

### constructor

- new FeedHealthTracker(): FeedHealthTracker

  #### Returns FeedHealthTracker

  - Defined in services/FeedHealthTracker.ts:96

## Properties

### `Private` `Readonly` feedToolSet

feedToolSet: ReadonlySet<string>

- Defined in services/FeedHealthTracker.ts:94

### `Private` `Readonly` startTime

startTime: number

- Defined in services/FeedHealthTracker.ts:93

### `Private` `Readonly` statuses

statuses: Map<string, FeedStatus> = ...

- Defined in services/FeedHealthTracker.ts:92

## Methods

### getAllStatuses

- getAllStatuses(): Record<string, FeedStatus>

  Get the statuses of all tracked feeds keyed by tool name.

  #### Returns Record<string, FeedStatus>

  - Defined in services/FeedHealthTracker.ts:139

### getAvailability

- getAvailability(): FeedAvailability

  Derive the overall availability level from current feed statuses.

  #### Returns FeedAvailability

  - Defined in services/FeedHealthTracker.ts:153

### getStatus

- getStatus(feedName: string): FeedStatus

  Get the current status of a single feed (defaults to `unknown`).

  #### Parameters

  - feedName: string

  #### Returns FeedStatus

  - Defined in services/FeedHealthTracker.ts:134

### getUptimeSeconds

- getUptimeSeconds(): number

  Server uptime in whole seconds since tracker creation.

  #### Returns number

  - Defined in services/FeedHealthTracker.ts:148

### isFeedTool

- isFeedTool(name: string): boolean

  Returns `true` when the tool name identifies a tracked feed tool.

  #### Parameters

  - name: string

  #### Returns boolean

  - Defined in services/FeedHealthTracker.ts:102

### recordError

- recordError(feedName: string, errorMessage: string): void

  Record a failed feed invocation, preserving the last success timestamp. Silently ignores unknown feed names.

  #### Parameters

  - feedName: string
  - errorMessage: string

  #### Returns void

  - Defined in services/FeedHealthTracker.ts:118

### recordSuccess

- recordSuccess(feedName: string): void

  Record a successful feed invocation. Silently ignores unknown feed names.

  #### Parameters

  - feedName: string

  #### Returns void

  - Defined in services/FeedHealthTracker.ts:107

### reset

- reset(): void
  `Internal`

  Reset all tracked statuses. Intended for testing only.

  #### Returns void

  - Defined in services/FeedHealthTracker.ts:179