@daocloud-proto/skoala 0.3.3-40 → 0.3.3-52

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.
@@ -0,0 +1,27 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum FeatureGateIDEnum {
8
+ METRICS = "METRICS",
9
+ LOGGING = "LOGGING",
10
+ TRACING = "TRACING",
11
+ }
12
+
13
+ export type FeatureGateID = {
14
+ id?: FeatureGateIDEnum
15
+ }
16
+
17
+ export type FeatureGate = {
18
+ id?: FeatureGateIDEnum
19
+ name?: string
20
+ description?: string
21
+ enabled?: boolean
22
+ status?: string
23
+ }
24
+
25
+ export type FeatureGatesResp = {
26
+ items?: FeatureGate[]
27
+ }
@@ -8,87 +8,89 @@ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
8
8
 
9
9
  export enum RuleSource {
10
10
  RULE_SOURCE_UNSPECIFIED = "RULE_SOURCE_UNSPECIFIED",
11
- metric_tpl = "metric_tpl",
12
- promql = "promql",
13
- log_tpl = "log_tpl",
11
+ METRIC_TPL = "METRIC_TPL",
12
+ PROMQL = "PROMQL",
13
+ LOG_TPL = "LOG_TPL",
14
14
  }
15
15
 
16
16
  export enum TargetType {
17
17
  TARGET_TYPE_UNSPECIFIED = "TARGET_TYPE_UNSPECIFIED",
18
- global = "global",
19
- cluster = "cluster",
20
- node = "node",
21
- workload_deployment = "workload_deployment",
22
- workload_statefulset = "workload_statefulset",
23
- workload_daemonset = "workload_daemonset",
24
- workload_cronjob = "workload_cronjob",
25
- workload_pod = "workload_pod",
18
+ GLOBAL = "GLOBAL",
19
+ CLUSTER = "CLUSTER",
20
+ NODE = "NODE",
21
+ DEPLOYMENT = "DEPLOYMENT",
22
+ STATEFULSET = "STATEFULSET",
23
+ DAEMONSET = "DAEMONSET",
24
+ CRONJOB = "CRONJOB",
25
+ POD = "POD",
26
26
  }
27
27
 
28
28
  export enum Severity {
29
29
  SEVERITY_UNSPECIFIED = "SEVERITY_UNSPECIFIED",
30
- critical = "critical",
31
- warning = "warning",
32
- info = "info",
30
+ CRITICAL = "CRITICAL",
31
+ WARNING = "WARNING",
32
+ INFO = "INFO",
33
33
  }
34
34
 
35
35
  export enum RuleStatus {
36
36
  UNSPECIFIED = "UNSPECIFIED",
37
- firing = "firing",
38
- enabled = "enabled",
37
+ FIRING = "FIRING",
38
+ ENABLED = "ENABLED",
39
39
  }
40
40
 
41
41
  export enum AlertStatus {
42
- AlertStatus_UNSPECIFIED = "AlertStatus_UNSPECIFIED",
43
- AlertStatus_Firing = "AlertStatus_Firing",
44
- AlertStatus_Resolved = "AlertStatus_Resolved",
42
+ ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
43
+ ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
44
+ ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
45
45
  }
46
46
 
47
47
  export type ListRulesRequest = {
48
- builtIn?: boolean
48
+ builtin?: boolean
49
49
  name?: string
50
50
  severity?: Severity
51
51
  status?: RuleStatus
52
52
  page?: number
53
- size?: number
53
+ pageSize?: number
54
+ sorts?: string[]
54
55
  }
55
56
 
56
57
  export type ListRulesResponse = {
57
- rules?: RuleSummary[]
58
- pagination?: InsightIoApiTypeV1alpha1Page.Page
58
+ items?: RuleSummary[]
59
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
59
60
  }
60
61
 
61
62
  export type RuleSummary = {
62
- ruleID?: string
63
+ ruleId?: string
63
64
  ruleName?: string
64
65
  severity?: Severity
65
66
  cluster?: string
66
67
  namespace?: string
67
68
  targetType?: TargetType
68
- targetName?: string[]
69
+ targetNames?: string[]
69
70
  source?: RuleSource
70
71
  expr?: string
71
72
  thresholdSymbol?: string
72
73
  thresholdNum?: string
73
74
  duration?: number
74
75
  status?: RuleStatus
75
- builtIn?: boolean
76
+ builtin?: boolean
77
+ createAt?: string
76
78
  }
