@daocloud-proto/skoala 0.24.1 → 0.25.0-4
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 +40 -1
- package/api/general/v1alpha1/skoala.pb.ts +1 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +31 -0
- package/api/hosted/v1alpha1/mesh.pb.ts +453 -3
- package/api/hosted/v1alpha1/skoala_plugins.pb.ts +12 -1
- package/api/skoala/v1alpha1/skoala.pb.ts +112 -4
- package/event/v1alpha1/event.pb.ts +126 -0
- package/log/v1alpha1/log.pb.ts +14 -1
- package/package.json +1 -1
- package/resource/v1alpha1/pod.pb.ts +14 -2
- package/resource/v1alpha1/workload.pb.ts +4 -3
- package/span_metric/v1alpha1/span_metric.pb.ts +31 -20
- package/tracing/v1alpha1/model.pb.ts +1 -1
- package/tracing/v1alpha1/tracing.pb.ts +12 -7
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
7
8
|
import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
9
|
import * as InsightIoApiAlertV1alpha1Notify from "./notify.pb"
|
|
9
10
|
import * as InsightIoApiAlertV1alpha1Type from "./type.pb"
|
|
@@ -120,8 +121,9 @@ export type RuleSummary = {
|
|
|
120
121
|
status?: InsightIoApiAlertV1alpha1Type.RuleStatus
|
|
121
122
|
description?: string
|
|
122
123
|
createAt?: string
|
|
123
|
-
logFilterCondition?:
|
|
124
|
+
logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
|
|
124
125
|
logQueryString?: string
|
|
126
|
+
duration?: string
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
export type Rule = {
|
|
@@ -310,4 +312,41 @@ export type AlertHistoryRetentionPeriod = {
|
|
|
310
312
|
|
|
311
313
|
export type CleanAlertHistoryResponse = {
|
|
312
314
|
num?: string
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export type PreviewRuleRequestParams = {
|
|
318
|
+
start?: string
|
|
319
|
+
end?: string
|
|
320
|
+
step?: number
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export type PreviewRuleRequestGroup = {
|
|
324
|
+
clusterName?: string
|
|
325
|
+
namespace?: string
|
|
326
|
+
targetType?: InsightIoApiAlertV1alpha1Type.TargetType
|
|
327
|
+
targets?: string[]
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export type PreviewRuleRequestAlertRule = {
|
|
331
|
+
source?: InsightIoApiAlertV1alpha1Type.RuleSource
|
|
332
|
+
expr?: string
|
|
333
|
+
thresholdSymbol?: string
|
|
334
|
+
thresholdNum?: number
|
|
335
|
+
duration?: string
|
|
336
|
+
logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
|
|
337
|
+
logQueryString?: string
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export type PreviewRuleRequest = {
|
|
341
|
+
params?: PreviewRuleRequestParams
|
|
342
|
+
group?: PreviewRuleRequestGroup
|
|
343
|
+
rule?: PreviewRuleRequestAlertRule
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export type PreviewRuleResponse = {
|
|
347
|
+
matrix?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export type GetSMTPStatusResponse = {
|
|
351
|
+
enabled?: boolean
|
|
313
352
|
}
|
|
@@ -27,6 +27,12 @@ export enum GatewayStatus {
|
|
|
27
27
|
Running = "Running",
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export enum SesameGatewayResourceType {
|
|
31
|
+
SESAME_RESOURCE_VIRTUALHOST = "SESAME_RESOURCE_VIRTUALHOST",
|
|
32
|
+
SESAME_RESOURCE_EXTERNALSERVICE = "SESAME_RESOURCE_EXTERNALSERVICE",
|
|
33
|
+
SESAME_RESOURCE_API = "SESAME_RESOURCE_API",
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
export enum HealthStatus {
|
|
31
37
|
HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
|
|
32
38
|
Healthy = "Healthy",
|
|
@@ -250,6 +256,24 @@ export type UpdateGatewayRes = {
|
|
|
250
256
|
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
251
257
|
}
|
|
252
258
|
|
|
259
|
+
export type DeleteGatewayCheckReq = {
|
|
260
|
+
workspaceId?: string
|
|
261
|
+
clusterName?: string
|
|
262
|
+
namespaceName?: string
|
|
263
|
+
gatewayName?: string
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export type DeleteGatewayCheckRes = {
|
|
267
|
+
canDelete?: boolean
|
|
268
|
+
gatewayUsage?: GatewayUsage[]
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type GatewayUsage = {
|
|
272
|
+
sesameResourceType?: SesameGatewayResourceType
|
|
273
|
+
resourceCount?: number
|
|
274
|
+
canDelete?: boolean
|
|
275
|
+
}
|
|
276
|
+
|
|
253
277
|
export type DeleteGatewayReq = {
|
|
254
278
|
workspaceId?: string
|
|
255
279
|
clusterName?: string
|
|
@@ -271,6 +295,7 @@ export type GatewayConfig = {
|
|
|
271
295
|
|
|
272
296
|
export type PluginConfig = {
|
|
273
297
|
globalRatelimitConfig?: GlobalRatelimitConfig
|
|
298
|
+
golbalAuthConfig?: GlobalAuthConfig
|
|
274
299
|
}
|
|
275
300
|
|
|
276
301
|
export type GlobalRatelimitConfig = {
|
|
@@ -279,6 +304,12 @@ export type GlobalRatelimitConfig = {
|
|
|
279
304
|
domain?: string
|
|
280
305
|
}
|
|
281
306
|
|
|
307
|
+
export type GlobalAuthConfig = {
|
|
308
|
+
enabled?: boolean
|
|
309
|
+
authPluginName?: string
|
|
310
|
+
authContext?: {[key: string]: string}
|
|
311
|
+
}
|
|
312
|
+
|
|
282
313
|
|
|
283
314
|
type BaseContourAdvancedConfig = {
|
|
284
315
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
@@ -56,6 +56,16 @@ export enum ServiceType {
|
|
|
56
56
|
DUBBO = "DUBBO",
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
export enum Rule {
|
|
60
|
+
RULE_UNSPECIFIED = "RULE_UNSPECIFIED",
|
|
61
|
+
RULE_CONN_POOL = "RULE_CONN_POOL",
|
|
62
|
+
RULE_OUTLIER_DETECTION = "RULE_OUTLIER_DETECTION",
|
|
63
|
+
RULE_REWRITE = "RULE_REWRITE",
|
|
64
|
+
RULE_FAULT = "RULE_FAULT",
|
|
65
|
+
RULE_RETRY = "RULE_RETRY",
|
|
66
|
+
RULE_TIMEOUT = "RULE_TIMEOUT",
|
|
67
|
+
}
|
|
68
|
+
|
|
59
69
|
export enum GovernProtocol {
|
|
60
70
|
GOVERN_PROTOCOL_UNSPECIFIED = "GOVERN_PROTOCOL_UNSPECIFIED",
|
|
61
71
|
GOVERN_TCP = "GOVERN_TCP",
|
|
@@ -247,8 +257,20 @@ export type ListServiceGovernRes = {
|
|
|
247
257
|
export type ListServiceGovern = {
|
|
248
258
|
port?: number
|
|
249
259
|
lb?: LB
|
|
250
|
-
updateTime?: number
|
|
251
260
|
protocol?: GovernProtocol
|
|
261
|
+
plugins?: ServiceIstioPluginInfo[]
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type ListPortReq = {
|
|
265
|
+
workspaceId?: string
|
|
266
|
+
meshId?: string
|
|
267
|
+
namespaceName?: string
|
|
268
|
+
serviceName?: string
|
|
269
|
+
ruleName?: Rule
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export type ListPortRes = {
|
|
273
|
+
ports?: number[]
|
|
252
274
|
}
|
|
253
275
|
|
|
254
276
|
export type CreateServiceIstioPluginReq = {
|
|
@@ -279,6 +301,9 @@ export type GetServiceIstioPluginReq = {
|
|
|
279
301
|
}
|
|
280
302
|
|
|
281
303
|
export type GetServiceIstioPluginRes = {
|
|
304
|
+
port?: number
|
|
305
|
+
pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
|
|
306
|
+
pluginName?: string
|
|
282
307
|
istioPlugin?: IstioPlugin
|
|
283
308
|
}
|
|
284
309
|
|
|
@@ -349,8 +374,8 @@ export type ListServiceIstioPluginRes = {
|
|
|
349
374
|
|
|
350
375
|
export type ServiceIstioPluginInfo = {
|
|
351
376
|
pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
|
|
352
|
-
pluginName?: string
|
|
353
|
-
ports?: number
|
|
377
|
+
pluginName?: string
|
|
378
|
+
ports?: number
|
|
354
379
|
showName?: string
|
|
355
380
|
}
|
|
356
381
|
|
|
@@ -511,4 +536,429 @@ export type GetServiceGovernRes = {
|
|
|
511
536
|
timeout?: GoogleProtobufDuration.Duration
|
|
512
537
|
fault?: HTTPFaultInjection
|
|
513
538
|
retries?: HTTPRetry
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export type ListLbReq = {
|
|
542
|
+
workspaceId?: string
|
|
543
|
+
meshId?: string
|
|
544
|
+
namespaceName?: string
|
|
545
|
+
serviceName?: string
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export type ListLbRes = {
|
|
549
|
+
items?: ListLb[]
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export type ListLb = {
|
|
553
|
+
port?: number
|
|
554
|
+
lb?: LB
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export type GetLbReq = {
|
|
558
|
+
workspaceId?: string
|
|
559
|
+
meshId?: string
|
|
560
|
+
namespaceName?: string
|
|
561
|
+
serviceName?: string
|
|
562
|
+
port?: number
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export type GetLbRes = {
|
|
566
|
+
port?: number
|
|
567
|
+
lb?: LB
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export type UpdateLbReq = {
|
|
571
|
+
workspaceId?: string
|
|
572
|
+
meshId?: string
|
|
573
|
+
namespaceName?: string
|
|
574
|
+
serviceName?: string
|
|
575
|
+
port?: number
|
|
576
|
+
lb?: LB
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export type UpdateLbRes = {
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export type ListConnectionPoolReq = {
|
|
583
|
+
workspaceId?: string
|
|
584
|
+
meshId?: string
|
|
585
|
+
namespaceName?: string
|
|
586
|
+
serviceName?: string
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export type ListConnectionPoolRes = {
|
|
590
|
+
items?: ListConnectionPool[]
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export type ListConnectionPool = {
|
|
594
|
+
port?: number
|
|
595
|
+
cp?: ConnectionPool
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export type GetConnectionPoolReq = {
|
|
599
|
+
workspaceId?: string
|
|
600
|
+
meshId?: string
|
|
601
|
+
namespaceName?: string
|
|
602
|
+
serviceName?: string
|
|
603
|
+
port?: number
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export type GetConnectionPoolRes = {
|
|
607
|
+
port?: number
|
|
608
|
+
cp?: ConnectionPool
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export type CreateConnectionPoolReq = {
|
|
612
|
+
workspaceId?: string
|
|
613
|
+
meshId?: string
|
|
614
|
+
namespaceName?: string
|
|
615
|
+
serviceName?: string
|
|
616
|
+
port?: number
|
|
617
|
+
cp?: ConnectionPool
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export type CreateConnectionPoolRes = {
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export type UpdateConnectionPoolReq = {
|
|
624
|
+
workspaceId?: string
|
|
625
|
+
meshId?: string
|
|
626
|
+
namespaceName?: string
|
|
627
|
+
serviceName?: string
|
|
628
|
+
port?: number
|
|
629
|
+
cp?: ConnectionPool
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export type UpdateConnectionPoolRes = {
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export type DeleteConnectionPoolReq = {
|
|
636
|
+
workspaceId?: string
|
|
637
|
+
meshId?: string
|
|
638
|
+
namespaceName?: string
|
|
639
|
+
serviceName?: string
|
|
640
|
+
port?: number
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export type DeleteConnectionPoolRes = {
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export type ListOutlierDetectionReq = {
|
|
647
|
+
workspaceId?: string
|
|
648
|
+
meshId?: string
|
|
649
|
+
namespaceName?: string
|
|
650
|
+
serviceName?: string
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export type ListOutlierDetectionRes = {
|
|
654
|
+
items?: ListOutlierDetection[]
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
export type ListOutlierDetection = {
|
|
658
|
+
port?: number
|
|
659
|
+
od?: OutlierDetection
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export type GetOutlierDetectionReq = {
|
|
663
|
+
workspaceId?: string
|
|
664
|
+
meshId?: string
|
|
665
|
+
namespaceName?: string
|
|
666
|
+
serviceName?: string
|
|
667
|
+
port?: number
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export type GetOutlierDetectionRes = {
|
|
671
|
+
port?: number
|
|
672
|
+
od?: OutlierDetection
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export type CreateOutlierDetectionReq = {
|
|
676
|
+
workspaceId?: string
|
|
677
|
+
meshId?: string
|
|
678
|
+
namespaceName?: string
|
|
679
|
+
serviceName?: string
|
|
680
|
+
port?: number
|
|
681
|
+
od?: OutlierDetection
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export type CreateOutlierDetectionRes = {
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export type UpdateOutlierDetectionReq = {
|
|
688
|
+
workspaceId?: string
|
|
689
|
+
meshId?: string
|
|
690
|
+
namespaceName?: string
|
|
691
|
+
serviceName?: string
|
|
692
|
+
port?: number
|
|
693
|
+
od?: OutlierDetection
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export type UpdateOutlierDetectionRes = {
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export type DeleteOutlierDetectionReq = {
|
|
700
|
+
workspaceId?: string
|
|
701
|
+
meshId?: string
|
|
702
|
+
namespaceName?: string
|
|
703
|
+
serviceName?: string
|
|
704
|
+
port?: number
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export type DeleteOutlierDetectionRes = {
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export type ListRewriteReq = {
|
|
711
|
+
workspaceId?: string
|
|
712
|
+
meshId?: string
|
|
713
|
+
namespaceName?: string
|
|
714
|
+
serviceName?: string
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export type ListRewriteRes = {
|
|
718
|
+
items?: ListRewrite[]
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export type ListRewrite = {
|
|
722
|
+
port?: number
|
|
723
|
+
rewrite?: HTTPRewrite
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export type GetRewriteReq = {
|
|
727
|
+
workspaceId?: string
|
|
728
|
+
meshId?: string
|
|
729
|
+
namespaceName?: string
|
|
730
|
+
serviceName?: string
|
|
731
|
+
port?: number
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export type GetRewriteRes = {
|
|
735
|
+
port?: number
|
|
736
|
+
rewrite?: HTTPRewrite
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export type CreateRewriteReq = {
|
|
740
|
+
workspaceId?: string
|
|
741
|
+
meshId?: string
|
|
742
|
+
namespaceName?: string
|
|
743
|
+
serviceName?: string
|
|
744
|
+
port?: number
|
|
745
|
+
rewrite?: HTTPRewrite
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export type CreateRewriteRes = {
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
export type UpdateRewriteReq = {
|
|
752
|
+
workspaceId?: string
|
|
753
|
+
meshId?: string
|
|
754
|
+
namespaceName?: string
|
|
755
|
+
serviceName?: string
|
|
756
|
+
port?: number
|
|
757
|
+
rewrite?: HTTPRewrite
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export type UpdateRewriteRes = {
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export type DeleteRewriteReq = {
|
|
764
|
+
workspaceId?: string
|
|
765
|
+
meshId?: string
|
|
766
|
+
namespaceName?: string
|
|
767
|
+
serviceName?: string
|
|
768
|
+
port?: number
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export type DeleteRewriteRes = {
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
export type ListFaultReq = {
|
|
775
|
+
workspaceId?: string
|
|
776
|
+
meshId?: string
|
|
777
|
+
namespaceName?: string
|
|
778
|
+
serviceName?: string
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export type ListFaultRes = {
|
|
782
|
+
items?: ListFault[]
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export type ListFault = {
|
|
786
|
+
port?: number
|
|
787
|
+
fault?: HTTPFaultInjection
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export type GetFaultReq = {
|
|
791
|
+
workspaceId?: string
|
|
792
|
+
meshId?: string
|
|
793
|
+
namespaceName?: string
|
|
794
|
+
serviceName?: string
|
|
795
|
+
port?: number
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export type GetFaultRes = {
|
|
799
|
+
port?: number
|
|
800
|
+
fault?: HTTPFaultInjection
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export type CreateFaultReq = {
|
|
804
|
+
workspaceId?: string
|
|
805
|
+
meshId?: string
|
|
806
|
+
namespaceName?: string
|
|
807
|
+
serviceName?: string
|
|
808
|
+
port?: number
|
|
809
|
+
fault?: HTTPFaultInjection
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export type CreateFaultRes = {
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export type UpdateFaultReq = {
|
|
816
|
+
workspaceId?: string
|
|
817
|
+
meshId?: string
|
|
818
|
+
namespaceName?: string
|
|
819
|
+
serviceName?: string
|
|
820
|
+
port?: number
|
|
821
|
+
fault?: HTTPFaultInjection
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export type UpdateFaultRes = {
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export type DeleteFaultReq = {
|
|
828
|
+
workspaceId?: string
|
|
829
|
+
meshId?: string
|
|
830
|
+
namespaceName?: string
|
|
831
|
+
serviceName?: string
|
|
832
|
+
port?: number
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export type DeleteFaultRes = {
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
export type ListRetryReq = {
|
|
839
|
+
workspaceId?: string
|
|
840
|
+
meshId?: string
|
|
841
|
+
namespaceName?: string
|
|
842
|
+
serviceName?: string
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export type ListRetryRes = {
|
|
846
|
+
items?: ListRetry[]
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export type ListRetry = {
|
|
850
|
+
port?: number
|
|
851
|
+
retry?: HTTPRetry
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
export type GetRetryReq = {
|
|
855
|
+
workspaceId?: string
|
|
856
|
+
meshId?: string
|
|
857
|
+
namespaceName?: string
|
|
858
|
+
serviceName?: string
|
|
859
|
+
port?: number
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
export type GetRetryRes = {
|
|
863
|
+
port?: number
|
|
864
|
+
retry?: HTTPRetry
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export type CreateRetryReq = {
|
|
868
|
+
workspaceId?: string
|
|
869
|
+
meshId?: string
|
|
870
|
+
namespaceName?: string
|
|
871
|
+
serviceName?: string
|
|
872
|
+
port?: number
|
|
873
|
+
retry?: HTTPRetry
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export type CreateRetryRes = {
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export type UpdateRetryReq = {
|
|
880
|
+
workspaceId?: string
|
|
881
|
+
meshId?: string
|
|
882
|
+
namespaceName?: string
|
|
883
|
+
serviceName?: string
|
|
884
|
+
port?: number
|
|
885
|
+
retry?: HTTPRetry
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export type UpdateRetryRes = {
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export type DeleteRetryReq = {
|
|
892
|
+
workspaceId?: string
|
|
893
|
+
meshId?: string
|
|
894
|
+
namespaceName?: string
|
|
895
|
+
serviceName?: string
|
|
896
|
+
port?: number
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
export type DeleteRetryRes = {
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export type ListTimeoutReq = {
|
|
903
|
+
workspaceId?: string
|
|
904
|
+
meshId?: string
|
|
905
|
+
namespaceName?: string
|
|
906
|
+
serviceName?: string
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
export type ListTimeoutRes = {
|
|
910
|
+
items?: ListTimeout[]
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
export type ListTimeout = {
|
|
914
|
+
port?: number
|
|
915
|
+
timeout?: GoogleProtobufDuration.Duration
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export type GetTimeoutReq = {
|
|
919
|
+
workspaceId?: string
|
|
920
|
+
meshId?: string
|
|
921
|
+
namespaceName?: string
|
|
922
|
+
serviceName?: string
|
|
923
|
+
port?: number
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
export type GetTimeoutRes = {
|
|
927
|
+
port?: number
|
|
928
|
+
timeout?: GoogleProtobufDuration.Duration
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export type CreateTimeoutReq = {
|
|
932
|
+
workspaceId?: string
|
|
933
|
+
meshId?: string
|
|
934
|
+
namespaceName?: string
|
|
935
|
+
serviceName?: string
|
|
936
|
+
port?: number
|
|
937
|
+
timeout?: GoogleProtobufDuration.Duration
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export type CreateTimeoutRes = {
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
export type UpdateTimeoutReq = {
|
|
944
|
+
workspaceId?: string
|
|
945
|
+
meshId?: string
|
|
946
|
+
namespaceName?: string
|
|
947
|
+
serviceName?: string
|
|
948
|
+
port?: number
|
|
949
|
+
timeout?: GoogleProtobufDuration.Duration
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
export type UpdateTimeoutRes = {
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export type DeleteTimeoutReq = {
|
|
956
|
+
workspaceId?: string
|
|
957
|
+
meshId?: string
|
|
958
|
+
namespaceName?: string
|
|
959
|
+
serviceName?: string
|
|
960
|
+
port?: number
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
export type DeleteTimeoutRes = {
|
|
514
964
|
}
|
|
@@ -220,14 +220,25 @@ export type GetRLSDomainRes = {
|
|
|
220
220
|
domain?: string[]
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
export type ListRLSDomainRulesReq = {
|
|
224
|
+
workspaceId?: string
|
|
225
|
+
pluginName?: string
|
|
226
|
+
domain?: string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type ListRLSDomainRulesRes = {
|
|
230
|
+
rules?: PluginRLSRule[]
|
|
231
|
+
}
|
|
232
|
+
|
|
223
233
|
export type GetRLSDomainRulesReq = {
|
|
224
234
|
workspaceId?: string
|
|
225
235
|
pluginName?: string
|
|
226
236
|
domain?: string
|
|
237
|
+
rlsRuleName?: string
|
|
227
238
|
}
|
|
228
239
|
|
|
229
240
|
export type GetRLSDomainRulesRes = {
|
|
230
|
-
|
|
241
|
+
rule?: PluginRLSRule
|
|
231
242
|
}
|
|
232
243
|
|
|
233
244
|
export type PluginRLSRuleRateLimit = {
|
|
@@ -459,9 +459,6 @@ export class Mesh {
|
|
|
459
459
|
static ExportService(req: SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ExportServiceRes> {
|
|
460
460
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, SkoalaApiHostedV1alpha1Mesh.ExportServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
461
461
|
}
|
|
462
|
-
static ListServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes> {
|
|
463
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
464
|
-
}
|
|
465
462
|
static UpdateServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes> {
|
|
466
463
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/protocols/${req["protocol"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
467
464
|
}
|
|
@@ -501,6 +498,111 @@ export class Mesh {
|
|
|
501
498
|
static UpdateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
502
499
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
503
500
|
}
|
|
501
|
+
static ListServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes> {
|
|
502
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
503
|
+
}
|
|
504
|
+
static ListPort(req: SkoalaApiHostedV1alpha1Mesh.ListPortReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListPortRes> {
|
|
505
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListPortReq, SkoalaApiHostedV1alpha1Mesh.ListPortRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rules/${req["ruleName"]}/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "ruleName"])}`, {...initReq, method: "GET"})
|
|
506
|
+
}
|
|
507
|
+
static ListLb(req: SkoalaApiHostedV1alpha1Mesh.ListLbReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListLbRes> {
|
|
508
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListLbReq, SkoalaApiHostedV1alpha1Mesh.ListLbRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/lb?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
509
|
+
}
|
|
510
|
+
static GetLb(req: SkoalaApiHostedV1alpha1Mesh.GetLbReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetLbRes> {
|
|
511
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetLbReq, SkoalaApiHostedV1alpha1Mesh.GetLbRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/lb/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
512
|
+
}
|
|
513
|
+
static UpdateLb(req: SkoalaApiHostedV1alpha1Mesh.UpdateLbReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateLbRes> {
|
|
514
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateLbReq, SkoalaApiHostedV1alpha1Mesh.UpdateLbRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/lb/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
515
|
+
}
|
|
516
|
+
static ListConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.ListConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListConnectionPoolRes> {
|
|
517
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.ListConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
518
|
+
}
|
|
519
|
+
static GetConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolRes> {
|
|
520
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
521
|
+
}
|
|
522
|
+
static CreateConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes> {
|
|
523
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
524
|
+
}
|
|
525
|
+
static UpdateConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolRes> {
|
|
526
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
527
|
+
}
|
|
528
|
+
static DeleteConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.DeleteConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.DeleteConnectionPoolRes> {
|
|
529
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.DeleteConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}`, {...initReq, method: "DELETE"})
|
|
530
|
+
}
|
|
531
|
+
static ListOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.ListOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListOutlierDetectionRes> {
|
|
532
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.ListOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
533
|
+
}
|
|
534
|
+
static GetOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionRes> {
|
|
535
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
536
|
+
}
|
|
537
|
+
static CreateOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes> {
|
|
538
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
539
|
+
}
|
|
540
|
+
static UpdateOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionRes> {
|
|
541
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
542
|
+
}
|
|
543
|
+
static DeleteOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.DeleteOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.DeleteOutlierDetectionRes> {
|
|
544
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.DeleteOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}`, {...initReq, method: "DELETE"})
|
|
545
|
+
}
|
|
546
|
+
static ListRewrite(req: SkoalaApiHostedV1alpha1Mesh.ListRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListRewriteRes> {
|
|
547
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListRewriteReq, SkoalaApiHostedV1alpha1Mesh.ListRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
548
|
+
}
|
|
549
|
+
static GetRewrite(req: SkoalaApiHostedV1alpha1Mesh.GetRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetRewriteRes> {
|
|
550
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetRewriteReq, SkoalaApiHostedV1alpha1Mesh.GetRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
551
|
+
}
|
|
552
|
+
static CreateRewrite(req: SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes> {
|
|
553
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
554
|
+
}
|
|
555
|
+
static UpdateRewrite(req: SkoalaApiHostedV1alpha1Mesh.UpdateRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateRewriteRes> {
|
|
556
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateRewriteReq, SkoalaApiHostedV1alpha1Mesh.UpdateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
557
|
+
}
|
|
558
|
+
static DeleteRewrite(req: SkoalaApiHostedV1alpha1Mesh.DeleteRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.DeleteRewriteRes> {
|
|
559
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteRewriteReq, SkoalaApiHostedV1alpha1Mesh.DeleteRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}`, {...initReq, method: "DELETE"})
|
|
560
|
+
}
|
|
561
|
+
static ListFault(req: SkoalaApiHostedV1alpha1Mesh.ListFaultReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListFaultRes> {
|
|
562
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListFaultReq, SkoalaApiHostedV1alpha1Mesh.ListFaultRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/fault?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
563
|
+
}
|
|
564
|
+
static GetFault(req: SkoalaApiHostedV1alpha1Mesh.GetFaultReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetFaultRes> {
|
|
565
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetFaultReq, SkoalaApiHostedV1alpha1Mesh.GetFaultRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/fault/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
566
|
+
}
|
|
567
|
+
static CreateFault(req: SkoalaApiHostedV1alpha1Mesh.CreateFaultReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateFaultRes> {
|
|
568
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateFaultReq, SkoalaApiHostedV1alpha1Mesh.CreateFaultRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/fault/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
569
|
+
}
|
|
570
|
+
static UpdateFault(req: SkoalaApiHostedV1alpha1Mesh.UpdateFaultReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateFaultRes> {
|
|
571
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateFaultReq, SkoalaApiHostedV1alpha1Mesh.UpdateFaultRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/fault/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
572
|
+
}
|
|
573
|
+
static DeleteFault(req: SkoalaApiHostedV1alpha1Mesh.DeleteFaultReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.DeleteFaultRes> {
|
|
574
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteFaultReq, SkoalaApiHostedV1alpha1Mesh.DeleteFaultRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/fault/${req["port"]}`, {...initReq, method: "DELETE"})
|
|
575
|
+
}
|
|
576
|
+
static ListRetry(req: SkoalaApiHostedV1alpha1Mesh.ListRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListRetryRes> {
|
|
577
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListRetryReq, SkoalaApiHostedV1alpha1Mesh.ListRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
578
|
+
}
|
|
579
|
+
static GetRetry(req: SkoalaApiHostedV1alpha1Mesh.GetRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetRetryRes> {
|
|
580
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetRetryReq, SkoalaApiHostedV1alpha1Mesh.GetRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
581
|
+
}
|
|
582
|
+
static CreateRetry(req: SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateRetryRes> {
|
|
583
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, SkoalaApiHostedV1alpha1Mesh.CreateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
584
|
+
}
|
|
585
|
+
static UpdateRetry(req: SkoalaApiHostedV1alpha1Mesh.UpdateRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateRetryRes> {
|
|
586
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateRetryReq, SkoalaApiHostedV1alpha1Mesh.UpdateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
587
|
+
}
|
|
588
|
+
static DeleteRetry(req: SkoalaApiHostedV1alpha1Mesh.DeleteRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.DeleteRetryRes> {
|
|
589
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteRetryReq, SkoalaApiHostedV1alpha1Mesh.DeleteRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}`, {...initReq, method: "DELETE"})
|
|
590
|
+
}
|
|
591
|
+
static ListTimeout(req: SkoalaApiHostedV1alpha1Mesh.ListTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListTimeoutRes> {
|
|
592
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListTimeoutReq, SkoalaApiHostedV1alpha1Mesh.ListTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
593
|
+
}
|
|
594
|
+
static GetTimeout(req: SkoalaApiHostedV1alpha1Mesh.GetTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetTimeoutRes> {
|
|
595
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetTimeoutReq, SkoalaApiHostedV1alpha1Mesh.GetTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
596
|
+
}
|
|
597
|
+
static CreateTimeout(req: SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes> {
|
|
598
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
599
|
+
}
|
|
600
|
+
static UpdateTimeout(req: SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutRes> {
|
|
601
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
602
|
+
}
|
|
603
|
+
static DeleteTimeout(req: SkoalaApiHostedV1alpha1Mesh.DeleteTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.DeleteTimeoutRes> {
|
|
604
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteTimeoutReq, SkoalaApiHostedV1alpha1Mesh.DeleteTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}`, {...initReq, method: "DELETE"})
|
|
605
|
+
}
|
|
504
606
|
}
|
|
505
607
|
export class Plugin {
|
|
506
608
|
static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
|
|
@@ -532,6 +634,9 @@ export class Gateway {
|
|
|
532
634
|
static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
533
635
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
534
636
|
}
|
|
637
|
+
static DeleteGatewayCheck(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckRes> {
|
|
638
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/deletecheck?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
639
|
+
}
|
|
535
640
|
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
536
641
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
|
|
537
642
|
}
|
|
@@ -735,7 +840,10 @@ export class SkoalaPlugin {
|
|
|
735
840
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName"])}`, {...initReq, method: "GET"})
|
|
736
841
|
}
|
|
737
842
|
static GetRLSDomainRules(req: SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes> {
|
|
738
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain"])}`, {...initReq, method: "GET"})
|
|
843
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}/rule/${req["rlsRuleName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain", "rlsRuleName"])}`, {...initReq, method: "GET"})
|
|
844
|
+
}
|
|
845
|
+
static ListRLSDomainRules(req: SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesRes> {
|
|
846
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain"])}`, {...initReq, method: "GET"})
|
|
739
847
|
}
|
|
740
848
|
static SkoalaPluginUsageUpdate(req: SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes> {
|
|
741
849
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}/usage`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
|
+
|
|
9
|
+
export enum EventType {
|
|
10
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
11
|
+
Normal = "Normal",
|
|
12
|
+
Warning = "Warning",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type QueryEventHistogramRequest = {
|
|
16
|
+
startTime?: string
|
|
17
|
+
endTime?: string
|
|
18
|
+
interval?: string
|
|
19
|
+
clusterName?: string
|
|
20
|
+
namespace?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type EventHistogram = {
|
|
24
|
+
timestamp?: string
|
|
25
|
+
normalCount?: string
|
|
26
|
+
warningCount?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type QueryEventHistogramResponse = {
|
|
30
|
+
items?: EventHistogram[]
|
|
31
|
+
totalNormal?: string
|
|
32
|
+
totalWarning?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type QueryEventFilterOptionsRequest = {
|
|
36
|
+
startTime?: string
|
|
37
|
+
endTime?: string
|
|
38
|
+
clusterName?: string
|
|
39
|
+
namespace?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type QueryEventFilterOptionsResponse = {
|
|
43
|
+
reasons?: string[]
|
|
44
|
+
involvedObjectKinds?: string[]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type EventFilter = {
|
|
48
|
+
type?: EventType
|
|
49
|
+
involveObjectKind?: string
|
|
50
|
+
reason?: string
|
|
51
|
+
involveObjectName?: string
|
|
52
|
+
message?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type QueryEventRequest = {
|
|
56
|
+
startTime?: string
|
|
57
|
+
endTime?: string
|
|
58
|
+
clusterName?: string
|
|
59
|
+
namespace?: string
|
|
60
|
+
filter?: EventFilter
|
|
61
|
+
sort?: string
|
|
62
|
+
page?: number
|
|
63
|
+
pageSize?: number
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type QueryEventResponse = {
|
|
67
|
+
items?: Event[]
|
|
68
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type EventSource = {
|
|
72
|
+
component?: string
|
|
73
|
+
host?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type EventMetadata = {
|
|
77
|
+
name?: string
|
|
78
|
+
namespace?: string
|
|
79
|
+
uid?: string
|
|
80
|
+
resourceVersion?: string
|
|
81
|
+
creationTimestamp?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type EventInvolvedObject = {
|
|
85
|
+
kind?: string
|
|
86
|
+
namespace?: string
|
|
87
|
+
name?: string
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type Event = {
|
|
91
|
+
reportingComponent?: string
|
|
92
|
+
reason?: string
|
|
93
|
+
lastTimestamp?: string
|
|
94
|
+
count?: string
|
|
95
|
+
message?: string
|
|
96
|
+
clusterName?: string
|
|
97
|
+
source?: EventSource
|
|
98
|
+
reportingInstance?: string
|
|
99
|
+
metadata?: EventMetadata
|
|
100
|
+
type?: EventType
|
|
101
|
+
firstTimestamp?: string
|
|
102
|
+
involveObject?: EventInvolvedObject
|
|
103
|
+
clusterUuid?: string
|
|
104
|
+
timestamp?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type QueryEventCountRequest = {
|
|
108
|
+
startTime?: string
|
|
109
|
+
endTime?: string
|
|
110
|
+
clusterName?: string
|
|
111
|
+
namespace?: string
|
|
112
|
+
filters?: EventFilter[]
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export type QueryEventCountResponse = {
|
|
116
|
+
items?: string[]
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type QueryEventContextRequest = {
|
|
120
|
+
timestamp?: string
|
|
121
|
+
clusterName?: string
|
|
122
|
+
namespace?: string
|
|
123
|
+
filter?: EventFilter
|
|
124
|
+
before?: number
|
|
125
|
+
after?: number
|
|
126
|
+
}
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -21,6 +21,17 @@ export enum DownloadFileType {
|
|
|
21
21
|
JSON = "JSON",
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
export enum LogField {
|
|
25
|
+
LOG_FIELD_UNSPECIFIED = "LOG_FIELD_UNSPECIFIED",
|
|
26
|
+
Timestamp = "Timestamp",
|
|
27
|
+
Cluster = "Cluster",
|
|
28
|
+
Namespace = "Namespace",
|
|
29
|
+
Pod = "Pod",
|
|
30
|
+
Container = "Container",
|
|
31
|
+
Node = "Node",
|
|
32
|
+
File = "File",
|
|
33
|
+
}
|
|
34
|
+
|
|
24
35
|
export type SearchLogRequest = {
|
|
25
36
|
index?: string
|
|
26
37
|
query?: string
|
|
@@ -80,6 +91,7 @@ export type LogContextResourceFilter = {
|
|
|
80
91
|
cluster?: string
|
|
81
92
|
pod?: string
|
|
82
93
|
container?: string
|
|
94
|
+
namespace?: string
|
|
83
95
|
}
|
|
84
96
|
|
|
85
97
|
export type LogContextSystemFilter = {
|
|
@@ -127,7 +139,8 @@ export type LogHistogramResult = {
|
|
|
127
139
|
export type DownloadLogRequest = {
|
|
128
140
|
type?: DownloadFileType
|
|
129
141
|
queryLog?: QueryLogRequest
|
|
130
|
-
|
|
142
|
+
queryLogContext?: QueryLogContextRequest
|
|
143
|
+
fields?: LogField[]
|
|
131
144
|
}
|
|
132
145
|
|
|
133
146
|
export type DownloadLogResponse = {
|
package/package.json
CHANGED
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
8
|
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
9
|
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
10
19
|
export enum PodPhase {
|
|
11
20
|
POD_PHASE_UNSPECIFIED = "POD_PHASE_UNSPECIFIED",
|
|
12
21
|
POD_PHASE_UNKNOWN = "POD_PHASE_UNKNOWN",
|
|
@@ -57,8 +66,8 @@ export type GetPodRequest = {
|
|
|
57
66
|
name?: string
|
|
58
67
|
}
|
|
59
68
|
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
|
|
70
|
+
type BasePodJVMRequest = {
|
|
62
71
|
namespace?: string
|
|
63
72
|
name?: string
|
|
64
73
|
start?: string
|
|
@@ -66,6 +75,9 @@ export type PodJVMRequest = {
|
|
|
66
75
|
step?: number
|
|
67
76
|
}
|
|
68
77
|
|
|
78
|
+
export type PodJVMRequest = BasePodJVMRequest
|
|
79
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
80
|
+
|
|
69
81
|
export type Pod = {
|
|
70
82
|
name?: string
|
|
71
83
|
cluster?: string
|
|
@@ -8,9 +8,10 @@ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
|
8
8
|
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
9
|
|
|
10
10
|
export enum WorkloadKind {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
WORKLOAD_KIND_UNKNOWN = "WORKLOAD_KIND_UNKNOWN",
|
|
12
|
+
WORKLOAD_KIND_DEPLOYMENT = "WORKLOAD_KIND_DEPLOYMENT",
|
|
13
|
+
WORKLOAD_KIND_STATEFULSET = "WORKLOAD_KIND_STATEFULSET",
|
|
14
|
+
WORKLOAD_KIND_DAEMONSET = "WORKLOAD_KIND_DAEMONSET",
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export enum WorkloadPhase {
|
|
@@ -46,38 +46,47 @@ 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
|
+
|
|
89
|
+
type BaseGetServicesRequest = {
|
|
81
90
|
namespace?: string
|
|
82
91
|
extensionFilters?: string
|
|
83
92
|
endTime?: string
|
|
@@ -86,9 +95,11 @@ export type GetServicesRequest = {
|
|
|
86
95
|
page?: number
|
|
87
96
|
pageSize?: number
|
|
88
97
|
sort?: string
|
|
89
|
-
clusterName?: string
|
|
90
98
|
}
|
|
91
99
|
|
|
100
|
+
export type GetServicesRequest = BaseGetServicesRequest
|
|
101
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
102
|
+
|
|
92
103
|
export type ServiceItem = {
|
|
93
104
|
serviceName?: string
|
|
94
105
|
namespace?: string
|
|
@@ -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
|
|
|
@@ -45,15 +51,14 @@ type BaseTraceRequestById = {
|
|
|
45
51
|
export type TraceRequestById = BaseTraceRequestById
|
|
46
52
|
& OneOf<{ cluster: string; clusterName: string }>
|
|
47
53
|
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
|
|
55
|
+
type BaseListServiceNamesRequest = {
|
|
50
56
|
namespace?: string
|
|
51
|
-
serviceName?: string
|
|
52
|
-
spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
53
|
-
start?: string
|
|
54
|
-
end?: string
|
|
55
57
|
}
|
|
56
58
|
|
|
59
|
+
export type ListServiceNamesRequest = BaseListServiceNamesRequest
|
|
60
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
61
|
+
|
|
57
62
|
export type GetServiceNamesResponse = {
|
|
58
63
|
services?: string[]
|
|
59
64
|
}
|