@badger_badger/badger_hq 1.6.0 → 1.7.0

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.
@@ -247,6 +247,8 @@ var INDEXES = {
247
247
  options: { unique: true, partialFilterExpression: NOT_SOFT_DELETED_FILTER }
248
248
  },
249
249
  { key: { orgId: 1, route: 1, status: 1 } },
250
+ // Multikey: the sources attached to a Monitor task (cap counts, agents' version polls).
251
+ { key: { orgId: 1, taskIds: 1 } },
250
252
  // Partition key of the shared database; drives the future split into physical databases.
251
253
  { key: { orgId: 1, databaseId: 1 } }
252
254
  ],
@@ -1133,6 +1135,7 @@ var sourceSchema = new mongoose.Schema(
1133
1135
  discoveredBy: { type: discoveredBySchema, required: true },
1134
1136
  lastCollectedAt: { type: Date },
1135
1137
  nextVisitAt: { type: Date },
1138
+ visitIntervalMs: { type: Number, min: 1 },
1136
1139
  deletedAt: { type: Date }
1137
1140
  },
1138
1141
  collectionOptions(COLLECTIONS.sources)