44 lines
906 B
TypeScript
44 lines
906 B
TypeScript
import type { OpenAPIV3_1 } from "openapi-types";
|
|
|
|
export const cronerActiveJobs: OpenAPIV3_1.PathsObject = {
|
|
"/api/utils/croner": {
|
|
get: {
|
|
summary: "Cron jobs",
|
|
description: "Returns all jobs on the server.",
|
|
tags: ["Utils"],
|
|
responses: {
|
|
"200": {
|
|
description: "Jobs returned",
|
|
content: {
|
|
"application/json": {
|
|
schema: {
|
|
type: "object",
|
|
properties: {
|
|
status: {
|
|
type: "boolean",
|
|
format: "boolean",
|
|
example: true,
|
|
},
|
|
uptime: {
|
|
type: "number",
|
|
format: "3454.34",
|
|
example: 3454.34,
|
|
},
|
|
memoryUsage: {
|
|
type: "string",
|
|
format: "Heap: 11.62 MB / RSS: 86.31 MB",
|
|
},
|
|
sqlServerStats: {
|
|
type: "number",
|
|
format: "442127",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|