Modify based on review comments.

Make it breaking change.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
This commit is contained in:
Jussi Hallila
2022-01-13 16:04:30 +01:00
parent b567ee2818
commit 28fd9bc603
8 changed files with 72 additions and 40 deletions
+12 -6
View File
@@ -40,12 +40,18 @@ export default async function createPlugin({
database,
discovery,
factRetrievers: [
createFactRetrieverRegistration(
'1 1 1 * *', // Example cron, At 01:01 on day-of-month 1.
entityOwnershipFactRetriever,
),
createFactRetrieverRegistration('1 1 1 * *', entityMetadataFactRetriever),
createFactRetrieverRegistration('1 1 1 * *', techdocsFactRetriever),
createFactRetrieverRegistration({
cadence: '1 1 1 * *', // Example cron, At 01:01 on day-of-month 1.
factRetriever: entityOwnershipFactRetriever,
}),
createFactRetrieverRegistration({
cadence: '1 1 1 * *',
factRetriever: entityMetadataFactRetriever,
}),
createFactRetrieverRegistration({
cadence: '1 1 1 * *',
factRetriever: techdocsFactRetriever,
}),
],
factCheckerFactory: new JsonRulesEngineFactCheckerFactory({
checks: [