Fixing operation ID.
This commit is contained in:
parent
36683459b8
commit
0026f86cc6
|
@ -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": [
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue