@daocloud-proto/skoala 0.31.2 → 0.32.0
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.
- package/api/general/v1alpha1/grafana.pb.ts +1 -0
- package/api/general/v1alpha2/skoala.pb.ts +2 -0
- package/api/hosted/v1alpha1/mesh.pb.ts +14 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +12 -0
- package/api/integrated/v1alpha1/registry.pb.ts +12 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +6 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
|
|
8
8
|
import * as GoogleProtobufDuration from "../../../google/protobuf/duration.pb"
|
|
9
9
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
10
|
+
import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
|
|
10
11
|
import * as SkoalaApiHostedV1alpha1Skoala_plugins from "./skoala_plugins.pb"
|
|
11
12
|
|
|
12
13
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -270,6 +271,19 @@ export type GetServiceRes = {
|
|
|
270
271
|
namespaceName?: string
|
|
271
272
|
}
|
|
272
273
|
|
|
274
|
+
export type GetServiceMonitorReq = {
|
|
275
|
+
workspaceId?: string
|
|
276
|
+
meshId?: string
|
|
277
|
+
namespaceName?: string
|
|
278
|
+
serviceName?: string
|
|
279
|
+
start?: string
|
|
280
|
+
end?: string
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type GetServiceMonitorRes = {
|
|
284
|
+
tracingMetrics?: SkoalaApiGeneralV1alpha1Insight.InsightTracingMetrics
|
|
285
|
+
}
|
|
286
|
+
|
|
273
287
|
export type ListServicePort = {
|
|
274
288
|
port?: number
|
|
275
289
|
rules?: Rule[]
|
|
@@ -892,6 +892,18 @@ export type GetNacosGrafanaRes = {
|
|
|
892
892
|
zhUrl?: string
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
+
export type GetSeataGrafanaReq = {
|
|
896
|
+
workspaceId?: string
|
|
897
|
+
clusterName?: string
|
|
898
|
+
namespaceName?: string
|
|
899
|
+
seataName?: string
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export type GetSeataGrafanaRes = {
|
|
903
|
+
url?: string
|
|
904
|
+
zhUrl?: string
|
|
905
|
+
}
|
|
906
|
+
|
|
895
907
|
export type GetResourceInfoReq = {
|
|
896
908
|
workspaceId?: string
|
|
897
909
|
clusterName?: string
|
|
@@ -65,6 +65,9 @@ export type Registry = {
|
|
|
65
65
|
totalInstanceCount?: number
|
|
66
66
|
updatedAt?: string
|
|
67
67
|
createdAt?: string
|
|
68
|
+
isAuth?: boolean
|
|
69
|
+
username?: string
|
|
70
|
+
password?: string
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
export type PartOfRegistry = {
|
|
@@ -133,6 +136,9 @@ export type UpdateRegistryReq = {
|
|
|
133
136
|
addresses?: string[]
|
|
134
137
|
namespaces?: Namespace[]
|
|
135
138
|
isHosted?: boolean
|
|
139
|
+
isAuth?: boolean
|
|
140
|
+
username?: string
|
|
141
|
+
password?: string
|
|
136
142
|
}
|
|
137
143
|
|
|
138
144
|
export type CreateRegistryReq = {
|
|
@@ -143,6 +149,9 @@ export type CreateRegistryReq = {
|
|
|
143
149
|
addresses?: string[]
|
|
144
150
|
namespaces?: Namespace[]
|
|
145
151
|
isHosted?: boolean
|
|
152
|
+
isAuth?: boolean
|
|
153
|
+
username?: string
|
|
154
|
+
password?: string
|
|
146
155
|
}
|
|
147
156
|
|
|
148
157
|
export type DeleteRegistryReq = {
|
|
@@ -156,6 +165,9 @@ export type PingRegistryReq = {
|
|
|
156
165
|
name?: string
|
|
157
166
|
addresses?: string[]
|
|
158
167
|
namespaces?: Namespace[]
|
|
168
|
+
isAuth?: boolean
|
|
169
|
+
username?: string
|
|
170
|
+
password?: string
|
|
159
171
|
}
|
|
160
172
|
|
|
161
173
|
export type PingRegistryRes = {
|
|
@@ -431,6 +431,9 @@ export class Grafana {
|
|
|
431
431
|
static GetNacosGrafana(req: SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes> {
|
|
432
432
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
433
433
|
}
|
|
434
|
+
static GetSeataGrafana(req: SkoalaApiHostedV1alpha1Nacos.GetSeataGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetSeataGrafanaRes> {
|
|
435
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetSeataGrafanaReq, SkoalaApiHostedV1alpha1Nacos.GetSeataGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/seata/${req["seataName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "seataName"])}`, {...initReq, method: "GET"})
|
|
436
|
+
}
|
|
434
437
|
}
|
|
435
438
|
export class Statics {
|
|
436
439
|
static GetStaticsSentinel(req: SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelRes> {
|
|
@@ -519,6 +522,9 @@ export class Mesh {
|
|
|
519
522
|
static GetService(req: SkoalaApiHostedV1alpha1Mesh.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceRes> {
|
|
520
523
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceReq, SkoalaApiHostedV1alpha1Mesh.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
521
524
|
}
|
|
525
|
+
static GetServiceMonitor(req: SkoalaApiHostedV1alpha1Mesh.GetServiceMonitorReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceMonitorRes> {
|
|
526
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceMonitorReq, SkoalaApiHostedV1alpha1Mesh.GetServiceMonitorRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/monitor?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
527
|
+
}
|
|
522
528
|
static ListServicePort(req: SkoalaApiHostedV1alpha1Mesh.ListServicePortReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServicePortRes> {
|
|
523
529
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServicePortReq, SkoalaApiHostedV1alpha1Mesh.ListServicePortRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
524
530
|
}
|