@daocloud-proto/skoala 0.4.1 → 0.5.0-2

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.
@@ -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 }>