@daocloud-proto/insight 0.14.0-dev-955a92de → 0.14.0-dev-7c527940
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.
|
@@ -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"})
|