@daocloud-proto/insight 0.42.3 → 0.43.0-4-ga35bb6f

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.
@@ -130,6 +130,15 @@ export type ValidateGroupResponse = {
130
130
  params?: CreateGroupRequest
131
131
  }
132
132
 
133
+ export type GetGroupYAMLRequest = {
134
+ id?: string
135
+ ruleIds?: string[]
136
+ }
137
+
138
+ export type GetGroupYAMLResponse = {
139
+ yaml?: string
140
+ }
141
+
133
142
  export type UpdateGroupRequest = {
134
143
  id?: string
135
144
  description?: string
@@ -65,6 +65,7 @@ export type AMHookRequest = {
65
65
  externalURL?: string
66
66
  alerts?: AmAlert[]
67
67
  truncatedAlerts?: string
68
+ notificationReason?: string
68
69
  }
69
70
 
70
71
  export type AmAlert = {
@@ -156,6 +156,9 @@ export class Alert {
156
156
  static ListGroupRules(req: InsightIoApiAlertV1alpha1Alert.ListGroupRulesRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ListRulesResponse> {
157
157
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListGroupRulesRequest, InsightIoApiAlertV1alpha1Alert.ListRulesResponse>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
158
158
  }
159
+ static GetGroupYAML(req: InsightIoApiAlertV1alpha1Alert.GetGroupYAMLRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.GetGroupYAMLResponse> {
160
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.GetGroupYAMLRequest, InsightIoApiAlertV1alpha1Alert.GetGroupYAMLResponse>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/yaml?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
161
+ }
159
162
  static AddGroupRule(req: InsightIoApiAlertV1alpha1Alert.AddGroupRuleRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.Rule> {
160
163
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.AddGroupRuleRequest, InsightIoApiAlertV1alpha1Alert.Rule>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
161
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.42.3",
3
+ "version":"0.43.0-4-ga35bb6f",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {