@daocloud-proto/insight 0.42.2 → 0.43.0-2-g385aa53
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
|
|
@@ -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
|
@@ -124,8 +124,8 @@ export type ClusterDetail = {
|
|
|
124
124
|
statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
125
125
|
daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
126
126
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
127
|
-
gpuNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
128
127
|
insightAgentStatus?: insightAgentState
|
|
128
|
+
gpuNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export type insightAgentState = {
|