@justair/justair-library 4.7.19 → 4.7.20
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/package.json +1 -1
- package/src/models/monitors.js +3 -0
package/package.json
CHANGED
package/src/models/monitors.js
CHANGED
|
@@ -277,6 +277,9 @@ monitorsSchema.index({ monitorSupplier: 1 });
|
|
|
277
277
|
monitorsSchema.index({ monitorIdFromSupplier: 1 });
|
|
278
278
|
monitorsSchema.index({ monitorState: 1 });
|
|
279
279
|
|
|
280
|
+
//network metrics for anomalies
|
|
281
|
+
monitorsSchema.index({ sponsor: 1, isActive: 1, monitorSupplier: 1 })
|
|
282
|
+
|
|
280
283
|
// Pre-hook to log single document deletions
|
|
281
284
|
monitorsSchema.pre("findOneAndDelete", async function () {
|
|
282
285
|
const docToDelete = await this.model.findOne(this.getFilter()).lean();
|