@daocloud-proto/insight 0.14.0-dev-46402dc2 → 0.14.0-dev-656bfa16

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.
@@ -224,6 +224,7 @@ export type CountAlertRequest = {
224
224
  start?: string
225
225
  end?: string
226
226
  step?: string
227
+ groupByType?: boolean
227
228
  }
228
229
 
229
230
  export type CountAlertResponse = {
@@ -233,7 +234,11 @@ export type CountAlertResponse = {
233
234
  export type CountAlert = {
234
235
  start?: string
235
236
  end?: string
236
- count?: {[key: string]: string}
237
+ items?: {[key: string]: countInfo}
238
+ }
239
+
240
+ export type countInfo = {
241
+ num?: {[key: string]: string}
237
242
  }
238
243
 
239
244
  export type AMHookRequest = {
@@ -106,8 +106,8 @@ export class Alert {
106
106
  static CountAlert(req: InsightIoApiInsightV1alpha1Alert.CountAlertRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Alert.CountAlertResponse> {
107
107
  return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.CountAlertRequest, InsightIoApiInsightV1alpha1Alert.CountAlertResponse>(`/apis/insight.io/v1alpha1/alert/alertcount?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
108
108
  }
109
- static AlertHook(req: InsightIoApiInsightV1alpha1Alert.AMHookRequest, initReq?: fm.InitReq): Promise<empty> {
110
- return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.AMHookRequest, empty>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req)})
109
+ static AlertHook(req: InsightIoApiInsightV1alpha1Alert.AMHookRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Alert.AMHookRequest> {
110
+ return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.AMHookRequest, InsightIoApiInsightV1alpha1Alert.AMHookRequest>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req)})
111
111
  }
112
112
  static GetAlertHistoryRetentionPeriod(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Alert.AlertHistoryRetentionPeriod> {
113
113
  return fm.fetchReq<empty, InsightIoApiInsightV1alpha1Alert.AlertHistoryRetentionPeriod>(`/apis/insight.io/v1alpha1/alert/history/retentionperiod?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.14.0-dev-46402dc2",
3
+ "version":"0.14.0-dev-656bfa16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {