@daocloud-proto/skoala 0.3.3 → 0.4.0
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/api/general/v1alpha1/skoala.pb.ts +34 -7
- package/api/hosted/v1alpha1/api.pb.ts +260 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +112 -66
- package/api/hosted/v1alpha1/nacos.pb.ts +104 -2
- package/api/hosted/v1alpha1/sentinel.pb.ts +52 -10
- package/api/integrated/v1alpha1/insight.pb.ts +39 -4
- package/api/integrated/v1alpha1/instance.pb.ts +31 -19
- package/api/integrated/v1alpha1/registry.pb.ts +8 -5
- package/api/integrated/v1alpha1/service.pb.ts +8 -11
- package/api/skoala/v1alpha1/book.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +45 -20
- package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
- package/fetch.pb.ts +109 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/protobuf/any.pb.ts +9 -0
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/insight/v1alpha1/alert.pb.ts +291 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +113 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +101 -0
- package/resource/v1alpha1/job.pb.ts +93 -0
- package/resource/v1alpha1/node.pb.ts +62 -0
- package/resource/v1alpha1/pod.pb.ts +82 -0
- package/resource/v1alpha1/service.pb.ts +61 -0
- package/resource/v1alpha1/type.pb.ts +9 -0
- package/resource/v1alpha1/workload.pb.ts +69 -0
- package/span_metric/v1alpha1/openmetrics.pb.ts +130 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +100 -0
- package/type/v1alpha1/page.pb.ts +11 -0
- 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,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,130 @@
|
|
|
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
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
10
|
+
type OneOf<T> =
|
|
11
|
+
| { [k in keyof T]?: undefined }
|
|
12
|
+
| (
|
|
13
|
+
keyof T extends infer K ?
|
|
14
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
|
+
: never)
|
|
16
|
+
: never);
|
|
17
|
+
|
|
18
|
+
export enum MetricType {
|
|
19
|
+
UNKNOWN = "UNKNOWN",
|
|
20
|
+
GAUGE = "GAUGE",
|
|
21
|
+
COUNTER = "COUNTER",
|
|
22
|
+
STATE_SET = "STATE_SET",
|
|
23
|
+
INFO = "INFO",
|
|
24
|
+
HISTOGRAM = "HISTOGRAM",
|
|
25
|
+
GAUGE_HISTOGRAM = "GAUGE_HISTOGRAM",
|
|
26
|
+
SUMMARY = "SUMMARY",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type MetricSet = {
|
|
30
|
+
metricFamilies?: MetricFamily[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type MetricFamily = {
|
|
34
|
+
name?: string
|
|
35
|
+
type?: MetricType
|
|
36
|
+
unit?: string
|
|
37
|
+
help?: string
|
|
38
|
+
metrics?: Metric[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Metric = {
|
|
42
|
+
labels?: Label[]
|
|
43
|
+
metricPoints?: MetricPoint[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type Label = {
|
|
47
|
+
name?: string
|
|
48
|
+
value?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
type BaseMetricPoint = {
|
|
53
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type MetricPoint = BaseMetricPoint
|
|
57
|
+
& OneOf<{ unknownValue: UnknownValue; gaugeValue: GaugeValue; counterValue: CounterValue; histogramValue: HistogramValue; stateSetValue: StateSetValue; infoValue: InfoValue; summaryValue: SummaryValue }>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
type BaseUnknownValue = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type UnknownValue = BaseUnknownValue
|
|
64
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
type BaseGaugeValue = {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GaugeValue = BaseGaugeValue
|
|
71
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
type BaseCounterValue = {
|
|
75
|
+
created?: GoogleProtobufTimestamp.Timestamp
|
|
76
|
+
exemplar?: Exemplar
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type CounterValue = BaseCounterValue
|
|
80
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
81
|
+
|
|
82
|
+
export type HistogramValueBucket = {
|
|
83
|
+
count?: string
|
|
84
|
+
upperBound?: number
|
|
85
|
+
exemplar?: Exemplar
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
type BaseHistogramValue = {
|
|
90
|
+
count?: string
|
|
91
|
+
created?: GoogleProtobufTimestamp.Timestamp
|
|
92
|
+
buckets?: HistogramValueBucket[]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type HistogramValue = BaseHistogramValue
|
|
96
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
97
|
+
|
|
98
|
+
export type Exemplar = {
|
|
99
|
+
value?: number
|
|
100
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
101
|
+
label?: Label[]
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type StateSetValueState = {
|
|
105
|
+
enabled?: boolean
|
|
106
|
+
name?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type StateSetValue = {
|
|
110
|
+
states?: StateSetValueState[]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type InfoValue = {
|
|
114
|
+
info?: Label[]
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type SummaryValueQuantile = {
|
|
118
|
+
quantile?: number
|
|
119
|
+
value?: number
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
type BaseSummaryValue = {
|
|
124
|
+
count?: string
|
|
125
|
+
created?: GoogleProtobufTimestamp.Timestamp
|
|
126
|
+
quantile?: SummaryValueQuantile[]
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type SummaryValue = BaseSummaryValue
|
|
130
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
@@ -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,100 @@
|
|
|
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 GoogleProtobufDuration from "../../google/protobuf/duration.pb"
|
|
8
|
+
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
9
|
+
import * as InsightIoApiSpan_metricV1alpha1Openmetrics from "./openmetrics.pb"
|
|
10
|
+
import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "./otelspankind.pb"
|
|
11
|
+
export type MetricsQueryBaseRequest = {
|
|
12
|
+
cluster?: string
|
|
13
|
+
namespace?: string
|
|
14
|
+
instanceName?: string
|
|
15
|
+
extensionFilters?: string
|
|
16
|
+
serviceNames?: string[]
|
|
17
|
+
groupByOperation?: boolean
|
|
18
|
+
endTime?: string
|
|
19
|
+
lookback?: string
|
|
20
|
+
step?: string
|
|
21
|
+
ratePer?: string
|
|
22
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type GetLatenciesRequest = {
|
|
26
|
+
baseRequest?: MetricsQueryBaseRequest
|
|
27
|
+
quantile?: number
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type GetCallRatesRequest = {
|
|
31
|
+
baseRequest?: MetricsQueryBaseRequest
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type GetErrorRatesRequest = {
|
|
35
|
+
baseRequest?: MetricsQueryBaseRequest
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type GetMinStepDurationRequest = {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type GetMinStepDurationResponse = {
|
|
42
|
+
minStep?: GoogleProtobufDuration.Duration
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GetApdexRequest = {
|
|
46
|
+
cluster?: string
|
|
47
|
+
namespace?: string
|
|
48
|
+
name?: string
|
|
49
|
+
apdexThreshold?: string
|
|
50
|
+
startTime?: string
|
|
51
|
+
endTime?: string
|
|
52
|
+
extensionFilters?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type GetMetricsResponse = {
|
|
56
|
+
metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricFamily
|
|
57
|
+
metricsWithOperation?: MetricsFamilyWithOperation
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type MetricsFamilyWithOperation = {
|
|
61
|
+
name?: string
|
|
62
|
+
type?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricType
|
|
63
|
+
unit?: string
|
|
64
|
+
help?: string
|
|
65
|
+
metrics?: MetricsWithOperation[]
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type MetricsWithOperation = {
|
|
69
|
+
operationName?: string
|
|
70
|
+
metricGroups?: MetricsGroup[]
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type MetricsGroup = {
|
|
74
|
+
metrics?: InsightIoApiMetricV1alpha1Metric.samplePair[]
|
|
75
|
+
metricsLabel?: string
|
|
76
|
+
metricsAvg?: number
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type GetServiceDetailRequest = {
|
|
80
|
+
baseRequest?: MetricsQueryBaseRequest
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type GetServiceDetailResponse = {
|
|
84
|
+
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
85
|
+
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
86
|
+
p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
87
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
88
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
89
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
90
|
+
totalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
91
|
+
avgReqRate?: number
|
|
92
|
+
avgRepLatency?: number
|
|
93
|
+
avgErrorRate?: number
|
|
94
|
+
totalCalls?: number
|
|
95
|
+
apdex?: number
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type GetOperationDetailResponse = {
|
|
99
|
+
metrics?: MetricsWithOperation[]
|
|
100
|
+
}
|