@daocloud-proto/baize 0.103.1 → 0.103.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.
@@ -20,11 +20,15 @@ export type SearchIndex = {
20
20
  customPath?: string
21
21
  }
22
22
 
23
+ export type AuthResourceAction = {
24
+ resourceType?: string
25
+ action?: string
26
+ }
27
+
23
28
  export type Auth = {
24
- group?: string
25
- namespaced?: boolean
26
- meshed?: boolean
27
29
  skipAuth?: boolean
30
+ devloper?: AuthResourceAction
31
+ operator?: AuthResourceAction
28
32
  }
29
33
 
30
34
  export type Audit = {
@@ -139,6 +139,16 @@ export type QueryTimeSeriesVectorsResponse = {
139
139
  items?: TimeSeriesVectorQueryResponse[]
140
140
  }
141
141
 
142
+ export type WorkloadGrafanaDashboardRequest = {
143
+ workspace?: number
144
+ cluster?: string
145
+ namespace?: string
146
+ pod?: string
147
+ container?: string
148
+ from?: string
149
+ to?: string
150
+ }
151
+
142
152
  export type GrafanaDashboard = {
143
153
  urlEN?: string
144
154
  urlZH?: string
@@ -173,4 +183,7 @@ export class MetricsService {
173
183
  static GetAdminGrafanaDashboard(req: AdminOverviewDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
174
184
  return fm.fetchReq<AdminOverviewDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/grafana-dashboards/admin-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
175
185
  }
186
+ static GetWorkloadGrafanaDashboard(req: WorkloadGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
187
+ return fm.fetchReq<WorkloadGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/grafana-dashboards?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
188
+ }
176
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.103.1",
3
+ "version": "v0.103.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"