@daocloud-proto/insight 0.7.2-2 → 0.7.2-24

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.
@@ -218,10 +218,6 @@ export type CountAlert = {
218
218
  count?: {[key: string]: string}
219
219
  }
220
220
 
221
- export type ResolveAlertRequest = {
222
- alertId?: string[]
223
- }
224
-
225
221
  export type AMHookRequest = {
226
222
  version?: string
227
223
  groupKey?: string
@@ -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 {
@@ -78,9 +80,6 @@ export class Alert {
78
80
  static CountAlert(req: InsightIoApiInsightV1alpha1Alert.CountAlertRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Alert.CountAlertResponse> {
79
81
  return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.CountAlertRequest, InsightIoApiInsightV1alpha1Alert.CountAlertResponse>(`/apis/insight.io/v1alpha1/alert/alertcount?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
80
82
  }
81
- static ResolveAlert(req: InsightIoApiInsightV1alpha1Alert.ResolveAlertRequest, initReq?: fm.InitReq): Promise<empty> {
82
- return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.ResolveAlertRequest, empty>(`/apis/insight.io/v1alpha1/alert/alerts`, {...initReq, method: "PUT", body: JSON.stringify(req)})
83
- }
84
83
  static AlertHook(req: InsightIoApiInsightV1alpha1Alert.AMHookRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Alert.AMHookRequest> {
85
84
  return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.AMHookRequest, InsightIoApiInsightV1alpha1Alert.AMHookRequest>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req)})
86
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.7.2-2",
3
+ "version":"0.7.2-24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {