@daocloud-proto/insight 0.41.0 → 0.41.1-rc1-2-gcb4d7a0

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.
@@ -96,6 +96,13 @@ export type helmInstallConfigResponse = {
96
96
  values?: string
97
97
  }
98
98
 
99
+ export type PreferenceConfig = {
100
+ traceApdexThreshold?: string
101
+ errorRateThresholds?: number[]
102
+ latencyThresholds?: number[]
103
+ slowSqlThreshold?: number
104
+ }
105
+
99
106
  export class Insight {
100
107
  static GetVersion(req: empty, initReq?: fm.InitReq): Promise<VersionInfo> {
101
108
  return fm.fetchReq<empty, VersionInfo>(`/apis/insight.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -103,6 +110,9 @@ export class Insight {
103
110
  static GetGlobalConfig(req: empty, initReq?: fm.InitReq): Promise<GlobalConfig> {
104
111
  return fm.fetchReq<empty, GlobalConfig>(`/apis/insight.io/v1alpha1/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
105
112
  }
113
+ static GetPreferenceConfig(req: empty, initReq?: fm.InitReq): Promise<PreferenceConfig> {
114
+ return fm.fetchReq<empty, PreferenceConfig>(`/apis/insight.io/v1alpha1/config/preference?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
115
+ }
106
116
  static UpdateGlobalConfig(req: GlobalConfig, initReq?: fm.InitReq): Promise<GlobalConfig> {
107
117
  return fm.fetchReq<GlobalConfig, GlobalConfig>(`/apis/insight.io/v1alpha1/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
108
118
  }
@@ -23,6 +23,8 @@ export enum GetResourcesCountRequestResourcesFilter {
23
23
  JOB_TOTAL = "JOB_TOTAL",
24
24
  POD_NORMAL_TOTAL = "POD_NORMAL_TOTAL",
25
25
  POD_TOTAL = "POD_TOTAL",
26
+ GPU_COUNT = "GPU_COUNT",
27
+ GPU_ALLOCATED_COUNT = "GPU_ALLOCATED_COUNT",
26
28
  LOG_TOTAL = "LOG_TOTAL",
27
29
  TRACE_TOTAL = "TRACE_TOTAL",
28
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.41.0",
3
+ "version":"0.41.1-rc1-2-gcb4d7a0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -124,6 +124,7 @@ export type ClusterDetail = {
124
124
  statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
125
125
  daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
126
126
  podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
127
+ gpuNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
127
128
  insightAgentStatus?: insightAgentState
128
129
  }
129
130