harperdb 4.7.0-beta.1 → 4.7.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/harperdb.js +79 -79
- package/bin/lite.js +77 -77
- package/components/status/ComponentStatusRegistry.d.ts +10 -1
- package/components/status/types.d.ts +19 -0
- package/launchServiceScripts/launchNatsIngestService.js +77 -77
- package/launchServiceScripts/launchNatsReplyService.js +77 -77
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +77 -77
- package/npm-shrinkwrap.json +68 -84
- package/package.json +1 -1
- package/resources/RequestTarget.d.ts +2 -0
- package/resources/analytics/hostnames.d.ts +5 -477
- package/resources/blob.d.ts +6 -0
- package/resources/databases.d.ts +1 -478
- package/security/certificateVerification.d.ts +8 -1
- package/server/jobs/jobProcess.js +77 -77
- package/server/replication/replicationConnection.d.ts +1 -0
- package/server/threads/threadServer.js +77 -77
- package/studio/web/assets/index-BqOgGOeU.js +445 -0
- package/studio/web/assets/index-C4VX60Fd.js +1 -0
- package/studio/web/assets/index-Dj8x6atJ.css +4 -0
- package/studio/web/assets/{profiler-B1-1lWIR.js → profiler-OUXA1uul.js} +1 -1
- package/studio/web/assets/{startRecording-C6eEOH0W.js → startRecording-D8PRkhto.js} +1 -1
- package/studio/web/index.html +2 -2
- package/utility/hdbTerms.d.ts +2 -0
- package/utility/scripts/restartHdb.js +77 -77
- package/studio/web/assets/index-BdjjrSSK.css +0 -4
- package/studio/web/assets/index-C5STWiTE.js +0 -1
- package/studio/web/assets/index-Ct8VBQ7M.js +0 -439
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* centralized management of component health status.
|
|
6
6
|
*/
|
|
7
7
|
import { ComponentStatus } from './ComponentStatus.ts';
|
|
8
|
-
import { type ComponentStatusLevel, type AggregatedComponentStatus } from './types.ts';
|
|
8
|
+
import { type ComponentStatusLevel, type AggregatedComponentStatus, type ComponentApplicationStatus } from './types.ts';
|
|
9
9
|
/**
|
|
10
10
|
* Map of component names to their status information
|
|
11
11
|
*/
|
|
@@ -77,4 +77,13 @@ export declare class ComponentStatusRegistry {
|
|
|
77
77
|
* Returns a Map with one entry per component showing overall status and thread distribution
|
|
78
78
|
*/
|
|
79
79
|
static getAggregatedFromAllThreads(registry: ComponentStatusRegistry): Promise<Map<string, AggregatedComponentStatus>>;
|
|
80
|
+
/**
|
|
81
|
+
* Get aggregated status for a specific component and all its sub-components
|
|
82
|
+
* This method handles both exact matches and sub-component aggregation
|
|
83
|
+
*
|
|
84
|
+
* @param componentName - The component name to look up (e.g., "application-template", "http")
|
|
85
|
+
* @param consolidatedStatuses - Pre-fetched consolidated statuses from all threads (optional, will fetch if not provided)
|
|
86
|
+
* @returns Aggregated status information for the component
|
|
87
|
+
*/
|
|
88
|
+
getAggregatedStatusFor(componentName: string, consolidatedStatuses?: Map<string, AggregatedComponentStatus>): Promise<ComponentApplicationStatus>;
|
|
80
89
|
}
|
|
@@ -73,3 +73,22 @@ export interface WorkerComponentStatuses {
|
|
|
73
73
|
isMainThread: boolean;
|
|
74
74
|
statuses: Array<[string, ComponentStatusSummary]>;
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Aggregated application-level component status
|
|
78
|
+
* Used for components that may have multiple sub-components (e.g., application-template.rest, application-template.static)
|
|
79
|
+
*/
|
|
80
|
+
export interface ComponentApplicationStatus {
|
|
81
|
+
/** Overall aggregated status (error > loading > loaded > healthy) */
|
|
82
|
+
status: ComponentStatusLevel;
|
|
83
|
+
/** Descriptive message with details when not healthy */
|
|
84
|
+
message: string;
|
|
85
|
+
/** Detailed breakdown when issues exist */
|
|
86
|
+
details?: Record<string, {
|
|
87
|
+
status: ComponentStatusLevel;
|
|
88
|
+
message?: string;
|
|
89
|
+
}>;
|
|
90
|
+
/** Last checked time information */
|
|
91
|
+
lastChecked: {
|
|
92
|
+
workers: Record<number, number>;
|
|
93
|
+
};
|
|
94
|
+
}
|