A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(admin): declare gateway cluster_metrics in node stats (#2728)
Hampus38b7c634310f
diff --git a/fluxer_admin/openapi-admin.json b/fluxer_admin/openapi-admin.jsonindex 59ea165b0..2b0057224 100644--- a/fluxer_admin/openapi-admin.json+++ b/fluxer_admin/openapi-admin.json@@ -11859,7 +11859,39 @@},"process_count": {"$ref": "#/components/schemas/Int32Type"},"process_limit": {"$ref": "#/components/schemas/Int32Type"},- "uptime_seconds": {"$ref": "#/components/schemas/Int32Type"}+ "uptime_seconds": {"$ref": "#/components/schemas/Int32Type"},+ "cluster_metrics": {+ "type": "object",+ "properties": {+ "gateway_cluster_member_count": {"$ref": "#/components/schemas/Int32Type"},+ "gateway_cluster_discovery_resolve_failures_total": {"$ref": "#/components/schemas/Int32Type"},+ "gateway_cluster_membership_transitions_total": {+ "type": "object",+ "properties": {+ "up": {"$ref": "#/components/schemas/Int32Type"},+ "down": {"$ref": "#/components/schemas/Int32Type"}+ },+ "required": ["up", "down"],+ "additionalProperties": false+ },+ "gateway_node_router_owner_resolutions_total": {+ "type": "object",+ "properties": {+ "self": {"$ref": "#/components/schemas/Int32Type"},+ "peer": {"$ref": "#/components/schemas/Int32Type"}+ },+ "required": ["self", "peer"],+ "additionalProperties": false+ }+ },+ "required": [+ "gateway_cluster_member_count",+ "gateway_cluster_discovery_resolve_failures_total",+ "gateway_cluster_membership_transitions_total",+ "gateway_node_router_owner_resolutions_total"+ ],+ "additionalProperties": false+ }},"required": ["node_id",diff --git a/packages/schema/src/domains/admin/AdminSchemas.ts b/packages/schema/src/domains/admin/AdminSchemas.tsindex 092c07794..5dcab9a2a 100644--- a/packages/schema/src/domains/admin/AdminSchemas.ts+++ b/packages/schema/src/domains/admin/AdminSchemas.ts@@ -1140,6 +1140,20 @@ export const NodeStatsResponse = z.object({process_count: Int32Type,process_limit: Int32Type,uptime_seconds: Int32Type,+ cluster_metrics: z+ .object({+ gateway_cluster_member_count: Int32Type,+ gateway_cluster_discovery_resolve_failures_total: Int32Type,+ gateway_cluster_membership_transitions_total: z.object({+ up: Int32Type,+ down: Int32Type,+ }),+ gateway_node_router_owner_resolutions_total: z.object({+ self: Int32Type,+ peer: Int32Type,+ }),+ })+ .optional(),}),).max(1000),