@daocloud-proto/insight 0.15.0-rc3 → 0.15.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.
@@ -306,6 +306,9 @@ export class Resource {
306
306
  static GetPod(req: InsightIoApiResourceV1alpha1Pod.GetPodRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Pod.Pod> {
307
307
  return fm.fetchReq<InsightIoApiResourceV1alpha1Pod.GetPodRequest, InsightIoApiResourceV1alpha1Pod.Pod>(`/apis/insight.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pods/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
308
308
  }
309
+ static GetPodJVMInfo(req: InsightIoApiResourceV1alpha1Pod.PodJVMRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Pod.PodJVMInfo> {
310
+ return fm.fetchReq<InsightIoApiResourceV1alpha1Pod.PodJVMRequest, InsightIoApiResourceV1alpha1Pod.PodJVMInfo>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/pods/${req["name"]}/jvm`, {...initReq, method: "POST", body: JSON.stringify(req)})
311
+ }
309
312
  static ListPodContainers(req: InsightIoApiResourceV1alpha1Pod.ListContainersRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Pod.ListContainersResponse> {
310
313
  return fm.fetchReq<InsightIoApiResourceV1alpha1Pod.ListContainersRequest, InsightIoApiResourceV1alpha1Pod.ListContainersResponse>(`/apis/insight.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pods/${req["name"]}/containers?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
311
314
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.15.0-rc3",
3
+ "version":"0.15.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -51,6 +51,15 @@ export type GetPodRequest = {
51
51
  name?: string
52
52
  }
53
53
 
54
+ export type PodJVMRequest = {
55
+ clusterName?: string
56
+ namespace?: string
57
+ name?: string
58
+ start?: string
59
+ end?: string
60
+ step?: number
61
+ }
62
+
54
63
  export type Pod = {
55
64
  name?: string
56
65
  cluster?: string
@@ -63,6 +72,18 @@ export type Pod = {
63
72
  conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
64
73
  }
65
74
 
75
+ export type PodJVMInfo = {
76
+ jvmEnabled?: boolean
77
+ urls?: JVMUrls
78
+ }
79
+
80
+ export type JVMUrls = {
81
+ jmxEn?: string
82
+ jmxZh?: string
83
+ otelEn?: string
84
+ otelZh?: string
85
+ }
86
+
66
87
  export type ListContainersRequest = {
67
88
  cluster?: string
68
89
  namespace?: string