1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

Fixing operation ID.

This commit is contained in:
mike12345567 2023-03-06 17:41:24 +00:00
parent 36683459b8
commit 0026f86cc6
5 changed files with 7 additions and 7 deletions

View file

@ -2068,7 +2068,7 @@
},
"/metrics": {
"get": {
"operationId": "getById",
"operationId": "metricsGet",
"summary": "Retrieve Budibase tenant metrics",
"description": "Output metrics in OpenMetrics format compatible with Prometheus",
"tags": [

View file

@ -1685,7 +1685,7 @@ paths:
$ref: "#/components/examples/applications"
/metrics:
get:
operationId: getById
operationId: metricsGet
summary: Retrieve Budibase tenant metrics
description: Output metrics in OpenMetrics format compatible with Prometheus
tags:

View file

@ -1,10 +1,10 @@
import { App, BBContext } from "@budibase/types"
import { Ctx } from "@budibase/types"
import { users as userCore, db as dbCore } from "@budibase/backend-core"
import { quotas, licensing } from "@budibase/pro"
import os from "os"
export async function fetch(ctx: BBContext) {
export async function fetch(ctx: Ctx) {
// *** OPERATING SYSTEM ***
const freeMem = os.freemem()
const totalMem = os.totalmem()

View file

@ -7,7 +7,7 @@ const read = []
* @openapi
* /metrics:
* get:
* operationId: getById
* operationId: metricsGet
* summary: Retrieve Budibase tenant metrics
* description: Output metrics in OpenMetrics format compatible with Prometheus
* tags:

View file

@ -24,7 +24,7 @@ export interface paths {
};
"/metrics": {
/** Output metrics in OpenMetrics format compatible with Prometheus */
get: operations["getById"];
get: operations["metricsGet"];
};
"/queries/{queryId}": {
/** Queries which have been created within a Budibase app can be executed using this, */
@ -849,7 +849,7 @@ export interface operations {
};
};
/** Output metrics in OpenMetrics format compatible with Prometheus */
getById: {
metricsGet: {
responses: {
/** Returns tenant metrics. */
200: {