@zintrust/workers 0.1.27
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 +861 -0
- package/dist/AnomalyDetection.d.ts +102 -0
- package/dist/AnomalyDetection.js +321 -0
- package/dist/AutoScaler.d.ts +127 -0
- package/dist/AutoScaler.js +425 -0
- package/dist/BroadcastWorker.d.ts +21 -0
- package/dist/BroadcastWorker.js +24 -0
- package/dist/CanaryController.d.ts +103 -0
- package/dist/CanaryController.js +380 -0
- package/dist/ChaosEngineering.d.ts +79 -0
- package/dist/ChaosEngineering.js +216 -0
- package/dist/CircuitBreaker.d.ts +106 -0
- package/dist/CircuitBreaker.js +374 -0
- package/dist/ClusterLock.d.ts +90 -0
- package/dist/ClusterLock.js +385 -0
- package/dist/ComplianceManager.d.ts +177 -0
- package/dist/ComplianceManager.js +556 -0
- package/dist/DatacenterOrchestrator.d.ts +133 -0
- package/dist/DatacenterOrchestrator.js +404 -0
- package/dist/DeadLetterQueue.d.ts +122 -0
- package/dist/DeadLetterQueue.js +539 -0
- package/dist/HealthMonitor.d.ts +42 -0
- package/dist/HealthMonitor.js +301 -0
- package/dist/MultiQueueWorker.d.ts +89 -0
- package/dist/MultiQueueWorker.js +277 -0
- package/dist/NotificationWorker.d.ts +21 -0
- package/dist/NotificationWorker.js +23 -0
- package/dist/Observability.d.ts +153 -0
- package/dist/Observability.js +530 -0
- package/dist/PluginManager.d.ts +123 -0
- package/dist/PluginManager.js +392 -0
- package/dist/PriorityQueue.d.ts +117 -0
- package/dist/PriorityQueue.js +244 -0
- package/dist/ResourceMonitor.d.ts +164 -0
- package/dist/ResourceMonitor.js +605 -0
- package/dist/SLAMonitor.d.ts +110 -0
- package/dist/SLAMonitor.js +274 -0
- package/dist/WorkerFactory.d.ts +193 -0
- package/dist/WorkerFactory.js +1507 -0
- package/dist/WorkerInit.d.ts +85 -0
- package/dist/WorkerInit.js +223 -0
- package/dist/WorkerMetrics.d.ts +114 -0
- package/dist/WorkerMetrics.js +509 -0
- package/dist/WorkerRegistry.d.ts +145 -0
- package/dist/WorkerRegistry.js +319 -0
- package/dist/WorkerShutdown.d.ts +61 -0
- package/dist/WorkerShutdown.js +159 -0
- package/dist/WorkerVersioning.d.ts +107 -0
- package/dist/WorkerVersioning.js +300 -0
- package/dist/build-manifest.json +462 -0
- package/dist/config/workerConfig.d.ts +3 -0
- package/dist/config/workerConfig.js +19 -0
- package/dist/createQueueWorker.d.ts +23 -0
- package/dist/createQueueWorker.js +113 -0
- package/dist/dashboard/index.d.ts +1 -0
- package/dist/dashboard/index.js +1 -0
- package/dist/dashboard/types.d.ts +117 -0
- package/dist/dashboard/types.js +1 -0
- package/dist/dashboard/workers-api.d.ts +4 -0
- package/dist/dashboard/workers-api.js +638 -0
- package/dist/dashboard/workers-dashboard-ui.d.ts +3 -0
- package/dist/dashboard/workers-dashboard-ui.js +1026 -0
- package/dist/dashboard/workers-dashboard.d.ts +4 -0
- package/dist/dashboard/workers-dashboard.js +904 -0
- package/dist/helper/index.d.ts +5 -0
- package/dist/helper/index.js +10 -0
- package/dist/http/WorkerApiController.d.ts +38 -0
- package/dist/http/WorkerApiController.js +312 -0
- package/dist/http/WorkerController.d.ts +374 -0
- package/dist/http/WorkerController.js +1351 -0
- package/dist/http/middleware/CustomValidation.d.ts +92 -0
- package/dist/http/middleware/CustomValidation.js +270 -0
- package/dist/http/middleware/DatacenterValidator.d.ts +3 -0
- package/dist/http/middleware/DatacenterValidator.js +94 -0
- package/dist/http/middleware/EditWorkerValidation.d.ts +7 -0
- package/dist/http/middleware/EditWorkerValidation.js +55 -0
- package/dist/http/middleware/FeaturesValidator.d.ts +3 -0
- package/dist/http/middleware/FeaturesValidator.js +60 -0
- package/dist/http/middleware/InfrastructureValidator.d.ts +31 -0
- package/dist/http/middleware/InfrastructureValidator.js +226 -0
- package/dist/http/middleware/OptionsValidator.d.ts +3 -0
- package/dist/http/middleware/OptionsValidator.js +112 -0
- package/dist/http/middleware/PayloadSanitizer.d.ts +7 -0
- package/dist/http/middleware/PayloadSanitizer.js +42 -0
- package/dist/http/middleware/ProcessorPathSanitizer.d.ts +3 -0
- package/dist/http/middleware/ProcessorPathSanitizer.js +74 -0
- package/dist/http/middleware/QueueNameSanitizer.d.ts +3 -0
- package/dist/http/middleware/QueueNameSanitizer.js +45 -0
- package/dist/http/middleware/ValidateDriver.d.ts +7 -0
- package/dist/http/middleware/ValidateDriver.js +20 -0
- package/dist/http/middleware/VersionSanitizer.d.ts +3 -0
- package/dist/http/middleware/VersionSanitizer.js +25 -0
- package/dist/http/middleware/WorkerNameSanitizer.d.ts +3 -0
- package/dist/http/middleware/WorkerNameSanitizer.js +46 -0
- package/dist/http/middleware/WorkerValidationChain.d.ts +27 -0
- package/dist/http/middleware/WorkerValidationChain.js +185 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +48 -0
- package/dist/routes/workers.d.ts +12 -0
- package/dist/routes/workers.js +81 -0
- package/dist/storage/WorkerStore.d.ts +45 -0
- package/dist/storage/WorkerStore.js +195 -0
- package/dist/type.d.ts +76 -0
- package/dist/type.js +1 -0
- package/dist/ui/router/ui.d.ts +3 -0
- package/dist/ui/router/ui.js +83 -0
- package/dist/ui/types/worker-ui.d.ts +229 -0
- package/dist/ui/types/worker-ui.js +5 -0
- package/package.json +53 -0
- package/src/AnomalyDetection.ts +434 -0
- package/src/AutoScaler.ts +654 -0
- package/src/BroadcastWorker.ts +34 -0
- package/src/CanaryController.ts +531 -0
- package/src/ChaosEngineering.ts +301 -0
- package/src/CircuitBreaker.ts +495 -0
- package/src/ClusterLock.ts +499 -0
- package/src/ComplianceManager.ts +815 -0
- package/src/DatacenterOrchestrator.ts +561 -0
- package/src/DeadLetterQueue.ts +733 -0
- package/src/HealthMonitor.ts +390 -0
- package/src/MultiQueueWorker.ts +431 -0
- package/src/NotificationWorker.ts +33 -0
- package/src/Observability.ts +696 -0
- package/src/PluginManager.ts +551 -0
- package/src/PriorityQueue.ts +351 -0
- package/src/ResourceMonitor.ts +769 -0
- package/src/SLAMonitor.ts +408 -0
- package/src/WorkerFactory.ts +2108 -0
- package/src/WorkerInit.ts +313 -0
- package/src/WorkerMetrics.ts +709 -0
- package/src/WorkerRegistry.ts +443 -0
- package/src/WorkerShutdown.ts +210 -0
- package/src/WorkerVersioning.ts +422 -0
- package/src/config/workerConfig.ts +25 -0
- package/src/createQueueWorker.ts +174 -0
- package/src/dashboard/index.ts +6 -0
- package/src/dashboard/types.ts +141 -0
- package/src/dashboard/workers-api.ts +785 -0
- package/src/dashboard/zintrust.svg +30 -0
- package/src/helper/index.ts +11 -0
- package/src/http/WorkerApiController.ts +369 -0
- package/src/http/WorkerController.ts +1512 -0
- package/src/http/middleware/CustomValidation.ts +360 -0
- package/src/http/middleware/DatacenterValidator.ts +124 -0
- package/src/http/middleware/EditWorkerValidation.ts +74 -0
- package/src/http/middleware/FeaturesValidator.ts +82 -0
- package/src/http/middleware/InfrastructureValidator.ts +295 -0
- package/src/http/middleware/OptionsValidator.ts +144 -0
- package/src/http/middleware/PayloadSanitizer.ts +52 -0
- package/src/http/middleware/ProcessorPathSanitizer.ts +86 -0
- package/src/http/middleware/QueueNameSanitizer.ts +55 -0
- package/src/http/middleware/ValidateDriver.ts +29 -0
- package/src/http/middleware/VersionSanitizer.ts +30 -0
- package/src/http/middleware/WorkerNameSanitizer.ts +56 -0
- package/src/http/middleware/WorkerValidationChain.ts +230 -0
- package/src/index.ts +98 -0
- package/src/routes/workers.ts +154 -0
- package/src/storage/WorkerStore.ts +240 -0
- package/src/type.ts +89 -0
- package/src/types/queue-monitor.d.ts +38 -0
- package/src/types/queue-redis.d.ts +38 -0
- package/src/ui/README.md +13 -0
- package/src/ui/components/JsonEditor.js +670 -0
- package/src/ui/components/JsonViewer.js +387 -0
- package/src/ui/components/WorkerCard.js +178 -0
- package/src/ui/components/WorkerExpandPanel.js +257 -0
- package/src/ui/components/fetcher.js +42 -0
- package/src/ui/components/sla-scorecard.js +32 -0
- package/src/ui/components/styles.css +30 -0
- package/src/ui/components/table-expander.js +34 -0
- package/src/ui/integration/worker-ui-integration.js +565 -0
- package/src/ui/router/ui.ts +99 -0
- package/src/ui/services/workerApi.js +240 -0
- package/src/ui/types/worker-ui.ts +283 -0
- package/src/ui/utils/jsonValidator.js +444 -0
- package/src/ui/workers/index.html +202 -0
- package/src/ui/workers/main.js +1781 -0
- package/src/ui/workers/styles.css +1350 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Controller
|
|
3
|
+
* HTTP handlers for worker management API
|
|
4
|
+
*/
|
|
5
|
+
import { type IRequest, type IResponse } from '@zintrust/core';
|
|
6
|
+
/**
|
|
7
|
+
* Create a new worker instance
|
|
8
|
+
* @param req.body.name - Worker name (required)
|
|
9
|
+
* @param req.body.queueName - Queue name (required)
|
|
10
|
+
* @param req.body.processor - Job processor function (required; internal only)
|
|
11
|
+
* @param req.body.version - Worker version (optional)
|
|
12
|
+
* @param req.body.options - BullMQ worker options (optional)
|
|
13
|
+
* @param req.body.infrastructure - Infrastructure config (optional)
|
|
14
|
+
* @param req.body.features - Feature flags (optional)
|
|
15
|
+
* @param req.body.datacenter - Datacenter placement config (optional)
|
|
16
|
+
* @returns Success response with worker name
|
|
17
|
+
*/
|
|
18
|
+
declare function create(req: IRequest, res: IResponse): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Start a worker
|
|
21
|
+
* @param req.params.name - Worker name
|
|
22
|
+
* @returns Success message
|
|
23
|
+
*/
|
|
24
|
+
declare function start(req: IRequest, res: IResponse): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Stop a worker
|
|
27
|
+
* @param req.params.name - Worker name
|
|
28
|
+
* @returns Success message
|
|
29
|
+
*/
|
|
30
|
+
declare function stop(req: IRequest, res: IResponse): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Restart a worker
|
|
33
|
+
* @param req.params.name - Worker name
|
|
34
|
+
* @returns Success message
|
|
35
|
+
*/
|
|
36
|
+
declare function restart(req: IRequest, res: IResponse): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Toggle worker auto-start
|
|
39
|
+
* @param req.params.name - Worker name
|
|
40
|
+
* @param req.query.enabled - true/false
|
|
41
|
+
* @returns Success message
|
|
42
|
+
*/
|
|
43
|
+
declare function setAutoStart(req: IRequest, res: IResponse): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Pause a worker
|
|
46
|
+
* @param req.params.name - Worker name
|
|
47
|
+
* @returns Success message
|
|
48
|
+
*/
|
|
49
|
+
declare function pause(req: IRequest, res: IResponse): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Resume a paused worker
|
|
52
|
+
* @param req.params.name - Worker name
|
|
53
|
+
* @returns Success message
|
|
54
|
+
*/
|
|
55
|
+
declare function resume(req: IRequest, res: IResponse): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Remove a worker instance
|
|
58
|
+
* @param req.params.name - Worker name
|
|
59
|
+
* @returns Success message
|
|
60
|
+
*/
|
|
61
|
+
declare function remove(req: IRequest, res: IResponse): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Get a specific worker instance
|
|
64
|
+
* @param req.params.name - Worker name
|
|
65
|
+
* @returns Worker instance details
|
|
66
|
+
*/
|
|
67
|
+
declare function get(req: IRequest, res: IResponse): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Update worker configuration
|
|
70
|
+
* @param req.params.name - Worker name
|
|
71
|
+
* @param req.body - Updated worker configuration
|
|
72
|
+
* @returns Success message
|
|
73
|
+
*/
|
|
74
|
+
declare function update(req: IRequest, res: IResponse): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Get worker status
|
|
77
|
+
* @param req.params.name - Worker name
|
|
78
|
+
* @returns Worker status information
|
|
79
|
+
*/
|
|
80
|
+
declare function status(req: IRequest, res: IResponse): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Get worker creation status for polling
|
|
83
|
+
* @param req.params.name - Worker name
|
|
84
|
+
* @returns Worker creation status with progress information
|
|
85
|
+
*/
|
|
86
|
+
declare function getCreationStatus(req: IRequest, res: IResponse): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Get worker metrics
|
|
89
|
+
* @param req.params.name - Worker name
|
|
90
|
+
* @returns Worker metrics data
|
|
91
|
+
*/
|
|
92
|
+
declare function metrics(req: IRequest, res: IResponse): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Get worker health information
|
|
95
|
+
* @param req.params.name - Worker name
|
|
96
|
+
* @returns Worker health data
|
|
97
|
+
*/
|
|
98
|
+
declare function health(req: IRequest, res: IResponse): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Start health monitoring for a worker
|
|
101
|
+
* @param req.params.name - Worker name
|
|
102
|
+
* @param req.body.checkInterval - Interval in seconds between checks (optional)
|
|
103
|
+
* @param req.body.thresholds - Thresholds for errorRate/latency/throughput/cpu/memory/queueSize (optional)
|
|
104
|
+
* @param req.body.alerting - Alerting config (optional)
|
|
105
|
+
* @returns Success message
|
|
106
|
+
*/
|
|
107
|
+
declare function startMonitoring(req: IRequest, res: IResponse): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Stop health monitoring for a worker
|
|
110
|
+
* @param req.params.name - Worker name
|
|
111
|
+
* @returns Success message
|
|
112
|
+
*/
|
|
113
|
+
declare function stopMonitoring(req: IRequest, res: IResponse): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Get health check history for a worker
|
|
116
|
+
* @param req.params.name - Worker name
|
|
117
|
+
* @param req.body.limit - Optional limit for number of history entries
|
|
118
|
+
* @returns Array of health check records
|
|
119
|
+
*/
|
|
120
|
+
declare function healthHistory(req: IRequest, res: IResponse): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Get health trend analysis for a worker
|
|
123
|
+
* @param req.params.name - Worker name
|
|
124
|
+
* @returns Health trend data
|
|
125
|
+
*/
|
|
126
|
+
declare function healthTrend(req: IRequest, res: IResponse): Promise<void>;
|
|
127
|
+
/**
|
|
128
|
+
* Get SLA status for a worker
|
|
129
|
+
* @param req.params.name - Worker name
|
|
130
|
+
* @returns SLA compliance status with checks and metrics
|
|
131
|
+
*/
|
|
132
|
+
declare function getSlaStatus(req: IRequest, res: IResponse): Promise<void>;
|
|
133
|
+
/**
|
|
134
|
+
* Update monitoring configuration for a worker
|
|
135
|
+
* @param req.params.name - Worker name
|
|
136
|
+
* @param req.body.checkInterval - Interval in seconds between checks (optional)
|
|
137
|
+
* @param req.body.thresholds - Thresholds for errorRate/latency/throughput/cpu/memory/queueSize (optional)
|
|
138
|
+
* @param req.body.alerting - Alerting config (optional)
|
|
139
|
+
* @returns Success message
|
|
140
|
+
*/
|
|
141
|
+
declare function updateMonitoringConfig(req: IRequest, res: IResponse): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* Register a new worker version
|
|
144
|
+
* @param req.params.name - Worker name
|
|
145
|
+
* @param req.body.version - Semantic version object { major, minor, patch, prerelease?, build? }
|
|
146
|
+
* @param req.body.migrationPath - Migration path/version string (optional)
|
|
147
|
+
* @param req.body.eolDate - End of life date (optional)
|
|
148
|
+
* @param req.body.changelog - Changelog text (optional)
|
|
149
|
+
* @param req.body.breakingChanges - Array of breaking changes (optional)
|
|
150
|
+
* @returns Success message
|
|
151
|
+
*/
|
|
152
|
+
declare function registerVersion(req: IRequest, res: IResponse): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* List all versions of a worker
|
|
155
|
+
* @param req.params.name - Worker name
|
|
156
|
+
* @param req.body.includeDeprecated - Optional flag to include deprecated versions
|
|
157
|
+
* @returns Array of version information
|
|
158
|
+
*/
|
|
159
|
+
declare function listVersions(req: IRequest, res: IResponse): Promise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Get specific version information
|
|
162
|
+
* @param req.params.name - Worker name
|
|
163
|
+
* @param req.params.version - Version identifier
|
|
164
|
+
* @returns Version details
|
|
165
|
+
*/
|
|
166
|
+
declare function getVersion(req: IRequest, res: IResponse): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* Deprecate a worker version
|
|
169
|
+
* @param req.params.name - Worker name
|
|
170
|
+
* @param req.params.version - Version to deprecate
|
|
171
|
+
* @param req.body.migrationPath - Migration instructions
|
|
172
|
+
* @param req.body.eolDate - End of life date
|
|
173
|
+
* @returns Success message
|
|
174
|
+
*/
|
|
175
|
+
declare function deprecateVersion(req: IRequest, res: IResponse): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Activate a worker version
|
|
178
|
+
* @param req.params.name - Worker name
|
|
179
|
+
* @param req.params.version - Version to activate
|
|
180
|
+
* @returns Success message
|
|
181
|
+
*/
|
|
182
|
+
declare function activateVersion(req: IRequest, res: IResponse): Promise<void>;
|
|
183
|
+
/**
|
|
184
|
+
* Deactivate a worker version
|
|
185
|
+
* @param req.params.name - Worker name
|
|
186
|
+
* @param req.params.version - Version to deactivate
|
|
187
|
+
* @returns Success message
|
|
188
|
+
*/
|
|
189
|
+
declare function deactivateVersion(req: IRequest, res: IResponse): Promise<void>;
|
|
190
|
+
/**
|
|
191
|
+
* Check compatibility between worker versions
|
|
192
|
+
* @param req.params.name - Worker name
|
|
193
|
+
* @param req.body.sourceVersion - Source version string (e.g., "1.2.3")
|
|
194
|
+
* @param req.body.targetVersion - Target version string (e.g., "1.3.0")
|
|
195
|
+
* @returns Compatibility information
|
|
196
|
+
*/
|
|
197
|
+
declare function checkCompatibility(req: IRequest, res: IResponse): Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* Start a canary deployment
|
|
200
|
+
* @param req.params.name - Worker name
|
|
201
|
+
* @param req.body.currentVersion - Current version string
|
|
202
|
+
* @param req.body.canaryVersion - Canary version string
|
|
203
|
+
* @param req.body.initialTrafficPercent - Starting traffic percent
|
|
204
|
+
* @param req.body.targetTrafficPercent - Target traffic percent
|
|
205
|
+
* @param req.body.incrementPercent - Increment per step
|
|
206
|
+
* @param req.body.incrementInterval - Seconds between increments
|
|
207
|
+
* @param req.body.monitoringDuration - Seconds per monitoring step
|
|
208
|
+
* @param req.body.errorThreshold - Error rate threshold (0-1)
|
|
209
|
+
* @param req.body.latencyThreshold - P95 latency threshold (ms)
|
|
210
|
+
* @param req.body.minSuccessRate - Minimum success rate (0-1)
|
|
211
|
+
* @param req.body.autoRollback - Auto rollback flag
|
|
212
|
+
* @returns Success message
|
|
213
|
+
*/
|
|
214
|
+
declare function startCanary(req: IRequest, res: IResponse): Promise<void>;
|
|
215
|
+
/**
|
|
216
|
+
* Pause a canary deployment
|
|
217
|
+
* @param req.params.name - Worker name
|
|
218
|
+
* @returns Success message
|
|
219
|
+
*/
|
|
220
|
+
declare function pauseCanary(req: IRequest, res: IResponse): Promise<void>;
|
|
221
|
+
/**
|
|
222
|
+
* Resume a paused canary deployment
|
|
223
|
+
* @param req.params.name - Worker name
|
|
224
|
+
* @returns Success message
|
|
225
|
+
*/
|
|
226
|
+
declare function resumeCanary(req: IRequest, res: IResponse): Promise<void>;
|
|
227
|
+
/**
|
|
228
|
+
* Rollback a canary deployment
|
|
229
|
+
* @param req.params.name - Worker name
|
|
230
|
+
* @param req.body.reason - Optional rollback reason
|
|
231
|
+
* @returns Success message
|
|
232
|
+
*/
|
|
233
|
+
declare function rollbackCanary(req: IRequest, res: IResponse): Promise<void>;
|
|
234
|
+
/**
|
|
235
|
+
* Get canary deployment status
|
|
236
|
+
* @param req.params.name - Worker name
|
|
237
|
+
* @returns Canary status information
|
|
238
|
+
*/
|
|
239
|
+
declare function canaryStatus(req: IRequest, res: IResponse): Promise<void>;
|
|
240
|
+
/**
|
|
241
|
+
* Get canary deployment history
|
|
242
|
+
* @param req.params.name - Worker name
|
|
243
|
+
* @returns Array of past canary deployments
|
|
244
|
+
*/
|
|
245
|
+
declare function canaryHistory(req: IRequest, res: IResponse): Promise<void>;
|
|
246
|
+
/**
|
|
247
|
+
* Get system-wide summary of all workers and monitoring
|
|
248
|
+
* @returns System summary with worker count and monitoring data
|
|
249
|
+
*/
|
|
250
|
+
declare function systemSummary(_req: IRequest, res: IResponse): Promise<void>;
|
|
251
|
+
/**
|
|
252
|
+
* Initiate graceful system shutdown
|
|
253
|
+
* @returns Success message
|
|
254
|
+
*/
|
|
255
|
+
declare function shutdown(_req: IRequest, res: IResponse): Promise<void>;
|
|
256
|
+
/**
|
|
257
|
+
* Get monitoring summary for all workers
|
|
258
|
+
* @returns Monitoring summary data
|
|
259
|
+
*/
|
|
260
|
+
declare function monitoringSummary(_req: IRequest, res: IResponse): Promise<void>;
|
|
261
|
+
export declare const WorkerController: Readonly<{
|
|
262
|
+
create(): {
|
|
263
|
+
systemSummary: typeof systemSummary;
|
|
264
|
+
shutdown: typeof shutdown;
|
|
265
|
+
monitoringSummary: typeof monitoringSummary;
|
|
266
|
+
prometheusMetrics: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
267
|
+
recordCustomMetric: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
268
|
+
startTrace: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
269
|
+
endTrace: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
270
|
+
registerDataSubject: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
271
|
+
recordConsent: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
272
|
+
checkCompliance: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
273
|
+
createAccessRequest: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
274
|
+
processAccessRequest: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
275
|
+
encryptSensitiveData: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
276
|
+
decryptSensitiveData: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
277
|
+
recordViolation: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
278
|
+
complianceAuditLogs: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
279
|
+
complianceSummary: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
280
|
+
stopResourceMonitoring: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
281
|
+
startResourceMonitoring: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
282
|
+
getCurrentResourceUsage: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
283
|
+
resourceHistory: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
284
|
+
resourceAlerts: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
285
|
+
resourceTrends: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
286
|
+
workerResourceTrend: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
287
|
+
updateCostConfig: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
288
|
+
calculateProjectedCost: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
289
|
+
getSystemInfo: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
290
|
+
startAutoScaling: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
291
|
+
stopAutoScaling: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
292
|
+
evaluateScaling: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
293
|
+
lastScalingDecision: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
294
|
+
scalingHistory: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
295
|
+
costSummary: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
296
|
+
setScalingPolicy: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
297
|
+
getScalingPolicy: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
298
|
+
registerRegion: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
299
|
+
unregisterRegion: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
300
|
+
listRegions: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
301
|
+
getRegion: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
302
|
+
updateRegionHealth: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
303
|
+
updateRegionLoad: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
304
|
+
placeWorker: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
305
|
+
getPlacement: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
306
|
+
updatePlacement: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
307
|
+
findOptimalRegion: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
308
|
+
setFailoverPolicy: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
309
|
+
getFailoverPolicy: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
310
|
+
startHealthChecks: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
311
|
+
stopHealthChecks: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
312
|
+
getTopology: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
313
|
+
getLoadBalancingRecommendation: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
314
|
+
createMultiQueue: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
315
|
+
startQueue: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
316
|
+
stopQueue: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
317
|
+
queueStats: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
318
|
+
updateQueuePriority: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
319
|
+
updateQueueConcurrency: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
320
|
+
registerPlugin: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
321
|
+
unregisterPlugin: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
322
|
+
enablePlugin: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
323
|
+
disablePlugin: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
324
|
+
listPlugins: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
325
|
+
pluginExecutionHistory: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
326
|
+
pluginStatistics: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
327
|
+
listFailedJobs: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
328
|
+
getFailedJob: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
329
|
+
retryFailedJob: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
330
|
+
deleteFailedJob: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
331
|
+
anonymizeFailedJob: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
332
|
+
dlqAuditLog: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
333
|
+
dlqStats: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
334
|
+
circuitBreakerState: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
335
|
+
resetCircuitBreaker: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
336
|
+
forceOpenCircuit: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
337
|
+
circuitBreakerEvents: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
338
|
+
startCanary: typeof startCanary;
|
|
339
|
+
pauseCanary: typeof pauseCanary;
|
|
340
|
+
resumeCanary: typeof resumeCanary;
|
|
341
|
+
rollbackCanary: typeof rollbackCanary;
|
|
342
|
+
canaryStatus: typeof canaryStatus;
|
|
343
|
+
canaryHistory: typeof canaryHistory;
|
|
344
|
+
registerVersion: typeof registerVersion;
|
|
345
|
+
listVersions: typeof listVersions;
|
|
346
|
+
getVersion: typeof getVersion;
|
|
347
|
+
deprecateVersion: typeof deprecateVersion;
|
|
348
|
+
activateVersion: typeof activateVersion;
|
|
349
|
+
deactivateVersion: typeof deactivateVersion;
|
|
350
|
+
checkCompatibility: typeof checkCompatibility;
|
|
351
|
+
startMonitoring: typeof startMonitoring;
|
|
352
|
+
stopMonitoring: typeof stopMonitoring;
|
|
353
|
+
healthHistory: typeof healthHistory;
|
|
354
|
+
healthTrend: typeof healthTrend;
|
|
355
|
+
updateMonitoringConfig: typeof updateMonitoringConfig;
|
|
356
|
+
eventsStream: (_req: IRequest, res: IResponse) => Promise<void>;
|
|
357
|
+
getSlaStatus: typeof getSlaStatus;
|
|
358
|
+
create: typeof create;
|
|
359
|
+
start: typeof start;
|
|
360
|
+
stop: typeof stop;
|
|
361
|
+
restart: typeof restart;
|
|
362
|
+
pause: typeof pause;
|
|
363
|
+
setAutoStart: typeof setAutoStart;
|
|
364
|
+
resume: typeof resume;
|
|
365
|
+
remove: typeof remove;
|
|
366
|
+
get: typeof get;
|
|
367
|
+
update: typeof update;
|
|
368
|
+
status: typeof status;
|
|
369
|
+
getCreationStatus: typeof getCreationStatus;
|
|
370
|
+
metrics: typeof metrics;
|
|
371
|
+
health: typeof health;
|
|
372
|
+
};
|
|
373
|
+
}>;
|
|
374
|
+
export default WorkerController;
|