harperdb
Version:
HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.
41 lines (40 loc) • 1.48 kB
TypeScript
/**
* Internal Component Status Exports
*
* These exports are for Harper core internal use only.
* Components should use the public API from index.ts
*/
import type { ComponentStatusLevel } from './types.ts';
export { ComponentStatus } from './ComponentStatus.ts';
export { ComponentStatusRegistry } from './ComponentStatusRegistry.ts';
export { CrossThreadStatusCollector, StatusAggregator, crossThreadCollector } from './crossThread.ts';
export type { ComponentStatusMap } from './ComponentStatusRegistry.ts';
export { componentStatusRegistry } from './registry.ts';
export * from './errors.ts';
export * from './types.ts';
export declare const query: {
/**
* Get a single component's status
*/
get(componentName: string): import("./ComponentStatus.ts").ComponentStatus;
/**
* Get all component statuses in the current thread
*/
all(): import("./ComponentStatusRegistry.ts").ComponentStatusMap;
/**
* Get components by status level
*/
byStatus(status: ComponentStatusLevel): {
name: string;
status: import("./ComponentStatus.ts").ComponentStatus;
}[];
/**
* Get a summary of component statuses
*/
summary(): Record<ComponentStatusLevel, number>;
/**
* Get aggregated status from all threads
* This is an async operation that collects status from all worker threads
*/
allThreads(): Promise<Map<string, import("./types.ts").AggregatedComponentStatus>>;
};