@daocloud-proto/insight 0.6.3-8 → 0.7.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.
|
@@ -119,6 +119,9 @@ export class Alert {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
export class Log {
|
|
122
|
+
static SearchLog(req: InsightIoApiLogV1alpha1Log.SearchLogRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.SearchLogResponse> {
|
|
123
|
+
return fm.fetchReq<InsightIoApiLogV1alpha1Log.SearchLogRequest, InsightIoApiLogV1alpha1Log.SearchLogResponse>(`/apis/insight.io/v1alpha1/log/search?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
124
|
+
}
|
|
122
125
|
static QueryLog(req: InsightIoApiLogV1alpha1Log.QueryLogRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.QueryLogResponse> {
|
|
123
126
|
return fm.fetchReq<InsightIoApiLogV1alpha1Log.QueryLogRequest, InsightIoApiLogV1alpha1Log.QueryLogResponse>(`/apis/insight.io/v1alpha1/log/query`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
124
127
|
}
|
|
@@ -228,7 +231,7 @@ export class Resource {
|
|
|
228
231
|
}
|
|
229
232
|
export class Tracing {
|
|
230
233
|
static QueryOperations(req: InsightIoApiTracingV1alpha1Tracing.QueryBaseRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Tracing.OperationsQueryResponse> {
|
|
231
|
-
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.QueryBaseRequest, InsightIoApiTracingV1alpha1Tracing.OperationsQueryResponse>(`/apis/insight.io/v1alpha1/
|
|
234
|
+
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.QueryBaseRequest, InsightIoApiTracingV1alpha1Tracing.OperationsQueryResponse>(`/apis/insight.io/v1alpha1/traces/operations?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
232
235
|
}
|
|
233
236
|
static FindJaegerTraces(req: InsightIoApiTracingV1alpha1Query.TraceQueryParameters, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Query.TracesResponseChunk> {
|
|
234
237
|
return fm.fetchReq<InsightIoApiTracingV1alpha1Query.TraceQueryParameters, InsightIoApiTracingV1alpha1Query.TracesResponseChunk>(`/apis/insight.io/v1alpha1/jaeger/v2/traces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -236,11 +239,8 @@ export class Tracing {
|
|
|
236
239
|
static FindJaegerTrace(req: InsightIoApiTracingV1alpha1Tracing.TraceRequestById, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Query.TracesResponseChunk> {
|
|
237
240
|
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.TraceRequestById, InsightIoApiTracingV1alpha1Query.TracesResponseChunk>(`/apis/insight.io/v1alpha1/jaeger/v2/traces/${req["traceId"]}?${fm.renderURLSearchParams(req, ["traceId"])}`, {...initReq, method: "GET"})
|
|
238
241
|
}
|
|
239
|
-
static
|
|
240
|
-
return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.
|
|
241
|
-
}
|
|
242
|
-
static GetServiceApdex(req: InsightIoApiSpan_metricV1alpha1Span_metric.GetApdexRequest, initReq?: fm.InitReq): Promise<InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse> {
|
|
243
|
-
return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.GetApdexRequest, InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse>(`/apis/insight.io/v1alpha1/traces/apdex`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
242
|
+
static GetServiceApdex(req: InsightIoApiSpan_metricV1alpha1Span_metric.GetApdexRequest, initReq?: fm.InitReq): Promise<InsightIoApiMetricV1alpha1Metric.PrometheusQueryResult> {
|
|
243
|
+
return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.GetApdexRequest, InsightIoApiMetricV1alpha1Metric.PrometheusQueryResult>(`/apis/insight.io/v1alpha1/traces/apdex?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
244
244
|
}
|
|
245
245
|
static GetServiceDetail(req: InsightIoApiSpan_metricV1alpha1Span_metric.MetricsQueryBaseRequest, initReq?: fm.InitReq): Promise<InsightIoApiSpan_metricV1alpha1Span_metric.GetServiceDetailResponse> {
|
|
246
246
|
return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.MetricsQueryBaseRequest, InsightIoApiSpan_metricV1alpha1Span_metric.GetServiceDetailResponse>(`/apis/insight.io/v1alpha1/traces/service-detail?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -14,6 +14,15 @@ type OneOf<T> =
|
|
|
14
14
|
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
15
|
: never)
|
|
16
16
|
: never);
|
|
17
|
+
export type SearchLogRequest = {
|
|
18
|
+
index?: string
|
|
19
|
+
query?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type SearchLogResponse = {
|
|
23
|
+
response?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
export type LogQueryResourceFilter = {
|
|
18
27
|
logSearch?: string[]
|
|
19
28
|
clusterFilter?: string[]
|
package/package.json
CHANGED
|
@@ -65,12 +65,9 @@ export type ClusterSummary = {
|
|
|
65
65
|
name?: string
|
|
66
66
|
kubeSystemId?: string
|
|
67
67
|
phase?: ClusterPhase
|
|
68
|
-
provider?: ClusterProvider
|
|
69
|
-
kubernetesVersion?: string
|
|
70
|
-
creationTimestamp?: string
|
|
71
68
|
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
72
|
-
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
73
69
|
insightAgentStatus?: InsightAgentStatus
|
|
70
|
+
insightAgentCreateTime?: string
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
export type ClusterDetail = {
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as GoogleProtobufDuration from "../../google/protobuf/duration.pb"
|
|
8
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
9
|
-
import * as InsightIoApiSpan_metricV1alpha1Openmetrics from "./openmetrics.pb"
|
|
10
8
|
import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "./otelspankind.pb"
|
|
11
9
|
export type MetricsQueryBaseRequest = {
|
|
12
10
|
cluster?: string
|
|
@@ -22,26 +20,6 @@ export type MetricsQueryBaseRequest = {
|
|
|
22
20
|
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
23
21
|
}
|
|
24
22
|
|
|
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
23
|
export type GetApdexRequest = {
|
|
46
24
|
cluster?: string
|
|
47
25
|
namespace?: string
|
|
@@ -52,19 +30,6 @@ export type GetApdexRequest = {
|
|
|
52
30
|
extensionFilters?: string
|
|
53
31
|
}
|
|
54
32
|
|
|
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
33
|
export type MetricsWithOperation = {
|
|
69
34
|
operationName?: string
|
|
70
35
|
metricGroups?: MetricsGroup[]
|
|
@@ -76,10 +41,6 @@ export type MetricsGroup = {
|
|
|
76
41
|
metricsAvg?: number
|
|
77
42
|
}
|
|
78
43
|
|
|
79
|
-
export type GetServiceDetailRequest = {
|
|
80
|
-
baseRequest?: MetricsQueryBaseRequest
|
|
81
|
-
}
|
|
82
|
-
|
|
83
44
|
export type GetServiceDetailResponse = {
|
|
84
45
|
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
85
46
|
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
@@ -1,130 +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
|
-
|
|
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 }>
|