bulltrackers-module 1.0.802 → 1.0.804
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.
|
@@ -16,8 +16,6 @@ async function handleComputationResultWrite(change, context, config, dependencie
|
|
|
16
16
|
|
|
17
17
|
if (!isAlertComputation(cachedAlertTypes, computationName)) return;
|
|
18
18
|
|
|
19
|
-
console.log("The computations assigned to on document write are," + computationName)
|
|
20
|
-
|
|
21
19
|
const payload = {
|
|
22
20
|
date,
|
|
23
21
|
computationName,
|
|
@@ -48,7 +48,8 @@ async function loadAlertTypesFromManifest(logger, injectedConfig = null) {
|
|
|
48
48
|
logger?.log('DEBUG', `[AlertManifestLoaderV3] Loaded alert type: ${alertType.id} from ${config.name} (isDynamic: ${alertType.isDynamic})`);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
const monitoredAlerts = alertTypes.map(a => a.computationName).join(', ');
|
|
52
|
+
logger?.log('INFO', `[AlertManifestLoaderV3] Successfully loaded ${alertTypes.length} alert types from V3 computations. Monitoring: [${monitoredAlerts}]`);
|
|
52
53
|
return alertTypes;
|
|
53
54
|
} catch (error) {
|
|
54
55
|
logger?.log('ERROR', `[AlertManifestLoaderV3] Failed to load alert types: ${error.message}`);
|
package/index.js
CHANGED
|
@@ -122,11 +122,16 @@ const maintenance = {
|
|
|
122
122
|
|
|
123
123
|
const proxy = { handlePost };
|
|
124
124
|
|
|
125
|
+
const {
|
|
126
|
+
loadAlertTypesFromManifest
|
|
127
|
+
} = require('./functions/alert-system-v3/helpers/alert_manifest_loader');
|
|
128
|
+
|
|
125
129
|
const alertSystem = {
|
|
126
130
|
handleComputationResultWrite,
|
|
127
131
|
handleRawAlert,
|
|
128
132
|
handleAlertNotification,
|
|
129
|
-
handleAlertHistory
|
|
133
|
+
handleAlertHistory,
|
|
134
|
+
loadAlertTypesFromManifest,
|
|
130
135
|
};
|
|
131
136
|
|
|
132
137
|
module.exports = {
|