add v2 routes, controllers
This commit is contained in:
1 parent
f4b76baaa2
commit
6d0c560948
38 files changed
+1532
-3
No files matched your search
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import { ITokenizedUser } from "../db/models/index.ts";
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
interface Request {
|
||||
user?: ITokenizedUser;
|
||||
resource?: any;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export type { MonitorWithChecksResponse } from "./monitor-response-with-checks.js";
|
||||
@@ -0,0 +1,11 @@
|
||||
import { IMonitor, IMonitorStats } from "../db/v2/models/index.js";
|
||||
|
||||
export interface MonitorWithChecksResponse {
|
||||
monitor: IMonitor;
|
||||
checks: Array<{
|
||||
_id: string;
|
||||
count: number;
|
||||
avgResponseTime: number;
|
||||
}>;
|
||||
stats: IMonitorStats;
|
||||
}
|
||||
Reference in new issue
Block a user