@daocloud-proto/insight 0.40.2-rc0-remove-jaeger-chart → 0.40.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.
|
@@ -27,15 +27,6 @@ export enum ValidateGroupCode {
|
|
|
27
27
|
ERR_RULE_DESCRIPTION = "ERR_RULE_DESCRIPTION",
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export enum NotifyStatusStatus {
|
|
31
|
-
unknown = "unknown",
|
|
32
|
-
success = "success",
|
|
33
|
-
partial_success = "partial_success",
|
|
34
|
-
fail = "fail",
|
|
35
|
-
silenced = "silenced",
|
|
36
|
-
not_configured = "not_configured",
|
|
37
|
-
}
|
|
38
|
-
|
|
39
30
|
export type ID = {
|
|
40
31
|
id?: string
|
|
41
32
|
}
|
|
@@ -274,12 +265,6 @@ export type AlertSummary = {
|
|
|
274
265
|
lastSent?: string
|
|
275
266
|
builtin?: boolean
|
|
276
267
|
status?: InsightIoApiAlertV1alpha1Type.AlertStatus
|
|
277
|
-
notifyStatus?: NotifyStatus
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export type NotifyStatus = {
|
|
281
|
-
status?: NotifyStatusStatus
|
|
282
|
-
messages?: {[key: string]: string}
|
|
283
268
|
}
|
|
284
269
|
|
|
285
270
|
export type GetAlertRequest = {
|
|
@@ -307,7 +292,6 @@ export type Alert = {
|
|
|
307
292
|
startAt?: string
|
|
308
293
|
updateAt?: string
|
|
309
294
|
lastSent?: string
|
|
310
|
-
notifyStatus?: NotifyStatus
|
|
311
295
|
}
|
|
312
296
|
|
|
313
297
|
export type CountAlertRequest = {
|
|
@@ -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
|
}
|
package/log/v1alpha1/log.pb.ts
CHANGED