@daocloud-proto/skoala 0.11.1 → 0.12.0-2
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.
|
@@ -61,6 +61,18 @@ export type DeleteInsGovernReq = {
|
|
|
61
61
|
heartbeatPort?: number
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
export type GetSentinelDashGrafanaReq = {
|
|
65
|
+
workspaceId?: string
|
|
66
|
+
clusterName?: string
|
|
67
|
+
namespaceName?: string
|
|
68
|
+
sentinelName?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type GetSentinelDashGrafanaRes = {
|
|
72
|
+
url?: string
|
|
73
|
+
zhUrl?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
64
76
|
export type GetAppsSentinelGrafanaReq = {
|
|
65
77
|
workspaceId?: string
|
|
66
78
|
clusterName?: string
|
|
@@ -326,6 +326,9 @@ export class Sentinel {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
export class Grafana {
|
|
329
|
+
static GetSentinelDashGrafana(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaRes> {
|
|
330
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
331
|
+
}
|
|
329
332
|
static GetAppsSentinelGrafana(req: SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes> {
|
|
330
333
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["app"]}/grafanas/apps-sentinel?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "app"])}`, {...initReq, method: "GET"})
|
|
331
334
|
}
|