@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
|
-
|
|
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<
|
|
110
|
-
return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.AMHookRequest,
|
|
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"})
|