@daocloud-proto/insight 0.7.2-6 → 0.7.3-2
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.
|
@@ -134,8 +134,6 @@ export type CreateRuleRequest = {
|
|
|
134
134
|
export type UpdateRuleRequest = {
|
|
135
135
|
id?: string
|
|
136
136
|
description?: string
|
|
137
|
-
namespace?: string
|
|
138
|
-
targetNames?: string[]
|
|
139
137
|
expr?: string
|
|
140
138
|
thresholdSymbol?: string
|
|
141
139
|
thresholdNum?: string
|
|
@@ -218,10 +216,6 @@ export type CountAlert = {
|
|
|
218
216
|
count?: {[key: string]: string}
|
|
219
217
|
}
|
|
220
218
|
|
|
221
|
-
export type ResolveAlertRequest = {
|
|
222
|
-
alertId?: string[]
|
|
223
|
-
}
|
|
224
|
-
|
|
225
219
|
export type AMHookRequest = {
|
|
226
220
|
version?: string
|
|
227
221
|
groupKey?: string
|
|
@@ -80,9 +80,6 @@ export class Alert {
|
|
|
80
80
|
static CountAlert(req: InsightIoApiInsightV1alpha1Alert.CountAlertRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Alert.CountAlertResponse> {
|
|
81
81
|
return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.CountAlertRequest, InsightIoApiInsightV1alpha1Alert.CountAlertResponse>(`/apis/insight.io/v1alpha1/alert/alertcount?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
82
82
|
}
|
|
83
|
-
static ResolveAlert(req: InsightIoApiInsightV1alpha1Alert.ResolveAlertRequest, initReq?: fm.InitReq): Promise<empty> {
|
|
84
|
-
return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.ResolveAlertRequest, empty>(`/apis/insight.io/v1alpha1/alert/alerts`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
85
|
-
}
|
|
86
83
|
static AlertHook(req: InsightIoApiInsightV1alpha1Alert.AMHookRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Alert.AMHookRequest> {
|
|
87
84
|
return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.AMHookRequest, InsightIoApiInsightV1alpha1Alert.AMHookRequest>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
88
85
|
}
|