@tigojs/faas-performance

0.2.0 • Public • Published

@tigojs/faas-performance

Provide performance log support for tigo lambda.

Usage

Install this plugin with @tigojs/cli:

tigo add faas-performance

Configuration

Here's a template:

// .tigorc.js
module.exports = {
  plugins: {
    faasPerm: {
      package: '@tigojs/faas-performance',
      config: {
        mongoEngine: '',  // specific a mongodb engine, optional
        database: '', // specific a database name, optional
        maxTimeSpan: 1000 * 60 * 60 * 24, // max time span for querying logs, default 1 day
        maxKeepDays: 7,  // optional, set the max days to keep the log
      },
    },
  },
};

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @tigojs/faas-performance

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

9.19 kB

Total Files

9

Last publish

Collaborators

  • backrunner