MongoDB provider for @mdf.js based on mongodb.
Using npm:
npm install @mdf.js/mongo-provider
Using yarn:
yarn add @mdf.js/mongo-provider
Check information about @mdf.js providers in the documentation of the core module @mdf.js/core.
Checks included in the provider:
error, running, stopped] based in the last heartbeat event. stopped if the provider is stopped or has not been initialized yet, running if the provider is running and the last heartbeat event was successful, error if the provider is running and the last heartbeat event was not successful.status.fail if the observed value is error, warn if the observed value is stopped, pass in other case.failed if the last heartbeat was not successful, heartbeat information if the last heartbeat was successful.heartbeat result.fail if the observed value is failed, pass in other case.failed state (status fail). undefined in other case.succeeded if the last command executed in the provider was successful, failed if the last command executed in the provider failed.command result.pass if the observed value is succeeded, fail if the observed value is failed.failed state (status fail). undefined if the observed value is succeeded.last failed commands.pass.undefined.`mongodb://127.0.0.1:27017/mdf`): URL for the mongo databaseundefined): Path to the CA for the mongo databaseundefined): Path to the cert for the mongo databaseundefined): Path to the key for the mongo databaseCopyright 2024 Mytra Control S.L. All rights reserved.
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.