@daocloud-proto/insight 0.40.1 → 0.40.2-rc1

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
  }
@@ -146,6 +146,7 @@ export type DownloadLogRequest = {
146
146
  fields?: LogField[]
147
147
  maxLines?: number
148
148
  sorts?: string[]
149
+ timeZone?: string
149
150
  }
150
151
 
151
152
  export type DownloadLogResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.40.1",
3
+ "version":"0.40.2-rc1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {