@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.
@@ -10,4 +10,5 @@ export enum DashboardType {
10
10
  SesameContour = "SesameContour",
11
11
  SesameEnvoy = "SesameEnvoy",
12
12
  Nacos = "Nacos",
13
+ SentinelDashboard = "SentinelDashboard",
13
14
  }
@@ -252,6 +252,7 @@ export type NacosServiceDetail = {
252
252
  metadata?: {[key: string]: string}
253
253
  protectThreshold?: number
254
254
  selector?: {[key: string]: string}
255
+ governed?: boolean
255
256
  }
256
257
 
257
258
  export type NacosServiceInstance = {
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.11.1",
3
+ "version": "0.12.0-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {