Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api-server): implement new Global Insight endpoint #7775

Merged
merged 11 commits into from
Sep 21, 2023
Merged
76 changes: 53 additions & 23 deletions api/mesh/v1alpha1/mesh_insight.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/mesh/v1alpha1/mesh_insight.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ message MeshInsight {
message DataplanesByType {
DataplaneStat standard = 1;
DataplaneStat gateway = 2;
DataplaneStat gatewayBuiltin = 3;
DataplaneStat gatewayDelegated = 4;
}
DataplanesByType dataplanesByType = 7;
}
7 changes: 7 additions & 0 deletions api/openapi/openapi.cfg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package: types
generate:
models: true
import-mapping:
./common/error_schema.yaml: "github.com/kumahq/kuma/api/openapi/types/common"
output-options:
skip-prune: true
57 changes: 57 additions & 0 deletions api/openapi/specs/common/error_schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
components:
schemas:
InvalidParameters:
type: object
title: Invalid Parameters
properties:
field:
type: string
reason:
type: string
rule:
type: string
choices:
type: array
items:
type: string
Error:
type: object
title: Error
description: standard error
x-examples:
Example 1:
status: 404
title: Not Found
type: https://kongapi.info/konnect/not-found
instance: 'portal:trace:2287285207635123011'
detail: The requested document was not found
required:
- status
- title
- instance
properties:
status:
type: integer
description: The HTTP status code.
example: 404
title:
type: string
description: The error response code.
example: Not Found
type:
type: string
description: The error type.
example: Not Found
instance:
type: string
example: 'portal:trace:2287285207635123011'
description: The portal traceback code
detail:
type: string
example: The requested team was not found
description: Details about the error.
invalid_parameters:
type: array
description: TODO
items:
$ref: "#/components/schemas/InvalidParameters"
Loading