# Interface MetricResult<T>

Wrapper for a single analysis metric that explicitly communicates data availability alongside the computed value.

When `availability` is `'UNAVAILABLE'`, `value` is always `null` and `confidence` should typically be `'LOW'` or `'NONE'` to signal that no meaningful confidence can be assigned. The exact value depends on whether the containing tool's OSINT output schema supports `'NONE'`.

interface MetricResult<T = number> {
availability: DataAvailability;
confidence: "HIGH" | "MEDIUM" | "LOW" | "NONE";
value: T | null;
reason?: string;
source?: string;
}

#### Type Parameters

- T = number

  The type of the metric value (defaults to `number`).

- Defined in types/index.ts:103

##### Index

### Properties

availability
confidence
value
reason?
source?

## Properties

### availability

availability: DataAvailability

Availability status of the underlying EP API data.

- Defined in types/index.ts:107

### confidence

confidence: "HIGH" | "MEDIUM" | "LOW" | "NONE"

Confidence in the computed value given the available data.

- Defined in types/index.ts:109

### value

value: T | null

Computed metric value, or `null` when unavailable.

- Defined in types/index.ts:105

### `Optional` reason

reason?: string

Explanation of why the data is unavailable or estimated (optional).

- Defined in types/index.ts:113

### `Optional` source

source?: string

Human-readable data source description (optional).

- Defined in types/index.ts:111