@daocloud-proto/insight 0.14.0-dev-656bfa16 → 0.14.0-dev-f93d3dff

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.
@@ -234,11 +234,12 @@ export type CountAlertResponse = {
234
234
  export type CountAlert = {
235
235
  start?: string
236
236
  end?: string
237
- items?: {[key: string]: countInfo}
237
+ items?: countInfo[]
238
238
  }
239
239
 
240
240
  export type countInfo = {
241
- num?: {[key: string]: string}
241
+ target?: string
242
+ sum?: {[key: string]: string}
242
243
  }
243
244
 
244
245
  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<InsightIoApiInsightV1alpha1Alert.AMHookRequest> {
110
- return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.AMHookRequest, InsightIoApiInsightV1alpha1Alert.AMHookRequest>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req)})
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)})
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-656bfa16",
3
+ "version":"0.14.0-dev-f93d3dff",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {