@daocloud-proto/insight 0.7.1 → 0.7.2-8
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.
|
@@ -35,17 +35,19 @@ export type ClusterName = {
|
|
|
35
35
|
cluster?: string
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export type
|
|
39
|
-
promRetentionTime?: string
|
|
38
|
+
export type GlobalConfig = {
|
|
40
39
|
vmStorageRetentionTime?: string
|
|
40
|
+
logRetentionTime?: string
|
|
41
|
+
traceDataRetentionTime?: string
|
|
42
|
+
traceApdexThreshold?: string
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export class Insight {
|
|
44
46
|
static GetVersion(req: empty, initReq?: fm.InitReq): Promise<VersionInfo> {
|
|
45
47
|
return fm.fetchReq<empty, VersionInfo>(`/apis/insight.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
46
48
|
}
|
|
47
|
-
static
|
|
48
|
-
return fm.fetchReq<
|
|
49
|
+
static GetGlobalConfig(req: empty, initReq?: fm.InitReq): Promise<GlobalConfig> {
|
|
50
|
+
return fm.fetchReq<empty, GlobalConfig>(`/apis/insight.io/v1alpha1/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
export class FeatureGatesService {
|