@daocloud-proto/skoala 0.7.2-70 → 0.7.2-76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
export enum DashboardType {
|
|
8
8
|
DASHBOARD_TYPE_UNSPECIFIED = "DASHBOARD_TYPE_UNSPECIFIED",
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
AppsSentinel = "AppsSentinel",
|
|
10
|
+
SesameContour = "SesameContour",
|
|
11
|
+
SesameEnvoy = "SesameEnvoy",
|
|
12
|
+
Nacos = "Nacos",
|
|
11
13
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
9
|
+
import * as SkoalaApiGeneralV1alpha1Grafana from "../../general/v1alpha1/grafana.pb"
|
|
9
10
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
10
11
|
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
11
12
|
|
|
@@ -81,6 +82,11 @@ export enum LogLogLevel {
|
|
|
81
82
|
Off = "Off",
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
export enum ListGatewayPodContainerReqComponentType {
|
|
86
|
+
contour = "contour",
|
|
87
|
+
envoy = "envoy",
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
export type Node = {
|
|
85
91
|
total?: number
|
|
86
92
|
online?: number
|
|
@@ -347,6 +353,23 @@ export type GatewayDiagnosticReq = {
|
|
|
347
353
|
diagnostic?: GatewayDiagnostic
|
|
348
354
|
}
|
|
349
355
|
|
|
356
|
+
export type ListGatewayPodContainerReq = {
|
|
357
|
+
workspaceId?: string
|
|
358
|
+
clusterName?: string
|
|
359
|
+
namespaceName?: string
|
|
360
|
+
gatewayName?: string
|
|
361
|
+
component?: ListGatewayPodContainerReqComponentType
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export type ListGatewayPodContainerRes = {
|
|
365
|
+
items?: PodContainers[]
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export type PodContainers = {
|
|
369
|
+
podName?: string
|
|
370
|
+
containerName?: string[]
|
|
371
|
+
}
|
|
372
|
+
|
|
350
373
|
export type PodSummary = {
|
|
351
374
|
podName?: string
|
|
352
375
|
namespaceName?: string
|
|
@@ -462,4 +485,17 @@ export type Alert = {
|
|
|
462
485
|
startTime?: number
|
|
463
486
|
endTime?: number
|
|
464
487
|
stats?: {[key: string]: string}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export type GetGatewayMetricDashboardReq = {
|
|
491
|
+
workspaceId?: string
|
|
492
|
+
clusterName?: string
|
|
493
|
+
namespaceName?: string
|
|
494
|
+
gatewayName?: string
|
|
495
|
+
dashboardType?: SkoalaApiGeneralV1alpha1Grafana.DashboardType
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export type GetGatewayMetricDashboardRes = {
|
|
499
|
+
url?: string
|
|
500
|
+
zhUrl?: string
|
|
465
501
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type GetPodContainerLogReq = {
|
|
7
|
+
workspaceId?: string
|
|
8
|
+
gatewayName?: string
|
|
9
|
+
clusterName?: string
|
|
10
|
+
namespaceName?: string
|
|
11
|
+
podName?: string
|
|
12
|
+
container?: string
|
|
13
|
+
startTime?: string
|
|
14
|
+
endTime?: string
|
|
15
|
+
page?: number
|
|
16
|
+
pageSize?: number
|
|
17
|
+
logSearch?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type GetPodContainerLogResData = {
|
|
21
|
+
log?: string
|
|
22
|
+
timeStamp?: string
|
|
23
|
+
labels?: {[key: string]: string}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GetPodContainerLogRes = {
|
|
27
|
+
total?: number
|
|
28
|
+
items?: GetPodContainerLogResData[]
|
|
29
|
+
}
|
|
@@ -16,6 +16,7 @@ import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.p
|
|
|
16
16
|
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
17
17
|
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
18
18
|
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
19
|
+
import * as SkoalaApiHostedV1alpha1Gatewaylog from "../../hosted/v1alpha1/gatewaylog.pb"
|
|
19
20
|
import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
|
|
20
21
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
21
22
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
@@ -403,6 +404,12 @@ export class Gateway {
|
|
|
403
404
|
static GetGatewayPod(req: SkoalaApiHostedV1alpha1Gateway.GetPodReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetPodRes> {
|
|
404
405
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetPodReq, SkoalaApiHostedV1alpha1Gateway.GetPodRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
|
|
405
406
|
}
|
|
407
|
+
static ListGatewayPodsByType(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes> {
|
|
408
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/type/${req["component"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "component"])}`, {...initReq, method: "GET"})
|
|
409
|
+
}
|
|
410
|
+
static GetPodContainerLog(req: SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogRes> {
|
|
411
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pod/${req["podName"]}/container/${req["container"]}/logs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName", "container"])}`, {...initReq, method: "GET"})
|
|
412
|
+
}
|
|
406
413
|
static GetGatewayPodAlert(req: SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes> {
|
|
407
414
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/alert/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
|
|
408
415
|
}
|
|
@@ -523,4 +530,7 @@ export class Gateway {
|
|
|
523
530
|
static GetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes> {
|
|
524
531
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
525
532
|
}
|
|
533
|
+
static GetGatewayMetricDashboard(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes> {
|
|
534
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/metrics/dashboard/${req["dashboardType"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "dashboardType"])}`, {...initReq, method: "GET"})
|
|
535
|
+
}
|
|
526
536
|
}
|