strapi-plugin-logz
Version:
Automatically capture and record the API calls made to your Strapi application
45 lines (44 loc) • 1.32 kB
TypeScript
import type { Core } from "@strapi/strapi";
declare const controller: ({ strapi }: {
strapi: Core.Strapi;
}) => {
/**
* Download the logs as a CSV file
*
* Accepts a `start` and `end` query parameter to filter the logs by date
*/
download(ctx: any): Promise<void>;
/**
* Find all logs
*/
find(ctx: any): Promise<void>;
/**
* Find one log
*/
findOne(ctx: any): Promise<{
data: any;
}>;
/**
* Get the total number of requests, login requests, register requests, and error requests for the dashboard
*/
dashboardTotals(ctx: any): Promise<void>;
/**
* Get the total number of requests over time based on the filterBy query parameter
*
* filterBy: `week` | `month`
*/
requestOverTime(ctx: any): Promise<void>;
/**
* Get the total number of logins vs register requests over time based on the filterBy query parameter
*
* filterBy: `week` | `month`
*/
loginVsRegister(ctx: any): Promise<void>;
/**
* Get the total number of GET, POST, PUT, DELETE, PATCH, "Logged in" & "Account created" requests over time based on the filterBy query parameter
*
* filterBy: `week` | `month`
*/
mostAccessed(ctx: any): Promise<void>;
};
export default controller;