@daocloud-proto/skoala 0.22.2-30 → 0.22.2-40
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.
- package/alert/v1alpha1/alert.pb.ts +35 -0
- package/alert/v1alpha1/notify.pb.ts +80 -2
- package/alert/v1alpha1/type.pb.ts +9 -0
- package/api/general/v1alpha1/insight.pb.ts +3 -5
- package/api/skoala/v1alpha1/skoala.pb.ts +11 -0
- package/feature_gate/v1alpha1/feature_gate.pb.ts +1 -0
- package/package.json +1 -1
- package/span_metric/v1alpha1/span_metric.pb.ts +26 -18
- package/tracing/v1alpha1/tracing.pb.ts +7 -5
|
@@ -120,6 +120,8 @@ export type RuleSummary = {
|
|
|
120
120
|
status?: InsightIoApiAlertV1alpha1Type.RuleStatus
|
|
121
121
|
description?: string
|
|
122
122
|
createAt?: string
|
|
123
|
+
logFilterCondition?: string
|
|
124
|
+
logQueryString?: string
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
export type Rule = {
|
|
@@ -140,6 +142,8 @@ export type Rule = {
|
|
|
140
142
|
description?: string
|
|
141
143
|
createAt?: string
|
|
142
144
|
updateAt?: string
|
|
145
|
+
logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
|
|
146
|
+
logQueryString?: string
|
|
143
147
|
}
|
|
144
148
|
|
|
145
149
|
export type AddGroupRuleRequest = {
|
|
@@ -158,6 +162,8 @@ export type CreateGroupRule = {
|
|
|
158
162
|
severity?: InsightIoApiAlertV1alpha1Type.Severity
|
|
159
163
|
labels?: {[key: string]: string}
|
|
160
164
|
annotations?: {[key: string]: string}
|
|
165
|
+
logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
|
|
166
|
+
logQueryString?: string
|
|
161
167
|
}
|
|
162
168
|
|
|
163
169
|
export type UpdateRuleRequest = {
|
|
@@ -171,6 +177,8 @@ export type UpdateRuleRequest = {
|
|
|
171
177
|
severity?: InsightIoApiAlertV1alpha1Type.Severity
|
|
172
178
|
labels?: {[key: string]: string}
|
|
173
179
|
annotations?: {[key: string]: string}
|
|
180
|
+
logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
|
|
181
|
+
logQueryString?: string
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
export type GroupRule = {
|
|
@@ -218,6 +226,33 @@ export type AlertSummary = {
|
|
|
218
226
|
lastSent?: string
|
|
219
227
|
}
|
|
220
228
|
|
|
229
|
+
export type GetAlertRequest = {
|
|
230
|
+
id?: string
|
|
231
|
+
resolved?: boolean
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type Alert = {
|
|
235
|
+
id?: string
|
|
236
|
+
groupName?: string
|
|
237
|
+
groupId?: string
|
|
238
|
+
ruleName?: string
|
|
239
|
+
ruleId?: string
|
|
240
|
+
clusterName?: string
|
|
241
|
+
namespace?: string
|
|
242
|
+
targetType?: InsightIoApiAlertV1alpha1Type.TargetType
|
|
243
|
+
target?: string
|
|
244
|
+
severity?: InsightIoApiAlertV1alpha1Type.Severity
|
|
245
|
+
value?: string
|
|
246
|
+
notifyResponse?: string
|
|
247
|
+
description?: string
|
|
248
|
+
promQL?: string
|
|
249
|
+
labels?: {[key: string]: string}
|
|
250
|
+
annotations?: {[key: string]: string}
|
|
251
|
+
startAt?: string
|
|
252
|
+
updateAt?: string
|
|
253
|
+
lastSent?: string
|
|
254
|
+
}
|
|
255
|
+
|
|
221
256
|
export type CountAlertRequest = {
|
|
222
257
|
resolved?: boolean
|
|
223
258
|
clusterName?: string
|
|
@@ -21,6 +21,14 @@ export enum ReceiverType {
|
|
|
21
21
|
email = "email",
|
|
22
22
|
dingtalk = "dingtalk",
|
|
23
23
|
wecom = "wecom",
|
|
24
|
+
sms = "sms",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum ProviderType {
|
|
28
|
+
PROVIDER_TYPE_UNSPECIFIED = "PROVIDER_TYPE_UNSPECIFIED",
|
|
29
|
+
aliyun = "aliyun",
|
|
30
|
+
tencent = "tencent",
|
|
31
|
+
custom = "custom",
|
|
24
32
|
}
|
|
25
33
|
|
|
26
34
|
|
|
@@ -32,7 +40,7 @@ type BaseReceiver = {
|
|
|
32
40
|
}
|
|
33
41
|
|
|
34
42
|
export type Receiver = BaseReceiver
|
|
35
|
-
& OneOf<{ webhook: WebhookConfig; email: EmailConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
43
|
+
& OneOf<{ webhook: WebhookConfig; email: EmailConfig; wecom: WecomConfig; dingtalk: DingtalkConfig; sms: SmsConfig }>
|
|
36
44
|
|
|
37
45
|
export type WebhookConfig = {
|
|
38
46
|
url?: string
|
|
@@ -51,6 +59,16 @@ export type EmailConfig = {
|
|
|
51
59
|
to?: string[]
|
|
52
60
|
}
|
|
53
61
|
|
|
62
|
+
export type SmsConfig = {
|
|
63
|
+
contact?: SmsConfigContact[]
|
|
64
|
+
provider?: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type SmsConfigContact = {
|
|
68
|
+
name?: string
|
|
69
|
+
phone?: string
|
|
70
|
+
}
|
|
71
|
+
|
|
54
72
|
export type ListReceiversRequest = {
|
|
55
73
|
name?: string
|
|
56
74
|
type?: ReceiverType
|
|
@@ -133,8 +151,68 @@ export type CreateTemplateRequest = {
|
|
|
133
151
|
}
|
|
134
152
|
|
|
135
153
|
export type TemplateBody = {
|
|
136
|
-
email?:
|
|
154
|
+
email?: emailBody
|
|
137
155
|
wecom?: string
|
|
138
156
|
dingtalk?: string
|
|
139
157
|
webhook?: string
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type emailBody = {
|
|
161
|
+
subject?: string
|
|
162
|
+
body?: string
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type ProviderAliyunConfig = {
|
|
166
|
+
signName?: string
|
|
167
|
+
templateCode?: string
|
|
168
|
+
accessKeyId?: string
|
|
169
|
+
accessKeySecret?: string
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type ProviderTencentConfig = {
|
|
173
|
+
templateId?: string
|
|
174
|
+
smsSdkAppId?: string
|
|
175
|
+
sign?: string
|
|
176
|
+
secretId?: string
|
|
177
|
+
secretKey?: string
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type ProviderCustomConfig = {
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
type BaseProvider = {
|
|
185
|
+
name?: string
|
|
186
|
+
type?: ProviderType
|
|
187
|
+
template?: string
|
|
188
|
+
createAt?: string
|
|
189
|
+
updateAt?: string
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type Provider = BaseProvider
|
|
193
|
+
& OneOf<{ aliyun: ProviderAliyunConfig; tencent: ProviderTencentConfig; custom: ProviderCustomConfig }>
|
|
194
|
+
|
|
195
|
+
export type ListProvidersRequest = {
|
|
196
|
+
name?: string
|
|
197
|
+
page?: number
|
|
198
|
+
pageSize?: number
|
|
199
|
+
sorts?: string[]
|
|
200
|
+
exactSearch?: boolean
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type ListProvidersResponse = {
|
|
204
|
+
items?: Provider[]
|
|
205
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export type GetProvidersRequest = {
|
|
209
|
+
name?: string
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export type DeleteProvidersRequest = {
|
|
213
|
+
name?: string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type ProviderDataResponse = {
|
|
217
|
+
data?: Provider
|
|
140
218
|
}
|
|
@@ -40,4 +40,13 @@ export enum AlertStatus {
|
|
|
40
40
|
ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
|
|
41
41
|
ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
|
|
42
42
|
ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export enum RuleFilterCondition {
|
|
46
|
+
FILTER_CONDITION_UNSPECIFIED = "FILTER_CONDITION_UNSPECIFIED",
|
|
47
|
+
AND = "AND",
|
|
48
|
+
OR = "OR",
|
|
49
|
+
REG = "REG",
|
|
50
|
+
FUZZINESS = "FUZZINESS",
|
|
51
|
+
WILD_CARD = "WILD_CARD",
|
|
43
52
|
}
|
|
@@ -13,22 +13,20 @@ export type InsightBrief = {
|
|
|
13
13
|
|
|
14
14
|
export type ServiceInsightDetail = {
|
|
15
15
|
enabled?: boolean
|
|
16
|
-
brief?: InsightTracingBrief
|
|
17
16
|
tracingMetrics?: InsightTracingMetrics
|
|
18
17
|
monitorMetrics?: InsightMonitorMetrics
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export type InstanceInsightDetail = {
|
|
22
21
|
enabled?: boolean
|
|
23
|
-
brief?: InsightTracingBrief
|
|
24
22
|
tracingMetrics?: InsightTracingMetrics
|
|
25
23
|
monitorMetrics?: InsightMonitorMetrics
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
export type InsightTracingBrief = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
reqRate?: string
|
|
28
|
+
errorRate?: string
|
|
29
|
+
repLatency?: string
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
export type InsightTracingMetrics = {
|
|
@@ -27,6 +27,17 @@ import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtu
|
|
|
27
27
|
import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
|
|
28
28
|
import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
|
|
29
29
|
import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
|
|
30
|
+
|
|
31
|
+
export enum AuditVerb {
|
|
32
|
+
AUDIT_VERB_UNSPECIFIED = "AUDIT_VERB_UNSPECIFIED",
|
|
33
|
+
Create = "Create",
|
|
34
|
+
Retrieve = "Retrieve",
|
|
35
|
+
Update = "Update",
|
|
36
|
+
Delete = "Delete",
|
|
37
|
+
Restart = "Restart",
|
|
38
|
+
Upsert = "Upsert",
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
export class Hive {
|
|
31
42
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
32
43
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
package/package.json
CHANGED
|
@@ -46,35 +46,43 @@ type BaseGetApdexRequest = {
|
|
|
46
46
|
export type GetApdexRequest = BaseGetApdexRequest
|
|
47
47
|
& OneOf<{ cluster: string; clusterName: string }>
|
|
48
48
|
|
|
49
|
+
export type GetServiceDetailResponse = {
|
|
50
|
+
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
51
|
+
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
52
|
+
p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
53
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
54
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type GetOperationDetailRequest = {
|
|
58
|
+
clusterName?: string
|
|
59
|
+
namespace?: string
|
|
60
|
+
serviceName?: string
|
|
61
|
+
sort?: string
|
|
62
|
+
page?: number
|
|
63
|
+
pageSize?: number
|
|
64
|
+
extensionFilters?: string
|
|
65
|
+
endTime?: string
|
|
66
|
+
lookback?: string
|
|
67
|
+
step?: string
|
|
68
|
+
ratePer?: string
|
|
69
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
70
|
+
}
|
|
71
|
+
|
|
49
72
|
export type MetricsWithOperation = {
|
|
50
73
|
operationName?: string
|
|
74
|
+
metricsMap?: {[key: string]: MetricsEntity}
|
|
51
75
|
spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind
|
|
52
|
-
metricGroups?: MetricsGroup[]
|
|
53
76
|
}
|
|
54
77
|
|
|
55
|
-
export type
|
|
78
|
+
export type MetricsEntity = {
|
|
56
79
|
metrics?: InsightIoApiMetricV1alpha1Metric.samplePair[]
|
|
57
|
-
metricsLabel?: string
|
|
58
80
|
metricsAvg?: number
|
|
59
81
|
}
|
|
60
82
|
|
|
61
|
-
export type GetServiceDetailResponse = {
|
|
62
|
-
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
63
|
-
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
64
|
-
p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
65
|
-
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
66
|
-
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
67
|
-
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
68
|
-
totalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
69
|
-
avgReqRate?: number
|
|
70
|
-
avgRepLatency?: number
|
|
71
|
-
avgErrorRate?: number
|
|
72
|
-
totalCalls?: number
|
|
73
|
-
apdex?: number
|
|
74
|
-
}
|
|
75
|
-
|
|
76
83
|
export type GetOperationDetailResponse = {
|
|
77
84
|
metrics?: MetricsWithOperation[]
|
|
85
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
export type GetServicesRequest = {
|
|
@@ -32,7 +32,13 @@ export type BatchQueryBaseRequest = {
|
|
|
32
32
|
serviceName?: string[]
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export type
|
|
35
|
+
export type QueryOperationsRequest = {
|
|
36
|
+
clusterName?: string
|
|
37
|
+
namespace?: string
|
|
38
|
+
serviceName?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type QueryOperationsResponse = {
|
|
36
42
|
operations?: string[]
|
|
37
43
|
}
|
|
38
44
|
|
|
@@ -48,10 +54,6 @@ export type TraceRequestById = BaseTraceRequestById
|
|
|
48
54
|
export type ListServiceNamesRequest = {
|
|
49
55
|
clusterName?: string
|
|
50
56
|
namespace?: string
|
|
51
|
-
serviceName?: string
|
|
52
|
-
spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
53
|
-
start?: string
|
|
54
|
-
end?: string
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
export type GetServiceNamesResponse = {
|