From 6d8a969334b54ba8f997c07ea720b54774b54770 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Tue, 24 Sep 2024 18:44:42 +0900 Subject: [PATCH] Update specs --- app/config/specs/open-api3-1.6.x-console.json | 52 ++++++++++++++++++- .../specs/open-api3-latest-console.json | 4 +- app/config/specs/swagger2-1.6.x-console.json | 4 +- app/config/specs/swagger2-latest-console.json | 4 +- 4 files changed, 56 insertions(+), 8 deletions(-) diff --git a/app/config/specs/open-api3-1.6.x-console.json b/app/config/specs/open-api3-1.6.x-console.json index 07749889d8..1bd2adf6b5 100644 --- a/app/config/specs/open-api3-1.6.x-console.json +++ b/app/config/specs/open-api3-1.6.x-console.json @@ -36747,6 +36747,12 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total databases storage in bytes.", + "x-example": 0, + "format": "int32" + }, "databases": { "type": "array", "description": "Aggregated number of databases per period.", @@ -36770,6 +36776,14 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "An array of the aggregated number of databases storage in bytes per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] } }, "required": [ @@ -36777,9 +36791,11 @@ "databasesTotal", "collectionsTotal", "documentsTotal", + "storageTotal", "databases", "collections", - "documents" + "documents", + "storage" ] }, "usageDatabase": { @@ -36803,6 +36819,12 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total storage used in bytes.", + "x-example": 0, + "format": "int32" + }, "collections": { "type": "array", "description": "Aggregated number of collections per period.", @@ -36818,14 +36840,24 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "Aggregated storage used in bytes per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] } }, "required": [ "range", "collectionsTotal", "documentsTotal", + "storageTotal", "collections", - "documents" + "documents", + "storage" ] }, "usageCollection": { @@ -37366,6 +37398,12 @@ "x-example": 0, "format": "int32" }, + "databasesStorageTotal": { + "type": "integer", + "description": "Total aggregated sum of databases storage size (in bytes).", + "x-example": 0, + "format": "int32" + }, "usersTotal": { "type": "integer", "description": "Total aggregated number of users.", @@ -37462,6 +37500,14 @@ }, "x-example": [] }, + "databasesStorageBreakdown": { + "type": "array", + "description": "An array of the aggregated breakdown of storage usage by databases.", + "items": { + "$ref": "#\/components\/schemas\/metricBreakdown" + }, + "x-example": [] + }, "executionsMbSecondsBreakdown": { "type": "array", "description": "Aggregated breakdown in totals of execution mbSeconds by functions.", @@ -37491,6 +37537,7 @@ "executionsTotal", "documentsTotal", "databasesTotal", + "databasesStorageTotal", "usersTotal", "filesStorageTotal", "functionsStorageTotal", @@ -37505,6 +37552,7 @@ "executions", "executionsBreakdown", "bucketsBreakdown", + "databasesStorageBreakdown", "executionsMbSecondsBreakdown", "buildsMbSecondsBreakdown", "functionsStorageBreakdown" diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index cef8a00947..1bd2adf6b5 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -36779,7 +36779,7 @@ }, "storage": { "type": "array", - "description": "Aggregated number of databases storage in bytes per period.", + "description": "An array of the aggregated number of databases storage in bytes per period.", "items": { "$ref": "#\/components\/schemas\/metric" }, @@ -37502,7 +37502,7 @@ }, "databasesStorageBreakdown": { "type": "array", - "description": "Aggregated breakdown in totals of usage by databases.", + "description": "An array of the aggregated breakdown of storage usage by databases.", "items": { "$ref": "#\/components\/schemas\/metricBreakdown" }, diff --git a/app/config/specs/swagger2-1.6.x-console.json b/app/config/specs/swagger2-1.6.x-console.json index 5d0f39186b..71721d9ac6 100644 --- a/app/config/specs/swagger2-1.6.x-console.json +++ b/app/config/specs/swagger2-1.6.x-console.json @@ -37305,7 +37305,7 @@ }, "storage": { "type": "array", - "description": "Aggregated number of databases storage in bytes per period.", + "description": "An array of the aggregated number of databases storage in bytes per period.", "items": { "type": "object", "$ref": "#\/definitions\/metric" @@ -38065,7 +38065,7 @@ }, "databasesStorageBreakdown": { "type": "array", - "description": "Aggregated breakdown in totals of usage by databases.", + "description": "An array of the aggregated breakdown of storage usage by databases.", "items": { "type": "object", "$ref": "#\/definitions\/metricBreakdown" diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 5d0f39186b..71721d9ac6 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -37305,7 +37305,7 @@ }, "storage": { "type": "array", - "description": "Aggregated number of databases storage in bytes per period.", + "description": "An array of the aggregated number of databases storage in bytes per period.", "items": { "type": "object", "$ref": "#\/definitions\/metric" @@ -38065,7 +38065,7 @@ }, "databasesStorageBreakdown": { "type": "array", - "description": "Aggregated breakdown in totals of usage by databases.", + "description": "An array of the aggregated breakdown of storage usage by databases.", "items": { "type": "object", "$ref": "#\/definitions\/metricBreakdown"