@daocloud-proto/skoala 0.7.2-2 → 0.7.2-8
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.
|
@@ -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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
7
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
8
9
|
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
9
10
|
|
|
@@ -79,7 +80,7 @@ export type UpdatePluginReq = {
|
|
|
79
80
|
|
|
80
81
|
export type UpdateSentinelPluginReq = {
|
|
81
82
|
enabled?: boolean
|
|
82
|
-
|
|
83
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
83
84
|
replicas?: number
|
|
84
85
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
85
86
|
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -7,8 +7,20 @@
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
|
|
9
9
|
export enum Grade {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
THREAD = "THREAD",
|
|
11
|
+
QPS = "QPS",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum Strategy {
|
|
15
|
+
Director = "Director",
|
|
16
|
+
ASSOCIATION = "ASSOCIATION",
|
|
17
|
+
LINKER = "LINKER",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum ControlBehavior {
|
|
21
|
+
FAST_FAILED = "FAST_FAILED",
|
|
22
|
+
WARM_UP = "WARM_UP",
|
|
23
|
+
WAITING_IN_QUEUE = "WAITING_IN_QUEUE",
|
|
12
24
|
}
|
|
13
25
|
|
|
14
26
|
export enum DegradeRuleGrade {
|
|
@@ -46,11 +58,11 @@ export type FlowRule = {
|
|
|
46
58
|
port?: number
|
|
47
59
|
limitApp?: string
|
|
48
60
|
resource?: string
|
|
49
|
-
grade?:
|
|
61
|
+
grade?: Grade
|
|
50
62
|
count?: number
|
|
51
|
-
strategy?:
|
|
63
|
+
strategy?: Strategy
|
|
52
64
|
refResource?: string
|
|
53
|
-
controlBehavior?:
|
|
65
|
+
controlBehavior?: ControlBehavior
|
|
54
66
|
warmUpPeriodSec?: number
|
|
55
67
|
maxQueueingTimeMs?: number
|
|
56
68
|
clusterMode?: boolean
|