@daocloud-proto/skoala 0.31.2-8 → 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.
|
@@ -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[]
|
|
@@ -522,6 +522,9 @@ export class Mesh {
|
|
|
522
522
|
static GetService(req: SkoalaApiHostedV1alpha1Mesh.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceRes> {
|
|
523
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"})
|
|
524
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
|
+
}
|
|
525
528
|
static ListServicePort(req: SkoalaApiHostedV1alpha1Mesh.ListServicePortReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServicePortRes> {
|
|
526
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"})
|
|
527
530
|
}
|