@daocloud-proto/insight 0.22.2-dev.1 → 0.23.0-rc1-2-gd8f51c6
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.
|
@@ -397,12 +397,27 @@ export type RuleTemplate = {
|
|
|
397
397
|
updateAt?: string
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
+
export type RuleTemplateSummary = {
|
|
401
|
+
id?: string
|
|
402
|
+
name?: string
|
|
403
|
+
targetType?: InsightIoApiAlertV1alpha1Type.TargetType
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export type ListRuleTemplateSummaryRequest = {
|
|
407
|
+
targetType?: InsightIoApiAlertV1alpha1Type.TargetType
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export type ListRuleTemplateSummaryResponse = {
|
|
411
|
+
items?: RuleTemplateSummary[]
|
|
412
|
+
}
|
|
413
|
+
|
|
400
414
|
export type ListRuleTemplatesRequest = {
|
|
401
415
|
builtin?: boolean
|
|
402
416
|
name?: string
|
|
403
417
|
page?: number
|
|
404
418
|
pageSize?: number
|
|
405
419
|
sorts?: string[]
|
|
420
|
+
targetType?: InsightIoApiAlertV1alpha1Type.TargetType
|
|
406
421
|
}
|
|
407
422
|
|
|
408
423
|
export type ListRuleTemplatesResponse = {
|
|
@@ -13,6 +13,7 @@ import * as fm from "../../fetch.pb"
|
|
|
13
13
|
import * as InsightIoApiGraphV1alpha1Graph from "../../graph/v1alpha1/graph.pb"
|
|
14
14
|
import * as InsightIoApiLogV1alpha1Log from "../../log/v1alpha1/log.pb"
|
|
15
15
|
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
16
|
+
import * as InsightIoApiNet_flowV1alpha1Net_flow from "../../net_flow/v1alpha1/net_flow.pb"
|
|
16
17
|
import * as InsightIoApiOverviewV1alpha1Overview from "../../overview/v1alpha1/overview.pb"
|
|
17
18
|
import * as InsightIoApiProbesV1alpha1Probe from "../../probes/v1alpha1/probe.pb"
|
|
18
19
|
import * as InsightIoApiResourceV1alpha1Cluster from "../../resource/v1alpha1/cluster.pb"
|
|
@@ -40,6 +41,7 @@ export enum resourceType {
|
|
|
40
41
|
dataCollection = "dataCollection",
|
|
41
42
|
systemComponents = "systemComponents",
|
|
42
43
|
systemSettings = "systemSettings",
|
|
44
|
+
netFlow = "netFlow",
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
export type empty = {
|
|
@@ -63,6 +65,8 @@ export type GlobalConfig = {
|
|
|
63
65
|
logRetentionTime?: string
|
|
64
66
|
traceDataRetentionTime?: string
|
|
65
67
|
traceApdexThreshold?: string
|
|
68
|
+
k8SEventLogRetentionTime?: string
|
|
69
|
+
skoalaLogRetentionTime?: string
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
export type userinfo = {
|
|
@@ -232,6 +236,9 @@ export class Alert {
|
|
|
232
236
|
static DeleteSilence(req: InsightIoApiAlertV1alpha1Alert.ID, initReq?: fm.InitReq): Promise<empty> {
|
|
233
237
|
return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, empty>(`/apis/insight.io/v1alpha1/alert/silences/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
234
238
|
}
|
|
239
|
+
static ListRuleTemplateSummary(req: InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryResponse> {
|
|
240
|
+
return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryRequest, InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryResponse>(`/apis/insight.io/v1alpha1/alert/rule-template-summary?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
241
|
+
}
|
|
235
242
|
static ListRuleTemplates(req: InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesResponse> {
|
|
236
243
|
return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesRequest, InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesResponse>(`/apis/insight.io/v1alpha1/alert/rule-templates?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
237
244
|
}
|
|
@@ -461,4 +468,9 @@ export class Overview {
|
|
|
461
468
|
static GetServicesMonitor(req: InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorRequest, initReq?: fm.InitReq): Promise<InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorResponse> {
|
|
462
469
|
return fm.fetchReq<InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorRequest, InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorResponse>(`/apis/insight.io/v1alpha1/overview/services/monitor?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
463
470
|
}
|
|
471
|
+
}
|
|
472
|
+
export class NetFlow {
|
|
473
|
+
static GetNetFlow(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiNet_flowV1alpha1Net_flow.GetConfigResponse> {
|
|
474
|
+
return fm.fetchReq<empty, InsightIoApiNet_flowV1alpha1Net_flow.GetConfigResponse>(`/apis/insight.io/v1alpha1/net_flow/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
475
|
+
}
|
|
464
476
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
8
|
+
import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "../../span_metric/v1alpha1/otelspankind.pb"
|
|
8
9
|
|
|
9
10
|
export enum GetResourcesCountRequestResourcesFilter {
|
|
10
11
|
RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
|
|
@@ -86,6 +87,7 @@ export type GetServicesMonitorRequest = {
|
|
|
86
87
|
filters?: GetServicesMonitorRequestMonitorFilter[]
|
|
87
88
|
limit?: number
|
|
88
89
|
time?: string
|
|
90
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
export type GetServicesMonitorResponse = {
|