@daocloud-proto/skoala 0.3.3 → 0.4.1-103

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.
Files changed (50) hide show
  1. package/api/general/v1alpha1/common.pb.ts +46 -0
  2. package/api/general/v1alpha1/resource.pb.ts +15 -0
  3. package/api/general/v1alpha1/service.pb.ts +22 -0
  4. package/api/general/v1alpha1/skoala.pb.ts +22 -30
  5. package/api/hosted/v1alpha1/api.pb.ts +251 -0
  6. package/api/hosted/v1alpha1/apilog.pb.ts +47 -0
  7. package/api/hosted/v1alpha1/gateway.pb.ts +248 -76
  8. package/api/hosted/v1alpha1/http.pb.ts +20 -0
  9. package/api/hosted/v1alpha1/nacos.pb.ts +104 -2
  10. package/api/hosted/v1alpha1/sentinel.pb.ts +46 -10
  11. package/api/hosted/v1alpha1/virtualhost.pb.ts +96 -0
  12. package/api/integrated/v1alpha1/insight.pb.ts +39 -4
  13. package/api/integrated/v1alpha1/instance.pb.ts +31 -19
  14. package/api/integrated/v1alpha1/registry.pb.ts +8 -5
  15. package/api/integrated/v1alpha1/service.pb.ts +8 -11
  16. package/api/skoala/v1alpha1/book.pb.ts +2 -2
  17. package/api/skoala/v1alpha1/skoala.pb.ts +75 -24
  18. package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
  19. package/fetch.pb.ts +109 -0
  20. package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
  21. package/google/api/annotations.pb.ts +1 -0
  22. package/google/api/http.pb.ts +34 -0
  23. package/google/protobuf/any.pb.ts +9 -0
  24. package/google/protobuf/api.pb.ts +32 -0
  25. package/google/protobuf/descriptor.pb.ts +262 -0
  26. package/google/protobuf/duration.pb.ts +9 -0
  27. package/google/protobuf/empty.pb.ts +7 -0
  28. package/google/protobuf/field_mask.pb.ts +8 -0
  29. package/google/protobuf/struct.pb.ts +33 -0
  30. package/google/protobuf/timestamp.pb.ts +9 -0
  31. package/google/protobuf/type.pb.ts +83 -0
  32. package/google/protobuf/wrappers.pb.ts +40 -0
  33. package/google/rpc/status.pb.ts +12 -0
  34. package/insight/v1alpha1/alert.pb.ts +291 -0
  35. package/insight/v1alpha1/notify.pb.ts +84 -0
  36. package/log/v1alpha1/log.pb.ts +122 -0
  37. package/metric/v1alpha1/metric.pb.ts +98 -0
  38. package/package.json +1 -1
  39. package/resource/v1alpha1/cluster.pb.ts +98 -0
  40. package/resource/v1alpha1/job.pb.ts +93 -0
  41. package/resource/v1alpha1/node.pb.ts +62 -0
  42. package/resource/v1alpha1/pod.pb.ts +82 -0
  43. package/resource/v1alpha1/service.pb.ts +61 -0
  44. package/resource/v1alpha1/type.pb.ts +9 -0
  45. package/resource/v1alpha1/workload.pb.ts +69 -0
  46. package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
  47. package/span_metric/v1alpha1/span_metric.pb.ts +61 -0
  48. package/tracing/v1alpha1/tracing.pb.ts +18 -0
  49. package/type/v1alpha1/page.pb.ts +11 -0
  50. package/validate/validate.pb.ts +266 -0