77
79
 
78
80
  export type RuleID = {
79
- ruleID?: string
81
+ id?: string
80
82
  }
81
83
 
82
84
  export type Rule = {
83
- ruleID?: string
85
+ ruleId?: string
84
86
  ruleName?: string
85
87
  ruleGroupName?: string
86
- builtIn?: boolean
88
+ builtin?: boolean
87
89
  cluster?: string
88
90
  namespace?: string
89
91
  source?: RuleSource
90
92
  targetType?: TargetType
91
- targetName?: string[]
93
+ targetNames?: string[]
92
94
  expr?: string
93
95
  thresholdSymbol?: string
94
96
  thresholdNum?: string
@@ -120,7 +122,7 @@ export type CreateRuleRequest = {
120
122
  namespace?: string
121
123
  source?: RuleSource
122
124
  targetType?: TargetType
123
- targetName?: string[]
125
+ targetNames?: string[]
124
126
  expr?: string
125
127
  thresholdSymbol?: string
126
128
  thresholdNum?: string
@@ -131,11 +133,11 @@ export type CreateRuleRequest = {
131
133
  }
132
134
 
133
135
  export type UpdateRuleRequest = {
134
- ruleID?: string
136
+ id?: string
135
137
  description?: string
136
138
  cluster?: string
137
139
  namespace?: string
138
- targetName?: string[]
140
+ targetNames?: string[]
139
141
  expr?: string
140
142
  thresholdSymbol?: string
141
143
  thresholdNum?: string
@@ -152,16 +154,17 @@ export type ListAlertsRequest = {
152
154
  namespace?: string
153
155
  severity?: Severity
154
156
  page?: number
155
- size?: number
157
+ pageSize?: number
158
+ sorts?: string[]
156
159
  }
157
160
 
158
161
  export type ListAlertsResponse = {
159
- alerts?: AlertSummary[]
160
- pagination?: InsightIoApiTypeV1alpha1Page.Page
162
+ items?: AlertSummary[]
163
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
161
164
  }
162
165
 
163
166
  export type AlertSummary = {
164
- alertID?: string
167
+ alertId?: string
165
168
  ruleName?: string
166
169
  severity?: Severity
167
170
  cluster?: string
@@ -176,10 +179,10 @@ export type AlertSummary = {
176
179
  }
177
180
 
178
181
  export type AlertInfo = {
179
- alertID?: string
182
+ alertId?: string
180
183
  fingerprint?: string
181
184
  ruleName?: string
182
- ruleID?: string
185
+ ruleId?: string
183
186
  cluster?: string
184
187
  namespace?: string
185
188
  targetType?: TargetType
@@ -197,6 +200,11 @@ export type AlertInfo = {
197
200
 
198
201
  export type CountAlertRequest = {
199
202
  resolved?: boolean
203
+ cluster?: string
204
+ namespace?: string
205
+ targetType?: TargetType
206
+ targetName?: string
207
+ severity?: Severity
200
208
  start?: string
201
209
  end?: string
202
210
  step?: string
@@ -213,7 +221,7 @@ export type CountAlert = {
213
221
  }
214
222
 
215
223
  export type ResolveAlertRequest = {
216
- alertID?: string[]
224
+ alertId?: string[]
217
225
  }
218
226
 
219
227
  export type AMHookRequest = {
@@ -241,12 +249,13 @@ export type AmAlert = {
241
249
  export type ListTemplatesRequest = {
242
250
  name?: string
243
251
  page?: number
244
- size?: number
252
+ pageSize?: number
253
+ sorts?: string[]
245
254
  }
246
255
 
247
256
  export type ListTemplatesResponse = {
248
- templates?: TemplateSummary[]
249
- pagination?: InsightIoApiTypeV1alpha1Page.Page
257
+ items?: TemplateSummary[]
258
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
250
259
  }
251
260
 
252
261
  export type TemplateSummary = {
@@ -277,7 +286,7 @@ export type CreateTemplateRequest = {
277
286
 
278
287
  export type TemplateBody = {
279
288
  email?: string
280
- wechat?: string
281
- dingding?: string
289
+ wecom?: string
290
+ dingtalk?: string
282
291
  webhook?: string
283
292
  }
@@ -20,12 +20,12 @@ export enum ReceiverType {
20
20
  webhook = "webhook",
21
21
  email = "email",
22
22
  dingtalk = "dingtalk",
23
- wechat = "wechat",
23
+ wecom = "wecom",
24
24
  }
25
25
 
26
26
 
27
27
  type BaseReceiver = {
28
- receiverId?: string
28
+ id?: string
29
29
  name?: string
30
30
  type?: ReceiverType
31
31
  createAt?: string
@@ -33,30 +33,39 @@ type BaseReceiver = {
33
33
  }
34
34
 
35
35
  export type Receiver = BaseReceiver
36
- & OneOf<{ webhook: WebhookConfig }>
36
+ & OneOf<{ webhook: WebhookConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
37
37
 
38
38
  export type WebhookConfig = {
39
39
  url?: string
40
40
  httpConfig?: HTTPConfig
41
41
  }
42
42
 
43
+ export type WecomConfig = {
44
+ webhook?: string
45
+ }
46
+
47
+ export type DingtalkConfig = {
48
+ webhook?: string
49
+ }
50
+
43
51
  export type ListReceiversRequest = {
44
52
  type?: ReceiverType
45
53
  page?: number
46
- size?: number
54
+ pageSize?: number
55
+ sorts?: string[]
47
56
  }
48
57
 
49
58
  export type ReceiverId = {
50
- receiverId?: string
59
+ id?: string
51
60
  }
52
61
 
53
62
  export type ReceiverDataResponse = {
54
63
  data?: Receiver
55
64
  }
56
65
 
57
- export type ReceiverListResponse = {
58
- receivers?: Receiver[]
59
- pagination?: InsightIoApiTypeV1alpha1Page.Page
66
+ export type ListReceiverResponse = {
67
+ items?: Receiver[]
68
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
60
69
  }
61
70
 
62
71
  export type HTTPConfig = {
@@ -67,7 +67,7 @@ export type MatchLabel = {
67
67
 
68
68
  export type BatchQueryRequest = {
69
69
  param?: BatchQueryRequestParam
70
- matchLabels?: MatchLabel
70
+ matchLabel?: MatchLabel
71
71
  queryList?: string[]
72
72
  }
73
73
 
@@ -83,7 +83,7 @@ export type BatchQueryResult = {
83
83
 
84
84
  export type BatchQueryRangeRequest = {
85
85
  param?: BatchQueryRangeRequestParam
86
- matchLabels?: MatchLabel
86
+ matchLabel?: MatchLabel
87
87
  queryList?: string[]
88
88
  }
89
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.3.3-40",
3
+ "version": "0.3.3-52",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,41 +36,33 @@ export enum InsightAgentStatus {
36
36
  }
37
37
 
38
38
  export type ListClustersResponse = {
39
- cluster?: Cluster[]
39
+ items?: Cluster[]
40
40
  }
41
41
 
42
42
  export type Cluster = {
43
43
  name?: string
44
- kubeSystemID?: string
44
+ kubeSystemId?: string
45
45
  phase?: ClusterPhase
46
46
  }
47
47
 
48
48
  export type ListClusterSummaryRequest = {
49
49
  name?: string
50
- page?: number
51
- size?: number
52
50
  version?: string
53
- phases?: string[]
54
- labels?: {[key: string]: string}
55
- annotations?: {[key: string]: string}
56
- sortBy?: InsightIoApiTypeV1alpha1Page.SortBy
57
- orderBy?: InsightIoApiTypeV1alpha1Page.OrderBy
51
+ phases?: ClusterPhase[]
52
+ page?: number
53
+ pageSize?: number
58
54
  }
59
55
 
60
56
  export type ListClusterSummaryResponse = {
61
- clusterSummary?: GetClusterSummary[]
62
- pagination?: InsightIoApiTypeV1alpha1Page.Page
57
+ items?: ClusterSummary[]
58
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
63
59
  }
64
60
 
65
61
  export type GetClusterRequest = {
66
62
  name?: string
67
63
  }
68
64
 
69
- export type GetClusterResponse = {
70
- clusterResponse?: GetClusterSummary
71
- }
72
-
73
- export type GetClusterSummary = {
65
+ export type ClusterSummary = {
74
66
  name?: string
75
67
  phase?: ClusterPhase
76
68
  provider?: ClusterProvider
@@ -83,12 +75,26 @@ export type GetClusterSummary = {
83
75
  memoryUsage?: InsightIoApiMetricV1alpha1Metric.samplePair[]
84
76
  }
85
77
 
78
+ export type ClusterDetail = {
79
+ name?: string
80
+ phase?: ClusterPhase
81
+ provider?: ClusterProvider
82
+ kubernetesVersion?: string
83
+ creationTimestamp?: string
84
+ nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
85
+ deploymentNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
86
+ statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
87
+ daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
88
+ podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
89
+ insightAgentStatus?: InsightAgentStatus
90
+ }
91
+
86
92
  export type ListNamespacesRequest = {
87
93
  cluster?: string
88
94
  }
89
95
 
90
96
  export type ListNamespacesResponse = {
91
- namespace?: Namespace[]
97
+ namespaces?: Namespace[]
92
98
  }
93
99
 
94
100
  export type Namespace = {
@@ -7,12 +7,12 @@
7
7
  import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
8
8
  import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
9
 
10
- export enum CronJobStatusCronJobState {
10
+ export enum CronJobPhase {
11
11
  CRONJOB_STATE_UNSPECIFIED = "CRONJOB_STATE_UNSPECIFIED",
12
- WAITING = "WAITING",
13
- ACTIVATED = "ACTIVATED",
14
- STOPPED = "STOPPED",
15
- DELETING = "DELETING",
12
+ CRONJOB_STATE_WAITING = "CRONJOB_STATE_WAITING",
13
+ CRONJOB_STATE_ACTIVATED = "CRONJOB_STATE_ACTIVATED",
14
+ CRONJOB_STATE_STOPPED = "CRONJOB_STATE_STOPPED",
15
+ CRONJOB_STATE_DELETING = "CRONJOB_STATE_DELETING",
16
16
  }
17
17
 
18
18
  export enum JobStatusJobState {
@@ -27,21 +27,21 @@ export enum JobStatusJobState {
27
27
  export type ListJobsRequest = {
28
28
  cluster?: string
29
29
  namespace?: string
30
- status?: string[]
31
- page?: number
32
- size?: number
30
+ phases?: string[]
33
31
  name?: string
32
+ page?: number
33
+ pageSize?: number
34
34
  }
35
35
 
36
36
  export type ListCronJobsResponse = {
37
- data?: CronJobSummary[]
38
- pagination?: InsightIoApiTypeV1alpha1Page.Page
37
+ items?: CronJobSummary[]
38
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
39
39
  }
40
40
 
41
41
  export type CronJobSummary = {
42
42
  name?: string
43
43
  namespace?: string
44
- status?: CronJobStatus
44
+ phase?: CronJobPhase
45
45
  jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
46
46
  }
47
47
 
@@ -49,20 +49,15 @@ export type CronJob = {
49
49
  name?: string
50
50
  cluster?: string
51
51
  namespace?: string
52
- status?: CronJobStatus
53
- createTimeStamp?: string
52
+ phase?: CronJobPhase
53
+ createTimestamp?: string
54
54
  jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
55
- problem?: InsightIoApiResourceV1alpha1Type.Problem
56
55
  }
57
56
 
58
57
  export type CronJobSpec = {
59
58
  schedule?: string
60
59
  }
61
60
 
62
- export type CronJobStatus = {
63
- phase?: CronJobStatusCronJobState
64
- }
65
-
66
61
  export type GetJobRequest = {
67
62
  cluster?: string
68
63
  namespace?: string
@@ -70,8 +65,8 @@ export type GetJobRequest = {
70
65
  }
71
66
 
72
67
  export type ListJobsResponse = {
73
- data?: JobSummary[]
74
- pagination?: InsightIoApiTypeV1alpha1Page.Page
68
+ items?: JobSummary[]
69
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
75
70
  }
76
71
 
77
72
  export type JobSummary = {
@@ -93,7 +88,6 @@ export type Job = {
93
88
  cluster?: string
94
89
  namespace?: string
95
90
  status?: JobStatus
96
- createTimeStamp?: string
91
+ createTimestamp?: string
97
92
  jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
98
- problem?: InsightIoApiResourceV1alpha1Type.Problem
99
93
  }
@@ -7,29 +7,29 @@
7
7
  import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
8
8
  import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
9
 
10
- export enum Status {
11
- PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
12
- Ready = "Ready",
13
- NotReady = "NotReady",
14
- Unknown = "Unknown",
10
+ export enum NodePhase {
11
+ NODE_PHASE_UNSPECIFIED = "NODE_PHASE_UNSPECIFIED",
12
+ NODE_PHASE_READY = "NODE_PHASE_READY",
13
+ NODE_PHASE_NOT_READY = "NODE_PHASE_NOT_READY",
14
+ NODE_PHASE_UNKNOWN = "NODE_PHASE_UNKNOWN",
15
15
  }
16
16
 
17
17
  export type ListNodesRequest = {
18
18
  cluster?: string
19
- page?: number
20
- size?: number
21
- status?: string[]
19
+ phases?: NodePhase[]
22
20
  name?: string
21
+ page?: number
22
+ pageSize?: number
23
23
  }
24
24
 
25
25
  export type ListNodesResponse = {
26
- nodes?: NodeSummary[]
27
- pagination?: InsightIoApiTypeV1alpha1Page.Page
26
+ items?: NodeSummary[]
27
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
28
28
  }
29
29
 
30
30
  export type NodeSummary = {
31
31
  name?: string
32
- status?: Status
32
+ phase?: NodePhase
33
33
  podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
34
34
  }
35
35
 
@@ -43,11 +43,10 @@ export type Node = {
43
43
  cluster?: string
44
44
  operatingSystem?: string
45
45
  address?: string
46
- creationTimeStamp?: string
47
- status?: Status
46
+ creationTimestamp?: string
47
+ phase?: NodePhase
48
48
  podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
49
49
  usage?: usage
50
- problem?: InsightIoApiResourceV1alpha1Type.Problem
51
50
  }
52
51
 
53
52
  export type usage = {
@@ -7,46 +7,42 @@
7
7
  import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
8
8
  import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
9
 
10
- export enum PodStatusPhase {
11
- PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
12
- UNKNOWN = "UNKNOWN",
13
- PENDING = "PENDING",
14
- RUNNING = "RUNNING",
15
- SUCCEED = "SUCCEED",
16
- FAILED = "FAILED",
10
+ export enum PodPhase {
11
+ POD_PHASE_UNSPECIFIED = "POD_PHASE_UNSPECIFIED",
12
+ POD_PHASE_UNKNOWN = "POD_PHASE_UNKNOWN",
13
+ POD_PHASE_PENDING = "POD_PHASE_PENDING",
14
+ POD_PHASE_RUNNING = "POD_PHASE_RUNNING",
15
+ POD_PHASE_SUCCEED = "POD_PHASE_SUCCEED",
16
+ POD_PHASE_FAILED = "POD_PHASE_FAILED",
17
17
  }
18
18
 
19
- export enum ContainerStatePhase {
20
- PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
21
- WAITING = "WAITING",
22
- RUNNING = "RUNNING",
23
- TERMINATED = "TERMINATED",
19
+ export enum ContainerPhase {
20
+ CONTAINER_PHASE_UNSPECIFIED = "CONTAINER_PHASE_UNSPECIFIED",
21
+ CONTAINER_PHASE_WAITING = "CONTAINER_PHASE_WAITING",
22
+ CONTAINER_PHASE_RUNNING = "CONTAINER_PHASE_RUNNING",
23
+ CONTAINER_PHASE_TERMINATED = "CONTAINER_PHASE_TERMINATED",
24
24
  }
25
25
 
26
26
  export type ListPodsRequest = {
27
27
  cluster?: string
28
28
  namespace?: string
29
- status?: string[]
30
- page?: number
31
- size?: number
29
+ phases?: PodPhase[]
32
30
  name?: string
31
+ page?: number
32
+ pageSize?: number
33
33
  }
34
34
 
35
35
  export type ListPodsResponse = {
36
- data?: PodSummary[]
37
- pagination?: InsightIoApiTypeV1alpha1Page.Page
36
+ items?: PodSummary[]
37
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
38
38
  }
39
39
 
40
40
  export type PodSummary = {
41
41
  name?: string
42
42
  namespace?: string
43
- status?: PodStatus
43
+ phase?: PodPhase
44
44
  containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
45
- podIP?: string
46
- }
47
-
48
- export type PodStatus = {
49
- phase?: PodStatusPhase
45
+ podIp?: string
50
46
  }
51
47
 
52
48
  export type GetPodRequest = {
@@ -59,33 +55,28 @@ export type Pod = {
59
55
  name?: string
60
56
  cluster?: string
61
57
  namespace?: string
62
- status?: PodStatus
63
- createTimeStamp?: string
58
+ phase?: PodPhase
59
+ createTimestamp?: string
64
60
  containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
65
- podIP?: string
66
- hostIP?: string
67
- problem?: InsightIoApiResourceV1alpha1Type.Problem
61
+ podIp?: string
62
+ hostIp?: string
68
63
  }
69
64
 
70
65
  export type ListContainersRequest = {
71
66
  cluster?: string
72
67
  namespace?: string
73
- page?: number
74
- size?: number
75
68
  name?: string
76
- status?: string[]
69
+ phases?: ContainerPhase[]
70
+ page?: number
71
+ pageSize?: number
77
72
  }
78
73
 
79
74
  export type ListContainersResponse = {
80
- data?: ContainerSummary[]
81
- pagination?: InsightIoApiTypeV1alpha1Page.Page
75
+ items?: ContainerSummary[]
76
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
82
77
  }
83
78
 
84
79
  export type ContainerSummary = {
85
80
  name?: string
86
- status?: ContainerState
87
- }
88
-
89
- export type ContainerState = {
90
- status?: ContainerStatePhase
81
+ phase?: ContainerPhase
91
82
  }
@@ -24,14 +24,14 @@ export enum WorkloadSumKind {
24
24
  export type ListServicesRequest = {
25
25
  cluster?: string
26
26
  namespace?: string
27
- page?: number
28
- size?: number
29
27
  name?: string
28
+ page?: number
29
+ pageSize?: number
30
30
  }
31
31
 
32
32
  export type ListServicesResponse = {
33
- data?: serviceSummary[]
34
- pagination?: InsightIoApiTypeV1alpha1Page.Page
33
+ items?: serviceSummary[]
34
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
35
35
  }
36
36
 
37
37
  export type serviceSummary = {
@@ -43,9 +43,9 @@ export type Service = {
43
43
  name?: string
44
44
  cluster?: string
45
45
  namespace?: string
46
- createTimeStamp?: string
46
+ createTimestamp?: string
47
47
  serviceType?: ServiceType
48
- clusterIP?: string
48
+ clusterIp?: string
49
49
  workloadData?: WorkloadSum[]
50
50
  }
51
51
 
@@ -6,9 +6,4 @@
6
6
  export type ResourceNumSummary = {
7
7
  totalNum?: number
8
8
  readyNum?: number
9
- }
10
-
11
- export type Problem = {
12
- alert?: string
13
- event?: string
14
9
  }
@@ -8,12 +8,12 @@ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
8
8
  import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
9
 
10
10
  export enum WorkloadKind {
11
- deployments = "deployments",
12
- statefulsets = "statefulsets",
13
- daemonsets = "daemonsets",
11
+ DEPLOYMENT = "DEPLOYMENT",
12
+ STATEFULSET = "STATEFULSET",
13
+ DAEMONSET = "DAEMONSET",
14
14
  }
15
15
 
16
- export enum WorkloadState {
16
+ export enum WorkloadPhase {
17
17
  WORKLOAD_STATE_UNKNOWN = "WORKLOAD_STATE_UNKNOWN",
18
18
  WORKLOAD_STATE_RUNNING = "WORKLOAD_STATE_RUNNING",
19
19
  WORKLOAD_STATE_DELETING = "WORKLOAD_STATE_DELETING",
@@ -25,21 +25,21 @@ export enum WorkloadState {
25
25
  export type ListWorkloadsRequest = {
26
26
  cluster?: string
27
27
  namespace?: string
28
- page?: number
29
- size?: number
30
28
  name?: string
31
- phases?: string[]
29
+ phases?: WorkloadPhase[]
30
+ page?: number
31
+ pageSize?: number
32
32
  }
33
33
 
34
34
  export type ListWorkloadsResponse = {
35
- data?: workloadSummary[]
36
- pagination?: InsightIoApiTypeV1alpha1Page.Page
35
+ items?: workloadSummary[]
36
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
37
37
  }
38
38
 
39
39
  export type workloadSummary = {
40
40
  name?: string
41
41
  namespace?: string
42
- status?: WorkloadState
42
+ phase?: WorkloadPhase
43
43
  podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
44
44
  }
45
45
 
@@ -47,10 +47,9 @@ export type Workload = {
47
47
  name?: string
48
48
  cluster?: string
49
49
  namespace?: string
50
- status?: WorkloadState
51
- createTimeStamp?: string
50
+ phase?: WorkloadPhase
51
+ createTimestamp?: string
52
52
  podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
53
- problem?: InsightIoApiResourceV1alpha1Type.Problem
54
53
  }
55
54
 
56
55
  export type GetWorkloadRequest = {
@@ -66,12 +66,14 @@ export type MetricsFamilyWithOperation = {
66
66
 
67
67
  export type MetricsWithOperation = {
68
68
  operation?: string
69
- metricPointsGroup?: MetricsPointsGroup[]
69
+ metricPointsGroups?: MetricsPointsGroup[]
70
70
  }
71
71
 
72
72
  export type MetricsPointsGroup = {
73
73
  apdex?: string
74
74
  metricPoints?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
75
+ metricsLabel?: string
76
+ metricsAvg?: number
75
77
  }
76
78
 
77
79
  export type GetREDRequest = {
@@ -85,4 +87,27 @@ export type GetREDResponse = {
85
87
  p50Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
86
88
  callsMetric?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
87
89
  errorsMetrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
90
+ }
91
+
92
+ export type GetServiceDetailRequest = {
93
+ baseRequest?: MetricsQueryBaseRequest
94
+ }
95
+
96
+ export type GetServiceDetailResponse = {
97
+ p95Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
98
+ p75Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
99
+ p50Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
100
+ reqRateMetric?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
101
+ repLatencyMetric?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
102
+ errorsRateMetrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
103
+ totalCallsMetrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
104
+ avgReqRate?: number
105
+ avgRepLatency?: number
106
+ avgErrorTate?: number
107
+ totalCalls?: number
108
+ apdex?: number
109
+ }
110
+
111
+ export type GetOperationDetailResponse = {
112
+ metrics?: MetricsWithOperation[]
88
113
  }
@@ -3,23 +3,9 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
-
7
- export enum OrderBy {
8
- desc = "desc",
9
- asc = "asc",
10
- }
11
-
12
- export enum SortBy {
13
- field_name = "field_name",
14
- state = "state",
15
- workspace = "workspace",
16
- cluster = "cluster",
17
- namespace = "namespace",
18
- created_at = "created_at",
19
- }
20
-
21
- export type Page = {
22
- page?: number
23
- size?: number
6
+ export type Pagination = {
24
7
  total?: number
8
+ page?: number
9
+ pageSize?: number
10
+ pages?: number
25
11
  }
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // @ts-nocheck
3
- /*
4
- * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
- */
6
- export type OperationsQueryRequest = {
7
- cluster?: string
8
- namespace?: string
9
- serviceName?: string
10
- }
11
-
12
- export type OperationsQueryResponse = {
13
- operations?: string[]
14
- }