@daocloud-proto/skoala 0.7.1 → 0.7.2-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.
@@ -15,19 +15,19 @@ export enum CronJobPhase {
15
15
  CRONJOB_STATE_DELETING = "CRONJOB_STATE_DELETING",
16
16
  }
17
17
 
18
- export enum JobStatusJobState {
18
+ export enum JobState {
19
19
  JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
20
- WAITING = "WAITING",
21
- RUNNING = "RUNNING",
22
- COMPLETED = "COMPLETED",
23
- DELETING = "DELETING",
24
- FAILED = "FAILED",
20
+ JOB_STATE_WAITING = "JOB_STATE_WAITING",
21
+ JOB_STATE_RUNNING = "JOB_STATE_RUNNING",
22
+ JOB_STATE_COMPLETED = "JOB_STATE_COMPLETED",
23
+ JOB_STATE_DELETING = "JOB_STATE_DELETING",
24
+ JOB_STATE_FAILED = "JOB_STATE_FAILED",
25
25
  }
26
26
 
27
27
  export type ListJobsRequest = {
28
28
  cluster?: string
29
29
  namespace?: string
30
- phases?: string[]
30
+ phase?: JobState
31
31
  name?: string
32
32
  page?: number
33
33
  pageSize?: number
@@ -52,6 +52,7 @@ export type CronJob = {
52
52
  phase?: CronJobPhase
53
53
  createTimestamp?: string
54
54
  jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
55
+ conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
55
56
  }
56
57
 
57
58
  export type CronJobSpec = {
@@ -80,7 +81,7 @@ export type JobStatus = {
80
81
  active?: number
81
82
  succeed?: number
82
83
  failed?: number
83
- phase?: JobStatusJobState
84
+ phase?: JobState
84
85
  }
85
86
 
86
87
  export type Job = {
@@ -90,4 +91,5 @@ export type Job = {
90
91
  status?: JobStatus
91
92
  createTimestamp?: string
92
93
  jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
94
+ conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
93
95
  }
@@ -16,7 +16,7 @@ export enum NodePhase {
16
16
 
17
17
  export type ListNodesRequest = {
18
18
  cluster?: string
19
- phases?: NodePhase[]
19
+ phase?: NodePhase
20
20
  name?: string
21
21
  page?: number
22
22
  pageSize?: number
@@ -44,11 +44,23 @@ export type Node = {
44
44
  operatingSystem?: string
45
45
  address?: string
46
46
  creationTimestamp?: string
47
- phase?: NodePhase
47
+ nodeStatus?: NodeStatus
48
48
  podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
49
49
  usage?: usage
50
50
  }
51
51
 
52
+ export type NodeStatus = {
53
+ phase?: NodePhase
54
+ conditions?: NodeCondition[]
55
+ }
56
+
57
+ export type NodeCondition = {
58
+ type?: string
59
+ status?: InsightIoApiResourceV1alpha1Type.ConditionStatus
60
+ reason?: string
61
+ message?: string
62
+ }
63
+
52
64
  export type usage = {
53
65
  cpuCapacity?: string
54
66
  cpuAllocated?: number
@@ -26,7 +26,7 @@ export enum ContainerPhase {
26
26
  export type ListPodsRequest = {
27
27
  cluster?: string
28
28
  namespace?: string
29
- phases?: PodPhase[]
29
+ phase?: PodPhase
30
30
  name?: string
31
31
  page?: number
32
32
  pageSize?: number
@@ -60,13 +60,14 @@ export type Pod = {
60
60
  containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
61
61
  podIp?: string
62
62
  hostIp?: string
63
+ conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
63
64
  }
64
65
 
65
66
  export type ListContainersRequest = {
66
67
  cluster?: string
67
68
  namespace?: string
68
69
  name?: string
69
- phases?: ContainerPhase[]
70
+ phase?: ContainerPhase
70
71
  page?: number
71
72
  pageSize?: number
72
73
  }
@@ -27,6 +27,7 @@ export type ListServicesRequest = {
27
27
  name?: string
28
28
  page?: number
29
29
  pageSize?: number
30
+ tracingEnabled?: boolean
30
31
  }
31
32
 
32
33
  export type ListServicesResponse = {
@@ -37,6 +38,7 @@ export type ListServicesResponse = {
37
38
  export type serviceSummary = {
38
39
  name?: string
39
40
  namespace?: string
41
+ tracingEnabled?: boolean
40
42
  }
41
43
 
42
44
  export type Service = {
@@ -3,7 +3,24 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ export enum ConditionStatus {
8
+ CONDITION_STATUS_UNSPECIFIED = "CONDITION_STATUS_UNSPECIFIED",
9
+ True = "True",
10
+ False = "False",
11
+ Unknown = "Unknown",
12
+ }
13
+
6
14
  export type ResourceNumSummary = {
7
15
  totalNum?: number
8
16
  readyNum?: number
17
+ }
18
+
19
+ export type Condition = {
20
+ lastTransitionTime?: string
21
+ lastUpdateTime?: string
22
+ message?: string
23
+ reason?: string
24
+ status?: string
25
+ type?: string
9
26
  }
@@ -26,7 +26,7 @@ export type ListWorkloadsRequest = {
26
26
  cluster?: string
27
27
  namespace?: string
28
28
  name?: string
29
- phases?: WorkloadPhase[]
29
+ phase?: WorkloadPhase
30
30
  page?: number
31
31
  pageSize?: number
32
32
  }
@@ -50,6 +50,7 @@ export type Workload = {
50
50
  phase?: WorkloadPhase
51
51
  createTimestamp?: string
52
52
  podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
53
+ conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
53
54
  }
54
55
 
55
56
  export type GetWorkloadRequest = {
@@ -0,0 +1,86 @@
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 GoogleProtobufTimestamp from "../../google/protobuf/timestamp.pb"
8
+
9
+ export enum ValueType {
10
+ STRING = "STRING",
11
+ BOOL = "BOOL",
12
+ INT64 = "INT64",
13
+ FLOAT64 = "FLOAT64",
14
+ BINARY = "BINARY",
15
+ }
16
+
17
+ export enum SpanRefType {
18
+ CHILD_OF = "CHILD_OF",
19
+ FOLLOWS_FROM = "FOLLOWS_FROM",
20
+ }
21
+
22
+ export type KeyValue = {
23
+ key?: string
24
+ vType?: ValueType
25
+ vStr?: string
26
+ vBool?: boolean
27
+ vInt64?: string
28
+ vFloat64?: number
29
+ vBinary?: Uint8Array
30
+ }
31
+
32
+ export type Log = {
33
+ time?: string
34
+ fields?: KeyValue[]
35
+ timestamp?: GoogleProtobufTimestamp.Timestamp
36
+ }
37
+
38
+ export type SpanRef = {
39
+ traceId?: string
40
+ spanId?: string
41
+ refType?: SpanRefType
42
+ }
43
+
44
+ export type Process = {
45
+ serviceName?: string
46
+ tags?: KeyValue[]
47
+ }
48
+
49
+ export type Span = {
50
+ traceId?: string
51
+ spanId?: string
52
+ operationName?: string
53
+ references?: SpanRef[]
54
+ flags?: number
55
+ startTime?: string
56
+ duration?: string
57
+ tags?: KeyValue[]
58
+ logs?: Log[]
59
+ process?: Process
60
+ processId?: string
61
+ warnings?: string[]
62
+ }
63
+
64
+ export type TraceProcessMapping = {
65
+ processId?: string
66
+ process?: Process
67
+ }
68
+
69
+ export type Trace = {
70
+ spans?: Span[]
71
+ processMap?: TraceProcessMapping[]
72
+ warnings?: string[]
73
+ traceId?: string
74
+ }
75
+
76
+ export type Batch = {
77
+ spans?: Span[]
78
+ process?: Process
79
+ }
80
+
81
+ export type DependencyLink = {
82
+ parent?: string
83
+ child?: string
84
+ callCount?: string
85
+ source?: string
86
+ }
@@ -0,0 +1,48 @@
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 InsightIoApiTracingV1alpha1Model from "./model.pb"
8
+ export type TracesResponseChunk = {
9
+ traces?: InsightIoApiTracingV1alpha1Model.Trace[]
10
+ }
11
+
12
+ export type SpansResponseChunk = {
13
+ spans?: InsightIoApiTracingV1alpha1Model.Span[]
14
+ }
15
+
16
+ export type TraceQueryParameters = {
17
+ serviceName?: string
18
+ operationName?: string
19
+ tags?: {[key: string]: string}
20
+ start?: string
21
+ end?: string
22
+ durationMin?: string
23
+ durationMax?: string
24
+ limit?: number
25
+ cluster?: string
26
+ namespace?: string
27
+ }
28
+
29
+ export type FindTracesRequest = {
30
+ query?: TraceQueryParameters
31
+ }
32
+
33
+ export type GetOperationsRequest = {
34
+ service?: string
35
+ spanKind?: string
36
+ }
37
+
38
+ export type Operation = {
39
+ name?: string
40
+ spanKind?: string
41
+ }
42
+
43
+ export type GetServicesRequest = {
44
+ }
45
+
46
+ export type GetServicesResponse = {
47
+ services?: string[]
48
+ }
@@ -15,4 +15,6 @@ export type OperationsQueryResponse = {
15
15
 
16
16
  export type TraceRequestById = {
17
17
  traceId?: string
18
+ cluster?: string
19
+ namespace?: string
18
20
  }