@@ -0,0 +1,93 @@
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
+ import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
+
10
+ export enum CronJobPhase {
11
+ CRONJOB_STATE_UNSPECIFIED = "CRONJOB_STATE_UNSPECIFIED",
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
+ }
17
+
18
+ export enum JobStatusJobState {
19
+ JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
20
+ WAITING = "WAITING",
21
+ RUNNING = "RUNNING",
22
+ COMPLETED = "COMPLETED",
23
+ DELETING = "DELETING",
24
+ FAILED = "FAILED",
25
+ }
26
+
27
+ export type ListJobsRequest = {
28
+ cluster?: string
29
+ namespace?: string
30
+ phases?: string[]
31
+ name?: string
32
+ page?: number
33
+ pageSize?: number
34
+ }
35
+
36
+ export type ListCronJobsResponse = {
37
+ items?: CronJobSummary[]
38
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
39
+ }
40
+
41
+ export type CronJobSummary = {
42
+ name?: string
43
+ namespace?: string
44
+ phase?: CronJobPhase
45
+ jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
46
+ }
47
+
48
+ export type CronJob = {
49
+ name?: string
50
+ cluster?: string
51
+ namespace?: string
52
+ phase?: CronJobPhase
53
+ createTimestamp?: string
54
+ jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
55
+ }
56
+
57
+ export type CronJobSpec = {
58
+ schedule?: string
59
+ }
60
+
61
+ export type GetJobRequest = {
62
+ cluster?: string
63
+ namespace?: string
64
+ name?: string
65
+ }
66
+
67
+ export type ListJobsResponse = {
68
+ items?: JobSummary[]
69
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
70
+ }
71
+
72
+ export type JobSummary = {
73
+ name?: string
74
+ namespace?: string
75
+ status?: JobStatus
76
+ jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
77
+ }
78
+
79
+ export type JobStatus = {
80
+ active?: number
81
+ succeed?: number
82
+ failed?: number
83
+ phase?: JobStatusJobState
84
+ }
85
+
86
+ export type Job = {
87
+ name?: string
88
+ cluster?: string
89
+ namespace?: string
90
+ status?: JobStatus
91
+ createTimestamp?: string
92
+ jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
93
+ }
@@ -0,0 +1,62 @@
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
+ import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
+
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
+ }
16
+
17
+ export type ListNodesRequest = {
18
+ cluster?: string
19
+ phases?: NodePhase[]
20
+ name?: string
21
+ page?: number
22
+ pageSize?: number
23
+ }
24
+
25
+ export type ListNodesResponse = {
26
+ items?: NodeSummary[]
27
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
28
+ }
29
+
30
+ export type NodeSummary = {
31
+ name?: string
32
+ phase?: NodePhase
33
+ podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
34
+ }
35
+
36
+ export type GetNodeRequest = {
37
+ cluster?: string
38
+ name?: string
39
+ }
40
+
41
+ export type Node = {
42
+ name?: string
43
+ cluster?: string
44
+ operatingSystem?: string
45
+ address?: string
46
+ creationTimestamp?: string
47
+ phase?: NodePhase
48
+ podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
49
+ usage?: usage
50
+ }
51
+
52
+ export type usage = {
53
+ cpuCapacity?: string
54
+ cpuAllocated?: number
55
+ cpuUsage?: number
56
+ memoryCapacity?: string
57
+ memoryAllocated?: number
58
+ memoryUsage?: number
59
+ storageCapacity?: string
60
+ storageAllocated?: string
61
+ storageUsage?: number
62
+ }
@@ -0,0 +1,82 @@
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
+ import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
+
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
+ }
18
+
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
+ }
25
+
26
+ export type ListPodsRequest = {
27
+ cluster?: string
28
+ namespace?: string
29
+ phases?: PodPhase[]
30
+ name?: string
31
+ page?: number
32
+ pageSize?: number
33
+ }
34
+
35
+ export type ListPodsResponse = {
36
+ items?: PodSummary[]
37
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
38
+ }
39
+
40
+ export type PodSummary = {
41
+ name?: string
42
+ namespace?: string
43
+ phase?: PodPhase
44
+ containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
45
+ podIp?: string
46
+ }
47
+
48
+ export type GetPodRequest = {
49
+ cluster?: string
50
+ namespace?: string
51
+ name?: string
52
+ }
53
+
54
+ export type Pod = {
55
+ name?: string
56
+ cluster?: string
57
+ namespace?: string
58
+ phase?: PodPhase
59
+ createTimestamp?: string
60
+ containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
61
+ podIp?: string
62
+ hostIp?: string
63
+ }
64
+
65
+ export type ListContainersRequest = {
66
+ cluster?: string
67
+ namespace?: string
68
+ name?: string
69
+ phases?: ContainerPhase[]
70
+ page?: number
71
+ pageSize?: number
72
+ }
73
+
74
+ export type ListContainersResponse = {
75
+ items?: ContainerSummary[]
76
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
77
+ }
78
+
79
+ export type ContainerSummary = {
80
+ name?: string
81
+ phase?: ContainerPhase
82
+ }
@@ -0,0 +1,61 @@
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 ServiceType {
10
+ SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
11
+ CLUSTER_IP = "CLUSTER_IP",
12
+ NODE_PORT = "NODE_PORT",
13
+ LOAD_BALANCER = "LOAD_BALANCER",
14
+ EXTERNAL_NAME = "EXTERNAL_NAME",
15
+ }
16
+
17
+ export enum WorkloadSumKind {
18
+ KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
19
+ DEPLOYMENT = "DEPLOYMENT",
20
+ STATEFULSET = "STATEFULSET",
21
+ DAEMONSET = "DAEMONSET",
22
+ }
23
+
24
+ export type ListServicesRequest = {
25
+ cluster?: string
26
+ namespace?: string
27
+ name?: string
28
+ page?: number
29
+ pageSize?: number
30
+ }
31
+
32
+ export type ListServicesResponse = {
33
+ items?: serviceSummary[]
34
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
35
+ }
36
+
37
+ export type serviceSummary = {
38
+ name?: string
39
+ namespace?: string
40
+ }
41
+
42
+ export type Service = {
43
+ name?: string
44
+ cluster?: string
45
+ namespace?: string
46
+ createTimestamp?: string
47
+ serviceType?: ServiceType
48
+ clusterIp?: string
49
+ workloadData?: WorkloadSum[]
50
+ }
51
+
52
+ export type WorkloadSum = {
53
+ workloadKind?: WorkloadSumKind
54
+ name?: string
55
+ }
56
+
57
+ export type GetServiceRequest = {
58
+ cluster?: string
59
+ namespace?: string
60
+ name?: string
61
+ }
@@ -0,0 +1,9 @@
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 ResourceNumSummary = {
7
+ totalNum?: number
8
+ readyNum?: number
9
+ }
@@ -0,0 +1,69 @@
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
+ import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
+
10
+ export enum WorkloadKind {
11
+ DEPLOYMENT = "DEPLOYMENT",
12
+ STATEFULSET = "STATEFULSET",
13
+ DAEMONSET = "DAEMONSET",
14
+ }
15
+
16
+ export enum WorkloadPhase {
17
+ WORKLOAD_STATE_UNKNOWN = "WORKLOAD_STATE_UNKNOWN",
18
+ WORKLOAD_STATE_RUNNING = "WORKLOAD_STATE_RUNNING",
19
+ WORKLOAD_STATE_DELETING = "WORKLOAD_STATE_DELETING",
20
+ WORKLOAD_STATE_NOT_READY = "WORKLOAD_STATE_NOT_READY",
21
+ WORKLOAD_STATE_STOPPED = "WORKLOAD_STATE_STOPPED",
22
+ WORKLOAD_STATE_WAITING = "WORKLOAD_STATE_WAITING",
23
+ }
24
+
25
+ export type ListWorkloadsRequest = {
26
+ cluster?: string
27
+ namespace?: string
28
+ name?: string
29
+ phases?: WorkloadPhase[]
30
+ page?: number
31
+ pageSize?: number
32
+ }
33
+
34
+ export type ListWorkloadsResponse = {
35
+ items?: workloadSummary[]
36
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
37
+ }
38
+
39
+ export type workloadSummary = {
40
+ name?: string
41
+ namespace?: string
42
+ phase?: WorkloadPhase
43
+ podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
44
+ }
45
+
46
+ export type Workload = {
47
+ name?: string
48
+ cluster?: string
49
+ namespace?: string
50
+ phase?: WorkloadPhase
51
+ createTimestamp?: string
52
+ podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
53
+ }
54
+
55
+ export type GetWorkloadRequest = {
56
+ cluster?: string
57
+ namespace?: string
58
+ name?: string
59
+ }
60
+
61
+ export type workloadUsage = {
62
+ cpuRequest?: string
63
+ cpuLimit?: string
64
+ cpuUsage?: string
65
+ memoryRequest?: string
66
+ memoryLimit?: string
67
+ memoryUsage?: string
68
+ networkUsage?: string
69
+ }
@@ -0,0 +1,14 @@
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 SpanKind {
8
+ SPAN_KIND_UNSPECIFIED = "SPAN_KIND_UNSPECIFIED",
9
+ SPAN_KIND_INTERNAL = "SPAN_KIND_INTERNAL",
10
+ SPAN_KIND_SERVER = "SPAN_KIND_SERVER",
11
+ SPAN_KIND_CLIENT = "SPAN_KIND_CLIENT",
12
+ SPAN_KIND_PRODUCER = "SPAN_KIND_PRODUCER",
13
+ SPAN_KIND_CONSUMER = "SPAN_KIND_CONSUMER",
14
+ }
@@ -0,0 +1,61 @@
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 InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
8
+ import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "./otelspankind.pb"
9
+ export type MetricsQueryBaseRequest = {
10
+ cluster?: string
11
+ namespace?: string
12
+ instanceName?: string
13
+ extensionFilters?: string
14
+ serviceNames?: string[]
15
+ groupByOperation?: boolean
16
+ endTime?: string
17
+ lookback?: string
18
+ step?: string
19
+ ratePer?: string
20
+ spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
21
+ }
22
+
23
+ export type GetApdexRequest = {
24
+ cluster?: string
25
+ namespace?: string
26
+ name?: string
27
+ apdexThreshold?: string
28
+ startTime?: string
29
+ endTime?: string
30
+ extensionFilters?: string
31
+ }
32
+
33
+ export type MetricsWithOperation = {
34
+ operationName?: string
35
+ metricGroups?: MetricsGroup[]
36
+ }
37
+
38
+ export type MetricsGroup = {
39
+ metrics?: InsightIoApiMetricV1alpha1Metric.samplePair[]
40
+ metricsLabel?: string
41
+ metricsAvg?: number
42
+ }
43
+
44
+ export type GetServiceDetailResponse = {
45
+ p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
46
+ p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
47
+ p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
48
+ reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
49
+ repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
50
+ errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
51
+ totalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
52
+ avgReqRate?: number
53
+ avgRepLatency?: number
54
+ avgErrorRate?: number
55
+ totalCalls?: number
56
+ apdex?: number
57
+ }
58
+
59
+ export type GetOperationDetailResponse = {
60
+ metrics?: MetricsWithOperation[]
61
+ }
@@ -0,0 +1,18 @@
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 QueryBaseRequest = {
7
+ cluster?: string
8
+ namespace?: string
9
+ serviceName?: string
10
+ }
11
+
12
+ export type OperationsQueryResponse = {
13
+ operations?: string[]
14
+ }
15
+
16
+ export type TraceRequestById = {
17
+ traceId?: string
18
+ }
@@ -0,0 +1,11 @@
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 Pagination = {
7
+ total?: number
8
+ page?: number
9
+ pageSize?: number
10
+ pages?: number
11
+ }