@daocloud-proto/insight 0.14.0-dev-656bfa16 → 0.14.0-dev-49ee8175
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,7 +224,6 @@ export type CountAlertRequest = {
|
|
|
224
224
|
start?: string
|
|
225
225
|
end?: string
|
|
226
226
|
step?: string
|
|
227
|
-
groupByType?: boolean
|
|
228
227
|
}
|
|
229
228
|
|
|
230
229
|
export type CountAlertResponse = {
|
|
@@ -234,11 +233,7 @@ export type CountAlertResponse = {
|
|
|
234
233
|
export type CountAlert = {
|
|
235
234
|
start?: string
|
|
236
235
|
end?: string
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export type countInfo = {
|
|
241
|
-
num?: {[key: string]: string}
|
|
236
|
+
count?: {[key: string]: string}
|
|
242
237
|
}
|
|
243
238
|
|
|
244
239
|
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<
|
|
110
|
-
return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.AMHookRequest,
|
|
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"})
|