@daocloud-proto/insight 0.7.1 → 0.7.2-14

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 MetricConfig = {
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 GetMetricConfig(req: ClusterName, initReq?: fm.InitReq): Promise<MetricConfig> {
48
- return fm.fetchReq<ClusterName, MetricConfig>(`/apis/insight.io/v1alpha1/clusters/${req["cluster"]}/metric/config?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.7.1",
3
+ "version":"0.7.2-14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {