analytics-apimetrics
v1.0.4
Published
package for apis tracking and metrics for backend proformance
Downloads
17
Readme
apimetrics
A lightweight utility package for analyzing api metrics like total calls, response time ,min response time,max response time etc.
Description
analytics-apimetrics
is a simple yet powerful utility package designed to make your life easier by providing a complete analysis
tool for api performance check
at first you have to register to a web platform where you can visualize the api performance
the link is :- https://apimetrics-frontend.vercel.app/
after register there will be a token generate which will be your uniqueCode
you have to pass the code to the options of the function storeMetrics
after register or login you can track you api metrics in web panel
Installation
You can install the package via npm:
npm install analytics-apimetrics
```yarn
yarn add analytics-apimetrics
## Usage
Here's a basic example of how to use the package:
for commonjs module
const ApiMetricsClass = require('analytics-apimetrics');
app.use(ApiMetricsClass.storeMetrics({ uniqueCode: uniqueCode }));
for ESmodule
import ApiMetricsClass from 'analytics-apimetrics';
app.use(ApiMetricsClass.storeMetrics({ uniqueCode: uniqueCode }));
here you have to pass the uniqueCode which you will get after register
there will be an alert box whcih has 24 length string you have to pass