@daocloud-proto/skoala 0.22.2 → 0.23.0

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.
@@ -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?: string
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
  }
@@ -44,6 +44,21 @@ export enum ClusterPhase {
44
44
  ClusterFailed = "ClusterFailed",
45
45
  }
46
46
 
47
+ export enum ClusterProvider {
48
+ GENERIC = "GENERIC",
49
+ DAOCLOUD_KUBESPRAY = "DAOCLOUD_KUBESPRAY",
50
+ DAOCLOUD_CLUSTER_API = "DAOCLOUD_CLUSTER_API",
51
+ DAOCLOUD_DCE4 = "DAOCLOUD_DCE4",
52
+ REDHAT_OPENSHIFT4 = "REDHAT_OPENSHIFT4",
53
+ SUSE_RANCHER = "SUSE_RANCHER",
54
+ VMWARE_TANZU = "VMWARE_TANZU",
55
+ AWS_EKS = "AWS_EKS",
56
+ ALIYUN_ACK = "ALIYUN_ACK",
57
+ TENCENT_TKE = "TENCENT_TKE",
58
+ HUAWEI_CCE = "HUAWEI_CCE",
59
+ MICROSOFT_AZURE = "MICROSOFT_AZURE",
60
+ }
61
+
47
62
  export enum ResourceKind {
48
63
  RESOURCE_KIND_UNSPECIFIED = "RESOURCE_KIND_UNSPECIFIED",
49
64
  Deployment = "Deployment",
@@ -107,7 +122,9 @@ export enum WorkloadState {
107
122
  export type Cluster = {
108
123
  id?: string
109
124
  name?: string
125
+ clusterProvider?: ClusterProvider
110
126
  clusterPhase?: ClusterPhase
127
+ version?: string
111
128
  }
112
129
 
113
130
  export type Mesh = {
@@ -11,4 +11,5 @@ export enum DashboardType {
11
11
  SesameEnvoy = "SesameEnvoy",
12
12
  Nacos = "Nacos",
13
13
  SentinelDashboard = "SentinelDashboard",
14
+ AppsJvm = "AppsJvm",
14
15
  }
@@ -20,15 +20,14 @@ export type ServiceInsightDetail = {
20
20
 
21
21
  export type InstanceInsightDetail = {
22
22
  enabled?: boolean
23
- brief?: InsightTracingBrief
24
23
  tracingMetrics?: InsightTracingMetrics
25
24
  monitorMetrics?: InsightMonitorMetrics
26
25
  }
27
26
 
28
27
  export type InsightTracingBrief = {
29
- call?: string
30
- successRates?: string
31
- latencies?: string
28
+ reqRate?: string
29
+ errorRate?: string
30
+ repLatency?: string
32
31
  }
33
32
 
34
33
  export type InsightTracingMetrics = {
@@ -67,7 +66,7 @@ export type NacosInsightMetrics = {
67
66
  longPolling?: number
68
67
  }
69
68
 
70
- export type Alter = {
69
+ export type Alert = {
71
70
  ruleName?: string
72
71
  severity?: InsightIoApiAlertV1alpha1Type.Severity
73
72
  targetType?: InsightIoApiAlertV1alpha1Type.TargetType
@@ -28,6 +28,11 @@ export enum ListServiceReqServiceType {
28
28
  K8S = "K8S",
29
29
  }
30
30
 
31
+ export enum ListAlertsReqComponentsType {
32
+ nacos = "nacos",
33
+ gateway = "gateway",
34
+ }
35
+
31
36
  export type ListWorkspaceReq = {
32
37
  name?: string
33
38
  page?: number
@@ -284,8 +289,10 @@ export type ListAlertsReq = {
284
289
  workspaceId?: string
285
290
  clusterName?: string
286
291
  namespaceName?: string
292
+ componentsType?: ListAlertsReqComponentsType
293
+ componentsName?: string
287
294
  }
288
295
 
289
296
  export type ListAlertsRes = {
290
- alters?: SkoalaApiGeneralV1alpha1Insight.Alter[]
297
+ items?: SkoalaApiGeneralV1alpha1Insight.Alert[]
291
298
  }
@@ -59,6 +59,12 @@ export enum LoadBalancePolicyStrategy {
59
59
  RequestHash = "RequestHash",
60
60
  }
61
61
 
62
+ export enum APIBatchOperationReqOperation {
63
+ up = "up",
64
+ down = "down",
65
+ delete = "delete",
66
+ }
67
+
62
68
  export type CreateAPIReq = {
63
69
  workspaceId?: string
64
70
  gatewayName?: string
@@ -247,7 +253,7 @@ type BaseGetAPIRes = {
247
253
  matchRule?: MatchRule
248
254
  advancedPolicy?: AdvancedAPIConfig
249
255
  apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
250
- status?: string
256
+ status?: SkoalaApiHostedV1alpha1Http.APIStatusEnum
251
257
  statusDescription?: string
252
258
  }
253
259
 
@@ -316,4 +322,24 @@ export type APIListReq = {
316
322
  export type APIListRes = {
317
323
  items?: SkoalaApiHostedV1alpha1Http.APIInfo[]
318
324
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
325
+ }
326
+
327
+ export type APIBatchOperationReq = {
328
+ workspaceId?: string
329
+ gatewayName?: string
330
+ clusterName?: string
331
+ namespaceName?: string
332
+ operation?: APIBatchOperationReqOperation
333
+ apiNames?: string[]
334
+ }
335
+
336
+ export type APIBatchOperationRes = {
337
+ result?: boolean
338
+ successApi?: string[]
339
+ failApi?: OperationFailReason[]
340
+ }
341
+
342
+ export type OperationFailReason = {
343
+ apiName?: string
344
+ reason?: string
319
345
  }
@@ -19,6 +19,14 @@ type OneOf<T> =
19
19
  : never)
20
20
  : never);
21
21
 
22
+ export enum GatewayStatus {
23
+ GATEWAY_STATUS_UNSPECIFIED = "GATEWAY_STATUS_UNSPECIFIED",
24
+ Unknown = "Unknown",
25
+ Error = "Error",
26
+ Starting = "Starting",
27
+ Running = "Running",
28
+ }
29
+
22
30
  export enum HealthStatus {
23
31
  HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
24
32
  Healthy = "Healthy",
@@ -76,19 +84,6 @@ export enum IPPolicyStatus {
76
84
  DenyEnabled = "DenyEnabled",
77
85
  }
78
86
 
79
- export enum GatewayConditionType {
80
- TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
81
- Scheduled = "Scheduled",
82
- Ready = "Ready",
83
- }
84
-
85
- export enum GatewayConditionStatus {
86
- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
87
- True = "True",
88
- False = "False",
89
- Unknown = "Unknown",
90
- }
91
-
92
87
  export enum TracingConfigtagType {
93
88
  Literal = "Literal",
94
89
  Header = "Header",
@@ -117,8 +112,7 @@ export type Node = {
117
112
  }
118
113
 
119
114
  export type GatewayCondition = {
120
- type?: GatewayConditionType
121
- status?: GatewayConditionStatus
115
+ status?: GatewayStatus
122
116
  message?: string
123
117
  }
124
118
 
@@ -144,6 +138,7 @@ export type ListAllGatewayReq = {
144
138
  page?: number
145
139
  pageSize?: number
146
140
  filter?: string
141
+ status?: GatewayStatus
147
142
  }
148
143
 
149
144
  export type ListClusterGatewayReq = {
@@ -153,6 +148,7 @@ export type ListClusterGatewayReq = {
153
148
  pageSize?: number
154
149
  namespaceNames?: string[]
155
150
  filter?: string
151
+ status?: GatewayStatus
156
152
  }
157
153
 
158
154
  export type ListGatewayRes = {
@@ -199,11 +195,6 @@ export type ContourPortsString = {
199
195
  xds?: string
200
196
  }
201
197
 
202
- export type HostIPs = {
203
- http?: string
204
- https?: string
205
- }
206
-
207
198
  export type EnvoyService = {
208
199
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
209
200
  http?: Port
@@ -315,6 +306,7 @@ export type TracingConfig = {
315
306
  type BaseEnvoyAdvancedConfig = {
316
307
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
317
308
  numTrustedHops?: number
309
+ allowSidecarInject?: boolean
318
310
  }
319
311
 
320
312
  export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
@@ -351,10 +343,10 @@ export type GetGatewayStatusRes = {
351
343
 
352
344
  export type DeploymentHealth = {
353
345
  name?: string
354
- status?: HealthStatus
355
346
  availableReplicas?: number
356
347
  replicas?: number
357
348
  msgs?: string[]
349
+ status?: HealthStatus
358
350
  }
359
351
 
360
352
  export type ContainerHealth = {
@@ -37,6 +37,13 @@ export enum RouteType {
37
37
  UNKNOW = "UNKNOW",
38
38
  }
39
39
 
40
+ export enum APIStatusEnum {
41
+ valid = "valid",
42
+ invalid = "invalid",
43
+ orphaned = "orphaned",
44
+ unknown = "unknown",
45
+ }
46
+
40
47
  export enum StatusCode {
41
48
  Empty = "Empty",
42
49
  Continue = "Continue",
@@ -111,7 +118,7 @@ export type HeaderRule = BaseHeaderRule
111
118
  & OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
112
119
 
113
120
  export type APIStatus = {
114
- currentStatus?: string
121
+ currentStatus?: APIStatusEnum
115
122
  description?: string
116
123
  conditions?: Conditions[]
117
124
  }
@@ -318,7 +318,7 @@ export type HTTPFaultInjection_Abort = BaseHTTPFaultInjection_Abort
318
318
  export type HTTPRetry = {
319
319
  attempts?: number
320
320
  perTryTimeout?: GoogleProtobufDuration.Duration
321
- retryOn?: string
321
+ retryOn?: string[]
322
322
  }
323
323
 
324
324
  export type WasmPlugin = {
@@ -8,6 +8,7 @@ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.p
8
8
  import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
9
9
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
10
10
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
11
+ import * as SkoalaApiHostedV1alpha1Plugins from "./plugins.pb"
11
12
 
12
13
  export enum NacosConfigFileType {
13
14
  CONFIG_TYPE_UNSPECIFIED = "CONFIG_TYPE_UNSPECIFIED",
@@ -100,8 +101,9 @@ export type Nacos = {
100
101
  version?: string
101
102
  nodeCount?: number
102
103
  healthNodeCount?: number
103
- ipAddress?: string
104
- consoleAddress?: string
104
+ externalEndpoints?: string[]
105
+ internalEndpoints?: string[]
106
+ governMode?: SkoalaApiHostedV1alpha1Plugins.GetGovernResMode
105
107
  database?: NacosDatabase
106
108
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
107
109
  condition?: NacosCondition[]
@@ -406,6 +408,20 @@ export type ListNacosServiceInstanceRes = {
406
408
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
407
409
  }
408
410
 
411
+ export type ListInsForGrafanaReq = {
412
+ workspaceId?: string
413
+ clusterName?: string
414
+ nacosName?: string
415
+ namespaceName?: string
416
+ nacosNamespace?: string
417
+ nacosGroupName?: string
418
+ nacosService?: string
419
+ }
420
+
421
+ export type ListInsForGrafanaRes = {
422
+ ips?: string[]
423
+ }
424
+
409
425
  export type GetNacosServiceInstanceReq = {
410
426
  workspaceId?: string
411
427
  clusterName?: string
@@ -865,4 +881,25 @@ export type GetNacosGrafanaReq = {
865
881
  export type GetNacosGrafanaRes = {
866
882
  url?: string
867
883
  zhUrl?: string
884
+ }
885
+
886
+ export type GetResourceInfoReq = {
887
+ workspaceId?: string
888
+ clusterName?: string
889
+ nacosName?: string
890
+ namespaceName?: string
891
+ }
892
+
893
+ export type GetResourceInfoResResourceInfo = {
894
+ name?: string
895
+ workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
896
+ createAt?: string
897
+ consoleAddress?: string
898
+ }
899
+
900
+ export type GetResourceInfoRes = {
901
+ clusterName?: string
902
+ namespaceName?: string
903
+ nacos?: GetResourceInfoResResourceInfo
904
+ sentinel?: GetResourceInfoResResourceInfo
868
905
  }
@@ -91,6 +91,8 @@ export type GetSentinelDashGrafanaReq = {
91
91
  namespaceName?: string
92
92
  sentinelName?: string
93
93
  instanceIp?: string
94
+ from?: string
95
+ to?: string
94
96
  }
95
97
 
96
98
  export type GetSentinelDashGrafanaRes = {
@@ -103,13 +105,15 @@ export type GetAppsSentinelGrafanaReq = {
103
105
  clusterName?: string
104
106
  sentinel?: string
105
107
  app?: string
106
- instanceIp?: string
108
+ instanceIps?: string[]
107
109
  resource?: string
110
+ from?: string
111
+ to?: string
108
112
  }
109
113
 
110
114
  export type GetAppsSentinelGrafanaRes = {
111
- url?: string
112
- zhUrl?: string
115
+ url?: string[]
116
+ zhUrl?: string[]
113
117
  }
114
118
 
115
119
  export type Resource = {
@@ -122,6 +126,7 @@ export type ListResourceReq = {
122
126
  namespaceName?: string
123
127
  sentinelName?: string
124
128
  appName?: string
129
+ instanceIps?: string[]
125
130
  }
126
131
 
127
132
  export type ListResourceRes = {
@@ -187,6 +192,7 @@ export type GetClusterFlowRes = {
187
192
  maxQps?: number
188
193
  clients?: string[]
189
194
  remainingClients?: string[]
195
+ tokenServerName?: string
190
196
  }
191
197
 
192
198
  export type ListTokenServerReq = {
@@ -11,13 +11,13 @@ import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
11
11
  import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
12
12
  import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
13
13
  import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
14
- import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
14
+ import * as SkoalaApiHostedV1alpha1Api_log from "../../hosted/v1alpha1/api_log.pb"
15
15
  import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
16
+ import * as SkoalaApiHostedV1alpha1Gateway_log from "../../hosted/v1alpha1/gateway_log.pb"
16
17
  import * as SkoalaApiHostedV1alpha1Gateway_overview from "../../hosted/v1alpha1/gateway_overview.pb"
17
18
  import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
18
19
  import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
19
20
  import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
20
- import * as SkoalaApiHostedV1alpha1Gatewaylog from "../../hosted/v1alpha1/gatewaylog.pb"
21
21
  import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
22
22
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
23
23
  import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
@@ -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"})
@@ -96,7 +107,7 @@ export class Skoala {
96
107
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.CheckMidModuleReq, SkoalaApiGeneralV1alpha1Skoala.CheckMidModuleRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/check_mid_module?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
97
108
  }
98
109
  static ListAlerts(req: SkoalaApiGeneralV1alpha1Skoala.ListAlertsReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListAlertsRes> {
99
- return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListAlertsReq, SkoalaApiGeneralV1alpha1Skoala.ListAlertsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/alters?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName"])}`, {...initReq, method: "GET"})
110
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListAlertsReq, SkoalaApiGeneralV1alpha1Skoala.ListAlertsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/${req["componentsType"]}/${req["componentsName"]}/alerts?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "componentsType", "componentsName"])}`, {...initReq, method: "GET"})
100
111
  }
101
112
  }
102
113
  export class Registry {
@@ -212,6 +223,9 @@ export class Nacos {
212
223
  static ListServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes> {
213
224
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
214
225
  }
226
+ static ListInsForGrafana(req: SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaRes> {
227
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaReq, SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/ins_for_grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
228
+ }
215
229
  static GetServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceRes> {
216
230
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService", "nacosInstanceId"])}`, {...initReq, method: "GET"})
217
231
  }
@@ -281,6 +295,9 @@ export class Nacos {
281
295
  static UpdateUserPassword(req: SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
282
296
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/users`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
283
297
  }
298
+ static GetResourceInfo(req: SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes> {
299
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/info?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
300
+ }
284
301
  }
285
302
  export class Sentinel {
286
303
  static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
@@ -494,9 +511,6 @@ export class Gateway {
494
511
  static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
495
512
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
496
513
  }
497
- static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
498
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
499
- }
500
514
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
501
515
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
502
516
  }
@@ -512,11 +526,8 @@ export class Gateway {
512
526
  static ListGatewayPodsByType(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes> {
513
527
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/type/${req["component"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "component"])}`, {...initReq, method: "GET"})
514
528
  }
515
- static GetPodContainerLog(req: SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogRes> {
516
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pod/${req["podName"]}/container/${req["container"]}/logs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName", "container"])}`, {...initReq, method: "GET"})
517
- }
518
- static GetGatewayPodAlert(req: SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes> {
519
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/alert/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
529
+ static GetPodContainerLog(req: SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogRes> {
530
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogReq, SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pod/${req["podName"]}/container/${req["container"]}/logs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName", "container"])}`, {...initReq, method: "GET"})
520
531
  }
521
532
  static QueryGatewayDeploymentsMetricRange(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes> {
522
533
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/deployments/queryrange?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
@@ -530,14 +541,14 @@ export class Gateway {
530
541
  static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes> {
531
542
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
532
543
  }
533
- static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
534
- return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.SearchLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
544
+ static ListGatewayLog(req: SkoalaApiHostedV1alpha1Api_log.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api_log.SearchLogRes> {
545
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api_log.SearchLogReq, SkoalaApiHostedV1alpha1Api_log.SearchLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
535
546
  }
536
- static GatewayLogExportURL(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes> {
537
- return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
547
+ static GatewayLogExportURL(req: SkoalaApiHostedV1alpha1Api_log.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api_log.ExportLogURLRes> {
548
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api_log.SearchLogReq, SkoalaApiHostedV1alpha1Api_log.ExportLogURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
538
549
  }
539
- static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
540
- return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
550
+ static GatewayLogExport(req: SkoalaApiHostedV1alpha1Api_log.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
551
+ return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Api_log.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
541
552
  }
542
553
  static CreateSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes> {
543
554
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -630,6 +641,9 @@ export class GatewayAPI {
630
641
  static ListAPIGroup(req: SkoalaApiHostedV1alpha1Api.ListAPIGroupReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ListAPIGroupRes> {
631
642
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ListAPIGroupReq, SkoalaApiHostedV1alpha1Api.ListAPIGroupRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/groups?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
632
643
  }
644
+ static BatchOperationAPI(req: SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIBatchOperationRes> {
645
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, SkoalaApiHostedV1alpha1Api.APIBatchOperationRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/batch`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
646
+ }
633
647
  }
634
648
  export class GatewayService {
635
649
  static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -9,6 +9,7 @@ export enum FeatureGateIDEnum {
9
9
  LOGGING = "LOGGING",
10
10
  TRACING = "TRACING",
11
11
  GRAPH_VIRTUAL_NODE = "GRAPH_VIRTUAL_NODE",
12
+ LOG_ALERT = "LOG_ALERT",
12
13
  }
13
14
 
14
15
  export type FeatureGateID = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.22.2",
3
+ "version": "0.23.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {