@rsdk/builtin-contract 1.0.3

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/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 1.0.3 (2023-05-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ * builtin make not private in npm ([50c83b6](https://github.com/R-Vision/rsdk/commit/50c83b6454f9a89f1e99d3b33a497ce2c029d8c6))
11
+
12
+ ## 1.0.2 (2023-05-10)
13
+
14
+ **Note:** Version bump only for package @rsdk/builtin-contract
15
+
16
+ ## 1.0.1 (2023-05-07)
17
+
18
+ **Note:** Version bump only for package @rsdk/builtin-contract
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ Structure
2
+ ===
3
+
4
+ [Protocol Documentation](docs/README.md)
5
+
6
+ grpc.health.v1
7
+ ---
8
+
9
+ **Imports:**
10
+
11
+ [![Health schema](docs/schemas/HealthImports.svg "Health")](docs/schemas/HealthImports.png)
12
+
13
+ **Types:**
14
+
15
+ [![Health schema](docs/schemas/Health.svg "Health")](docs/schemas/Health.png)
16
+ grpc.metrics.v1
17
+ ---
18
+
19
+ **Imports:**
20
+
21
+ [![Metrics schema](docs/schemas/MetricsImports.svg "Metrics")](docs/schemas/MetricsImports.png)
22
+
23
+ **Types:**
24
+
25
+ [![Metrics schema](docs/schemas/Metrics.svg "Metrics")](docs/schemas/Metrics.png)
package/buf.work.yaml ADDED
@@ -0,0 +1,3 @@
1
+ version: v1
2
+ directories:
3
+ - proto
package/docs/README.md ADDED
@@ -0,0 +1,167 @@
1
+ # Protocol Documentation
2
+ <a name="top"></a>
3
+
4
+ ## Table of Contents
5
+
6
+ - [grpc/health/v1/health.proto](#grpc_health_v1_health-proto)
7
+ - [HealthCheckRequest](#grpc-health-v1-HealthCheckRequest)
8
+ - [HealthCheckResponse](#grpc-health-v1-HealthCheckResponse)
9
+
10
+ - [HealthCheckResponse.ServingStatus](#grpc-health-v1-HealthCheckResponse-ServingStatus)
11
+
12
+ - [Health](#grpc-health-v1-Health)
13
+
14
+ - [grpc/metrics/v1/metrics.proto](#grpc_metrics_v1_metrics-proto)
15
+ - [GetRequest](#grpc-metrics-v1-GetRequest)
16
+ - [GetResponse](#grpc-metrics-v1-GetResponse)
17
+
18
+ - [Metrics](#grpc-metrics-v1-Metrics)
19
+
20
+ - [Scalar Value Types](#scalar-value-types)
21
+
22
+
23
+
24
+ <a name="grpc_health_v1_health-proto"></a>
25
+ <p align="right"><a href="#top">Top</a></p>
26
+
27
+ ## grpc/health/v1/health.proto
28
+
29
+
30
+
31
+ <a name="grpc-health-v1-HealthCheckRequest"></a>
32
+
33
+ ### HealthCheckRequest
34
+ HealthCheckRequest
35
+
36
+
37
+ | Field | Type | Label | Description |
38
+ | ----- | ---- | ----- | ----------- |
39
+ | service | [string](#string) | | service |
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <a name="grpc-health-v1-HealthCheckResponse"></a>
47
+
48
+ ### HealthCheckResponse
49
+ HealthCheckResponse
50
+
51
+
52
+ | Field | Type | Label | Description |
53
+ | ----- | ---- | ----- | ----------- |
54
+ | status | [HealthCheckResponse.ServingStatus](#grpc-health-v1-HealthCheckResponse-ServingStatus) | | status |
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <a name="grpc-health-v1-HealthCheckResponse-ServingStatus"></a>
64
+
65
+ ### HealthCheckResponse.ServingStatus
66
+ ServingStatus
67
+
68
+ | Name | Number | Description |
69
+ | ---- | ------ | ----------- |
70
+ | UNKNOWN | 0 | UNKNOWN buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX buf:lint:ignore ENUM_VALUE_PREFIX |
71
+ | SERVING | 1 | SERVING buf:lint:ignore ENUM_VALUE_PREFIX |
72
+ | NOT_SERVING | 2 | NOT_SERVING buf:lint:ignore ENUM_VALUE_PREFIX |
73
+ | SERVICE_UNKNOWN | 3 | SERVICE_UNKNOWN — Used only by the Watch method. buf:lint:ignore ENUM_VALUE_PREFIX |
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <a name="grpc-health-v1-Health"></a>
82
+
83
+ ### Health
84
+ buf:lint:ignore SERVICE_SUFFIX
85
+ Health
86
+
87
+ | Method Name | Request Type | Response Type | Description |
88
+ | ----------- | ------------ | ------------- | ------------|
89
+ | Check | [HealthCheckRequest](#grpc-health-v1-HealthCheckRequest) | [HealthCheckResponse](#grpc-health-v1-HealthCheckResponse) | Check buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_REQUEST_STANDARD_NAME buf:lint:ignore RPC_RESPONSE_STANDARD_NAME |
90
+ | Watch | [HealthCheckRequest](#grpc-health-v1-HealthCheckRequest) | [HealthCheckResponse](#grpc-health-v1-HealthCheckResponse) stream | Watch buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_REQUEST_STANDARD_NAME buf:lint:ignore RPC_RESPONSE_STANDARD_NAME |
91
+
92
+
93
+
94
+
95
+
96
+ <a name="grpc_metrics_v1_metrics-proto"></a>
97
+ <p align="right"><a href="#top">Top</a></p>
98
+
99
+ ## grpc/metrics/v1/metrics.proto
100
+ metrics
101
+
102
+
103
+ <a name="grpc-metrics-v1-GetRequest"></a>
104
+
105
+ ### GetRequest
106
+ Empty request
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <a name="grpc-metrics-v1-GetResponse"></a>
114
+
115
+ ### GetResponse
116
+ Metrics response
117
+
118
+
119
+ | Field | Type | Label | Description |
120
+ | ----- | ---- | ----- | ----------- |
121
+ | metrics | [string](#string) | | String in prometheus format |
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <a name="grpc-metrics-v1-Metrics"></a>
135
+
136
+ ### Metrics
137
+ MetricsService
138
+ buf:lint:ignore SERVICE_SUFFIX
139
+
140
+ | Method Name | Request Type | Response Type | Description |
141
+ | ----------- | ------------ | ------------- | ------------|
142
+ | Get | [GetRequest](#grpc-metrics-v1-GetRequest) | [GetResponse](#grpc-metrics-v1-GetResponse) | Get metrics in stringiried prometheus format |
143
+
144
+
145
+
146
+
147
+
148
+ ## Scalar Value Types
149
+
150
+ | .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
151
+ | ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- |
152
+ | <a name="double" /> double | | double | double | float | float64 | double | float | Float |
153
+ | <a name="float" /> float | | float | float | float | float32 | float | float | Float |
154
+ | <a name="int32" /> int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
155
+ | <a name="int64" /> int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
156
+ | <a name="uint32" /> uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
157
+ | <a name="uint64" /> uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
158
+ | <a name="sint32" /> sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
159
+ | <a name="sint64" /> sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
160
+ | <a name="fixed32" /> fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
161
+ | <a name="fixed64" /> fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
162
+ | <a name="sfixed32" /> sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
163
+ | <a name="sfixed64" /> sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
164
+ | <a name="bool" /> bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass |
165
+ | <a name="string" /> string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
166
+ | <a name="bytes" /> bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |
167
+
package/docs/index.md ADDED
@@ -0,0 +1,167 @@
1
+ # Protocol Documentation
2
+ <a name="top"></a>
3
+
4
+ ## Table of Contents
5
+
6
+ - [grpc/health/v1/health.proto](#grpc_health_v1_health-proto)
7
+ - [HealthCheckRequest](#grpc-health-v1-HealthCheckRequest)
8
+ - [HealthCheckResponse](#grpc-health-v1-HealthCheckResponse)
9
+
10
+ - [HealthCheckResponse.ServingStatus](#grpc-health-v1-HealthCheckResponse-ServingStatus)
11
+
12
+ - [Health](#grpc-health-v1-Health)
13
+
14
+ - [grpc/metrics/v1/metrics.proto](#grpc_metrics_v1_metrics-proto)
15
+ - [GetRequest](#grpc-metrics-v1-GetRequest)
16
+ - [GetResponse](#grpc-metrics-v1-GetResponse)
17
+
18
+ - [Metrics](#grpc-metrics-v1-Metrics)
19
+
20
+ - [Scalar Value Types](#scalar-value-types)
21
+
22
+
23
+
24
+ <a name="grpc_health_v1_health-proto"></a>
25
+ <p align="right"><a href="#top">Top</a></p>
26
+
27
+ ## grpc/health/v1/health.proto
28
+
29
+
30
+
31
+ <a name="grpc-health-v1-HealthCheckRequest"></a>
32
+
33
+ ### HealthCheckRequest
34
+ HealthCheckRequest
35
+
36
+
37
+ | Field | Type | Label | Description |
38
+ | ----- | ---- | ----- | ----------- |
39
+ | service | [string](#string) | | service |
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <a name="grpc-health-v1-HealthCheckResponse"></a>
47
+
48
+ ### HealthCheckResponse
49
+ HealthCheckResponse
50
+
51
+
52
+ | Field | Type | Label | Description |
53
+ | ----- | ---- | ----- | ----------- |
54
+ | status | [HealthCheckResponse.ServingStatus](#grpc-health-v1-HealthCheckResponse-ServingStatus) | | status |
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <a name="grpc-health-v1-HealthCheckResponse-ServingStatus"></a>
64
+
65
+ ### HealthCheckResponse.ServingStatus
66
+ ServingStatus
67
+
68
+ | Name | Number | Description |
69
+ | ---- | ------ | ----------- |
70
+ | UNKNOWN | 0 | buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX buf:lint:ignore ENUM_VALUE_PREFIX UNKNOWN |
71
+ | SERVING | 1 | buf:lint:ignore ENUM_VALUE_PREFIX SERVING |
72
+ | NOT_SERVING | 2 | buf:lint:ignore ENUM_VALUE_PREFIX NOT_SERVING |
73
+ | SERVICE_UNKNOWN | 3 | buf:lint:ignore ENUM_VALUE_PREFIX SERVICE_UNKNOWN — Used only by the Watch method. |
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <a name="grpc-health-v1-Health"></a>
82
+
83
+ ### Health
84
+ buf:lint:ignore SERVICE_SUFFIX
85
+ Health
86
+
87
+ | Method Name | Request Type | Response Type | Description |
88
+ | ----------- | ------------ | ------------- | ------------|
89
+ | Check | [HealthCheckRequest](#grpc-health-v1-HealthCheckRequest) | [HealthCheckResponse](#grpc-health-v1-HealthCheckResponse) | buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_REQUEST_STANDARD_NAME buf:lint:ignore RPC_RESPONSE_STANDARD_NAME Check |
90
+ | Watch | [HealthCheckRequest](#grpc-health-v1-HealthCheckRequest) | [HealthCheckResponse](#grpc-health-v1-HealthCheckResponse) stream | buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_REQUEST_STANDARD_NAME buf:lint:ignore RPC_RESPONSE_STANDARD_NAME Watch |
91
+
92
+
93
+
94
+
95
+
96
+ <a name="grpc_metrics_v1_metrics-proto"></a>
97
+ <p align="right"><a href="#top">Top</a></p>
98
+
99
+ ## grpc/metrics/v1/metrics.proto
100
+ metrics
101
+
102
+
103
+ <a name="grpc-metrics-v1-GetRequest"></a>
104
+
105
+ ### GetRequest
106
+ Empty request
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <a name="grpc-metrics-v1-GetResponse"></a>
114
+
115
+ ### GetResponse
116
+ Metrics response
117
+
118
+
119
+ | Field | Type | Label | Description |
120
+ | ----- | ---- | ----- | ----------- |
121
+ | metrics | [string](#string) | | String in prometheus format |
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <a name="grpc-metrics-v1-Metrics"></a>
135
+
136
+ ### Metrics
137
+ buf:lint:ignore SERVICE_SUFFIX
138
+ MetricsService
139
+
140
+ | Method Name | Request Type | Response Type | Description |
141
+ | ----------- | ------------ | ------------- | ------------|
142
+ | Get | [GetRequest](#grpc-metrics-v1-GetRequest) | [GetResponse](#grpc-metrics-v1-GetResponse) | Get metrics in prometheus format |
143
+
144
+
145
+
146
+
147
+
148
+ ## Scalar Value Types
149
+
150
+ | .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
151
+ | ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- |
152
+ | <a name="double" /> double | | double | double | float | float64 | double | float | Float |
153
+ | <a name="float" /> float | | float | float | float | float32 | float | float | Float |
154
+ | <a name="int32" /> int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
155
+ | <a name="int64" /> int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
156
+ | <a name="uint32" /> uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
157
+ | <a name="uint64" /> uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
158
+ | <a name="sint32" /> sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
159
+ | <a name="sint64" /> sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
160
+ | <a name="fixed32" /> fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
161
+ | <a name="fixed64" /> fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
162
+ | <a name="sfixed32" /> sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
163
+ | <a name="sfixed64" /> sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
164
+ | <a name="bool" /> bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass |
165
+ | <a name="string" /> string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
166
+ | <a name="bytes" /> bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |
167
+
@@ -0,0 +1,25 @@
1
+ digraph protodot {
2
+ Node_Ja_100 [ shape=plaintext, tooltip="grpc.health.v1.HealthCheckRequest", label=<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0" BGCOLOR="#fffaf0"><TR><TD COLSPAN="4" PORT="header" BGCOLOR="#e31a1c" ALIGN="right"><b>HealthCheckRequest</b></TD></TR><TR><TD ALIGN="right"></TD><TD ALIGN="right">1</TD><TD ALIGN="left">service</TD><TD BGCOLOR="#a6cee3" PORT="poservice" ALIGN="right" TITLE="string"><i>string</i></TD></TR></TABLE>> ];
3
+ Node_Ja_101 [ shape=plaintext, tooltip="grpc.health.v1.HealthCheckResponse", label=<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0" BGCOLOR="#fffaf0"><TR><TD COLSPAN="4" PORT="header" BGCOLOR="#e31a1c" ALIGN="right"><b>HealthCheckResponse</b></TD></TR><TR><TD ALIGN="right"></TD><TD ALIGN="right">1</TD><TD ALIGN="left">status</TD><TD BGCOLOR="#b2df8a" PORT="postatus" ALIGN="right"><u>ServingStatus</u></TD></TR></TABLE>> ];
4
+ Node_Ja_101:postatus:e->Node_Ja_102[ color="#008000", tooltip="Ja_101 --> Ja_102" ];
5
+ Node_Ja_103 [ shape=plaintext, tooltip="Health", label=<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0" BGCOLOR="#ffd700"><TR><TD COLSPAN="3" PORT="header" BGCOLOR="#ff7f50" ALIGN="right"><b>Health</b></TD></TR><TR><TD ALIGN="left"><b>Check</b></TD><TD></TD><TD PORT="poCheck_request" ALIGN="right">HealthCheckRequest</TD></TR><TR style="border-bottom: 1px solid red"><TD></TD><TD BGCOLOR="#ff7f50"></TD><TD PORT="poCheck_response" ALIGN="right" BGCOLOR="#ff7f50">HealthCheckResponse</TD></TR><TR><TD ALIGN="left"><b>Watch</b></TD><TD></TD><TD PORT="poWatch_request" ALIGN="right">HealthCheckRequest</TD></TR><TR style="border-bottom: 1px solid red"><TD></TD><TD BGCOLOR="#ff7f50">stream</TD><TD PORT="poWatch_response" ALIGN="right" BGCOLOR="#ff7f50">HealthCheckResponse</TD></TR></TABLE>> ];
6
+ Node_Ja_103:poCheck_request:e->Node_Ja_100:header[ color="#000000", tooltip="Ja_103 --> Ja_100" ];
7
+ Node_Ja_103:poCheck_response:e->Node_Ja_101:header[ color="#000000", tooltip="Ja_103 --> Ja_101" ];
8
+ Node_Ja_103:poWatch_request:e->Node_Ja_100:header[ color="#000000", tooltip="Ja_103 --> Ja_100" ];
9
+ Node_Ja_103:poWatch_response:e->Node_Ja_101:header[ color="#000000", tooltip="Ja_103 --> Ja_101" ];
10
+ bgcolor="transparent";
11
+ label="grpc.health.v1";
12
+ node [ shape=plaintext, fontsize=10, fontname="Ubuntu" ] ;
13
+ rankdir=LR;
14
+ subgraph cluster_efd015169d3a {
15
+ label="grpc.health.v1";
16
+ tooltip="grpc.health.v1";
17
+ style=filled;
18
+ fillcolor="#caff70";
19
+ Node_Ja_102 [ shape=plaintext, tooltip="ServingStatus", label=<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0" BGCOLOR="#b2df8a"><TR><TD COLSPAN="2" PORT="header" BGCOLOR="#33a02c" ALIGN="right">enum <b>ServingStatus</b></TD></TR><TR><TD BGCOLOR="#b2df8a" ALIGN="left">UNKNOWN</TD><TD BGCOLOR="#b2df8a" ALIGN="left">0</TD></TR><TR><TD BGCOLOR="#b2df8a" ALIGN="left">SERVING</TD><TD BGCOLOR="#b2df8a" ALIGN="left">1</TD></TR><TR><TD BGCOLOR="#b2df8a" ALIGN="left">NOT_SERVING</TD><TD BGCOLOR="#b2df8a" ALIGN="left">2</TD></TR><TR><TD BGCOLOR="#b2df8a" ALIGN="left">SERVICE_UNKNOWN</TD><TD BGCOLOR="#b2df8a" ALIGN="left">3</TD></TR></TABLE>> ];
20
+
21
+ }
22
+ ;
23
+ tooltip="grpc.health.v1";
24
+
25
+ }
Binary file
@@ -0,0 +1,149 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <!-- Generated by graphviz version 2.43.0 (0)
5
+ -->
6
+ <!-- Title: protodot Pages: 1 -->
7
+ <svg width="780pt" height="216pt"
8
+ viewBox="0.00 0.00 780.00 215.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+ <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 211.5)">
10
+ <title>protodot</title>
11
+ <g id="a_graph0"><a xlink:title="grpc.health.v1">
12
+ <text text-anchor="middle" x="386" y="-7.8" font-family="Times,serif" font-size="14.00">grpc.health.v1</text>
13
+ </a>
14
+ </g>
15
+ <g id="clust1" class="cluster">
16
+ <title>cluster_efd015169d3a</title>
17
+ <g id="a_clust1"><a xlink:title="grpc.health.v1">
18
+ <polygon fill="#caff70" stroke="black" points="555,-31 555,-176 764,-176 764,-31 555,-31"/>
19
+ <text text-anchor="middle" x="659.5" y="-160.8" font-family="Times,serif" font-size="14.00">grpc.health.v1</text>
20
+ </a>
21
+ </g>
22
+ </g>
23
+ <!-- Node_Ja_100 -->
24
+ <g id="node1" class="node">
25
+ <title>Node_Ja_100</title>
26
+ <g id="a_node1"><a xlink:title="grpc.health.v1.HealthCheckRequest">
27
+ <polygon fill="#fffaf0" stroke="transparent" points="339,-148 339,-188 514,-188 514,-148 339,-148"/>
28
+ <polygon fill="#e31a1c" stroke="transparent" points="340.5,-168 340.5,-187 513.5,-187 513.5,-168 340.5,-168"/>
29
+ <text text-anchor="start" x="342.5" y="-174.8" font-family="Times,serif" font-weight="bold" font-size="14.00">HealthCheckRequest</text>
30
+ <text text-anchor="start" x="385.5" y="-154.8" font-family="Times,serif" font-size="14.00">1</text>
31
+ <text text-anchor="start" x="399.5" y="-154.8" font-family="Times,serif" font-size="14.00">service</text>
32
+ <polygon fill="#a6cee3" stroke="transparent" points="459.5,-149 459.5,-168 513.5,-168 513.5,-149 459.5,-149"/>
33
+ <text text-anchor="start" x="468.5" y="-155.8" font-family="Times,serif" font-style="italic" font-size="14.00">string</text>
34
+ <polygon fill="none" stroke="black" points="339,-148 339,-188 514,-188 514,-148 339,-148"/>
35
+ </a>
36
+ </g>
37
+ </g>
38
+ <!-- Node_Ja_101 -->
39
+ <g id="node2" class="node">
40
+ <title>Node_Ja_101</title>
41
+ <g id="a_node2"><a xlink:title="grpc.health.v1.HealthCheckResponse">
42
+ <polygon fill="#fffaf0" stroke="transparent" points="334,-82 334,-122 519,-122 519,-82 334,-82"/>
43
+ <polygon fill="#e31a1c" stroke="transparent" points="335.5,-102 335.5,-121 518.5,-121 518.5,-102 335.5,-102"/>
44
+ <text text-anchor="start" x="337.5" y="-108.8" font-family="Times,serif" font-weight="bold" font-size="14.00">HealthCheckResponse</text>
45
+ <text text-anchor="start" x="347.5" y="-88.8" font-family="Times,serif" font-size="14.00">1</text>
46
+ <text text-anchor="start" x="361.5" y="-88.8" font-family="Times,serif" font-size="14.00">status</text>
47
+ <polygon fill="#b2df8a" stroke="transparent" points="409.5,-83 409.5,-102 518.5,-102 518.5,-83 409.5,-83"/>
48
+ <text text-anchor="start" x="413.5" y="-89.8" font-family="Times,serif" text-decoration="underline" font-size="14.00">ServingStatus</text>
49
+ <polygon fill="none" stroke="black" points="334,-82 334,-122 519,-122 519,-82 334,-82"/>
50
+ </a>
51
+ </g>
52
+ </g>
53
+ <!-- Node_Ja_102 -->
54
+ <g id="node3" class="node">
55
+ <title>Node_Ja_102</title>
56
+ <g id="a_node3"><a xlink:title="ServingStatus">
57
+ <polygon fill="#b2df8a" stroke="transparent" points="571,-43.5 571,-140.5 748,-140.5 748,-43.5 571,-43.5"/>
58
+ <polygon fill="#33a02c" stroke="transparent" points="572.5,-120 572.5,-139 747.5,-139 747.5,-120 572.5,-120"/>
59
+ <text text-anchor="start" x="588.5" y="-126.8" font-family="Times,serif" font-size="14.00">enum </text>
60
+ <text text-anchor="start" x="633.5" y="-126.8" font-family="Times,serif" font-weight="bold" font-size="14.00">ServingStatus</text>
61
+ <polygon fill="#b2df8a" stroke="transparent" points="572.5,-101 572.5,-120 733.5,-120 733.5,-101 572.5,-101"/>
62
+ <text text-anchor="start" x="574.5" y="-106.8" font-family="Times,serif" font-size="14.00">UNKNOWN</text>
63
+ <polygon fill="#b2df8a" stroke="transparent" points="733.5,-101 733.5,-120 747.5,-120 747.5,-101 733.5,-101"/>
64
+ <text text-anchor="start" x="735.5" y="-106.8" font-family="Times,serif" font-size="14.00">0</text>
65
+ <polygon fill="#b2df8a" stroke="transparent" points="572.5,-82 572.5,-101 733.5,-101 733.5,-82 572.5,-82"/>
66
+ <text text-anchor="start" x="574.5" y="-87.8" font-family="Times,serif" font-size="14.00">SERVING</text>
67
+ <polygon fill="#b2df8a" stroke="transparent" points="733.5,-82 733.5,-101 747.5,-101 747.5,-82 733.5,-82"/>
68
+ <text text-anchor="start" x="735.5" y="-87.8" font-family="Times,serif" font-size="14.00">1</text>
69
+ <polygon fill="#b2df8a" stroke="transparent" points="572.5,-63 572.5,-82 733.5,-82 733.5,-63 572.5,-63"/>
70
+ <text text-anchor="start" x="574.5" y="-68.8" font-family="Times,serif" font-size="14.00">NOT_SERVING</text>
71
+ <polygon fill="#b2df8a" stroke="transparent" points="733.5,-63 733.5,-82 747.5,-82 747.5,-63 733.5,-63"/>
72
+ <text text-anchor="start" x="735.5" y="-68.8" font-family="Times,serif" font-size="14.00">2</text>
73
+ <polygon fill="#b2df8a" stroke="transparent" points="572.5,-44 572.5,-63 733.5,-63 733.5,-44 572.5,-44"/>
74
+ <text text-anchor="start" x="574.5" y="-49.8" font-family="Times,serif" font-size="14.00">SERVICE_UNKNOWN</text>
75
+ <polygon fill="#b2df8a" stroke="transparent" points="733.5,-44 733.5,-63 747.5,-63 747.5,-44 733.5,-44"/>
76
+ <text text-anchor="start" x="735.5" y="-49.8" font-family="Times,serif" font-size="14.00">3</text>
77
+ <polygon fill="none" stroke="black" points="571,-43.5 571,-140.5 748,-140.5 748,-43.5 571,-43.5"/>
78
+ </a>
79
+ </g>
80
+ </g>
81
+ <!-- Node_Ja_101&#45;&gt;Node_Ja_102 -->
82
+ <g id="edge1" class="edge">
83
+ <title>Node_Ja_101:e&#45;&gt;Node_Ja_102</title>
84
+ <g id="a_edge1"><a xlink:title="Ja_101 &#45;&#45;&gt; Ja_102">
85
+ <path fill="none" stroke="#008000" d="M519.5,-92C530.22,-92 541.4,-92 552.56,-92"/>
86
+ <polygon fill="#008000" stroke="#008000" points="552.79,-95.5 562.79,-92 552.79,-88.5 552.79,-95.5"/>
87
+ </a>
88
+ </g>
89
+ </g>
90
+ <!-- Node_Ja_103 -->
91
+ <g id="node4" class="node">
92
+ <title>Node_Ja_103</title>
93
+ <g id="a_node4"><a xlink:title="Health">
94
+ <polygon fill="#ffd700" stroke="transparent" points="8,-106.5 8,-203.5 282,-203.5 282,-106.5 8,-106.5"/>
95
+ <polygon fill="#ff7f50" stroke="transparent" points="9,-183 9,-202 281,-202 281,-183 9,-183"/>
96
+ <text text-anchor="start" x="224" y="-189.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Health</text>
97
+ <text text-anchor="start" x="11" y="-170.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Check</text>
98
+ <text text-anchor="start" x="128" y="-169.8" font-family="Times,serif" font-size="14.00">HealthCheckRequest</text>
99
+ <polygon fill="#ff7f50" stroke="transparent" points="62,-145 62,-164 117,-164 117,-145 62,-145"/>
100
+ <polygon fill="#ff7f50" stroke="transparent" points="117,-145 117,-164 281,-164 281,-145 117,-145"/>
101
+ <text text-anchor="start" x="119" y="-150.8" font-family="Times,serif" font-size="14.00">HealthCheckResponse</text>
102
+ <text text-anchor="start" x="11" y="-132.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Watch</text>
103
+ <text text-anchor="start" x="128" y="-131.8" font-family="Times,serif" font-size="14.00">HealthCheckRequest</text>
104
+ <polygon fill="#ff7f50" stroke="transparent" points="62,-107 62,-126 117,-126 117,-107 62,-107"/>
105
+ <text text-anchor="start" x="64" y="-112.8" font-family="Times,serif" font-size="14.00">stream</text>
106
+ <polygon fill="#ff7f50" stroke="transparent" points="117,-107 117,-126 281,-126 281,-107 117,-107"/>
107
+ <text text-anchor="start" x="119" y="-112.8" font-family="Times,serif" font-size="14.00">HealthCheckResponse</text>
108
+ <polygon fill="none" stroke="black" points="8,-106.5 8,-203.5 282,-203.5 282,-106.5 8,-106.5"/>
109
+ </a>
110
+ </g>
111
+ </g>
112
+ <!-- Node_Ja_103&#45;&gt;Node_Ja_100 -->
113
+ <g id="edge2" class="edge">
114
+ <title>Node_Ja_103:e&#45;&gt;Node_Ja_100:header</title>
115
+ <g id="a_edge2"><a xlink:title="Ja_103 &#45;&#45;&gt; Ja_100">
116
+ <path fill="none" stroke="#000000" d="M282,-174C303.81,-174 311.6,-176.9 329.24,-177.76"/>
117
+ <polygon fill="#000000" stroke="#000000" points="329.42,-181.27 339.5,-178 329.58,-174.27 329.42,-181.27"/>
118
+ </a>
119
+ </g>
120
+ </g>
121
+ <!-- Node_Ja_103&#45;&gt;Node_Ja_100 -->
122
+ <g id="edge4" class="edge">
123
+ <title>Node_Ja_103:e&#45;&gt;Node_Ja_100:header</title>
124
+ <g id="a_edge4"><a xlink:title="Ja_103 &#45;&#45;&gt; Ja_100">
125
+ <path fill="none" stroke="#000000" d="M282,-135C310.05,-135 308.56,-168.22 329.45,-176.26"/>
126
+ <polygon fill="#000000" stroke="#000000" points="329.05,-179.74 339.5,-178 330.24,-172.85 329.05,-179.74"/>
127
+ </a>
128
+ </g>
129
+ </g>
130
+ <!-- Node_Ja_103&#45;&gt;Node_Ja_101 -->
131
+ <g id="edge3" class="edge">
132
+ <title>Node_Ja_103:e&#45;&gt;Node_Ja_101:header</title>
133
+ <g id="a_edge3"><a xlink:title="Ja_103 &#45;&#45;&gt; Ja_101">
134
+ <path fill="none" stroke="#000000" d="M282,-154C307.91,-154 305.89,-122.42 324.39,-114.03"/>
135
+ <polygon fill="#000000" stroke="#000000" points="325.38,-117.4 334.5,-112 324.01,-110.53 325.38,-117.4"/>
136
+ </a>
137
+ </g>
138
+ </g>
139
+ <!-- Node_Ja_103&#45;&gt;Node_Ja_101 -->
140
+ <g id="edge5" class="edge">
141
+ <title>Node_Ja_103:e&#45;&gt;Node_Ja_101:header</title>
142
+ <g id="a_edge5"><a xlink:title="Ja_103 &#45;&#45;&gt; Ja_101">
143
+ <path fill="none" stroke="#000000" d="M282,-116C301.56,-116 308.75,-113.2 324.26,-112.29"/>
144
+ <polygon fill="#000000" stroke="#000000" points="324.6,-115.78 334.5,-112 324.41,-108.78 324.6,-115.78"/>
145
+ </a>
146
+ </g>
147
+ </g>
148
+ </g>
149
+ </svg>
@@ -0,0 +1,13 @@
1
+ digraph protodot {
2
+ Node_Ja_100 [ shape=plaintext, tooltip="grpc.metrics.v1.GetRequest", label=<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0" BGCOLOR="#fffaf0"><TR><TD COLSPAN="4" PORT="header" BGCOLOR="#e31a1c" ALIGN="right"><b>GetRequest</b></TD></TR></TABLE>> ];
3
+ Node_Ja_101 [ shape=plaintext, tooltip="grpc.metrics.v1.GetResponse", label=<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0" BGCOLOR="#fffaf0"><TR><TD COLSPAN="4" PORT="header" BGCOLOR="#e31a1c" ALIGN="right"><b>GetResponse</b></TD></TR><TR><TD ALIGN="right"></TD><TD ALIGN="right">1</TD><TD ALIGN="left">metrics</TD><TD BGCOLOR="#a6cee3" PORT="pometrics" ALIGN="right" TITLE="string"><i>string</i></TD></TR></TABLE>> ];
4
+ Node_Ja_102 [ shape=plaintext, tooltip="Metrics", label=<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0" BGCOLOR="#ffd700"><TR><TD COLSPAN="3" PORT="header" BGCOLOR="#ff7f50" ALIGN="right"><b>Metrics</b></TD></TR><TR><TD ALIGN="left"><b>Get</b></TD><TD></TD><TD PORT="poGet_request" ALIGN="right">GetRequest</TD></TR><TR style="border-bottom: 1px solid red"><TD></TD><TD BGCOLOR="#ff7f50"></TD><TD PORT="poGet_response" ALIGN="right" BGCOLOR="#ff7f50">GetResponse</TD></TR></TABLE>> ];
5
+ Node_Ja_102:poGet_request:e->Node_Ja_100:header[ color="#000000", tooltip="Ja_102 --> Ja_100" ];
6
+ Node_Ja_102:poGet_response:e->Node_Ja_101:header[ color="#000000", tooltip="Ja_102 --> Ja_101" ];
7
+ bgcolor="transparent";
8
+ label="grpc.metrics.v1";
9
+ node [ shape=plaintext, fontsize=10, fontname="Ubuntu" ] ;
10
+ rankdir=LR;
11
+ tooltip="grpc.metrics.v1";
12
+
13
+ }
Binary file
@@ -0,0 +1,76 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <!-- Generated by graphviz version 2.43.0 (0)
5
+ -->
6
+ <!-- Title: protodot Pages: 1 -->
7
+ <svg width="338pt" height="134pt"
8
+ viewBox="0.00 0.00 338.00 133.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+ <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 129.5)">
10
+ <title>protodot</title>
11
+ <g id="a_graph0"><a xlink:title="grpc.metrics.v1">
12
+ <text text-anchor="middle" x="165" y="-7.8" font-family="Times,serif" font-size="14.00">grpc.metrics.v1</text>
13
+ </a>
14
+ </g>
15
+ <!-- Node_Ja_100 -->
16
+ <g id="node1" class="node">
17
+ <title>Node_Ja_100</title>
18
+ <g id="a_node1"><a xlink:title="grpc.metrics.v1.GetRequest">
19
+ <polygon fill="#fffaf0" stroke="transparent" points="208,-96.5 208,-117.5 310,-117.5 310,-96.5 208,-96.5"/>
20
+ <polygon fill="#e31a1c" stroke="transparent" points="209,-97 209,-116 309,-116 309,-97 209,-97"/>
21
+ <text text-anchor="start" x="213" y="-103.8" font-family="Times,serif" font-weight="bold" font-size="14.00">GetRequest</text>
22
+ <polygon fill="none" stroke="black" points="208,-96.5 208,-117.5 310,-117.5 310,-96.5 208,-96.5"/>
23
+ </a>
24
+ </g>
25
+ </g>
26
+ <!-- Node_Ja_101 -->
27
+ <g id="node2" class="node">
28
+ <title>Node_Ja_101</title>
29
+ <g id="a_node2"><a xlink:title="grpc.metrics.v1.GetResponse">
30
+ <polygon fill="#fffaf0" stroke="transparent" points="196,-27 196,-67 322,-67 322,-27 196,-27"/>
31
+ <polygon fill="#e31a1c" stroke="transparent" points="197,-47 197,-66 321,-66 321,-47 197,-47"/>
32
+ <text text-anchor="start" x="215" y="-53.8" font-family="Times,serif" font-weight="bold" font-size="14.00">GetResponse</text>
33
+ <text text-anchor="start" x="203" y="-33.8" font-family="Times,serif" font-size="14.00">1</text>
34
+ <text text-anchor="start" x="217" y="-33.8" font-family="Times,serif" font-size="14.00">metrics</text>
35
+ <polygon fill="#a6cee3" stroke="transparent" points="274,-28 274,-47 321,-47 321,-28 274,-28"/>
36
+ <text text-anchor="start" x="276" y="-34.8" font-family="Times,serif" font-style="italic" font-size="14.00">string</text>
37
+ <polygon fill="none" stroke="black" points="196,-27 196,-67 322,-67 322,-27 196,-27"/>
38
+ </a>
39
+ </g>
40
+ </g>
41
+ <!-- Node_Ja_102 -->
42
+ <g id="node3" class="node">
43
+ <title>Node_Ja_102</title>
44
+ <g id="a_node3"><a xlink:title="Metrics">
45
+ <polygon fill="#ffd700" stroke="transparent" points="8,-62.5 8,-121.5 144,-121.5 144,-62.5 8,-62.5"/>
46
+ <polygon fill="#ff7f50" stroke="transparent" points="9,-101 9,-120 143,-120 143,-101 9,-101"/>
47
+ <text text-anchor="start" x="80" y="-107.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Metrics</text>
48
+ <text text-anchor="start" x="11" y="-88.8" font-family="Times,serif" font-weight="bold" font-size="14.00">Get</text>
49
+ <text text-anchor="start" x="56" y="-87.8" font-family="Times,serif" font-size="14.00">GetRequest</text>
50
+ <polygon fill="#ff7f50" stroke="transparent" points="41,-63 41,-82 45,-82 45,-63 41,-63"/>
51
+ <polygon fill="#ff7f50" stroke="transparent" points="45,-63 45,-82 143,-82 143,-63 45,-63"/>
52
+ <text text-anchor="start" x="47" y="-68.8" font-family="Times,serif" font-size="14.00">GetResponse</text>
53
+ <polygon fill="none" stroke="black" points="8,-62.5 8,-121.5 144,-121.5 144,-62.5 8,-62.5"/>
54
+ </a>
55
+ </g>
56
+ </g>
57
+ <!-- Node_Ja_102&#45;&gt;Node_Ja_100 -->
58
+ <g id="edge1" class="edge">
59
+ <title>Node_Ja_102:e&#45;&gt;Node_Ja_100:header</title>
60
+ <g id="a_edge1"><a xlink:title="Ja_102 &#45;&#45;&gt; Ja_100">
61
+ <path fill="none" stroke="#000000" d="M144,-91C162.53,-91 182.6,-92.97 200.67,-95.48"/>
62
+ <polygon fill="#000000" stroke="#000000" points="200.36,-98.98 210.76,-96.97 201.38,-92.05 200.36,-98.98"/>
63
+ </a>
64
+ </g>
65
+ </g>
66
+ <!-- Node_Ja_102&#45;&gt;Node_Ja_101 -->
67
+ <g id="edge2" class="edge">
68
+ <title>Node_Ja_102:e&#45;&gt;Node_Ja_101:header</title>
69
+ <g id="a_edge2"><a xlink:title="Ja_102 &#45;&#45;&gt; Ja_101">
70
+ <path fill="none" stroke="#000000" d="M144,-72C164.3,-72 170.24,-61.32 186.05,-57.98"/>
71
+ <polygon fill="#000000" stroke="#000000" points="186.39,-61.47 196,-57 185.7,-54.5 186.39,-61.47"/>
72
+ </a>
73
+ </g>
74
+ </g>
75
+ </g>
76
+ </svg>
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@rsdk/builtin-contract",
3
+ "version": "1.0.3",
4
+ "license": "Apache License 2.0",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "dependencies": {
9
+ "protobufjs": "^7.1.2"
10
+ },
11
+ "peerDependencies": {
12
+ "@grpc/grpc-js": ">=1.7.0",
13
+ "@rsdk/tsconfig": "^1.0.3"
14
+ },
15
+ "gitHead": "34dc50cdbe895512689dc1feabec833863c5d6f2"
16
+ }
package/ppm.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "rsdk.builtin",
3
+ "version": "1.0.0",
4
+ "protogen": "1.0.1",
5
+ "dependencies": {}
6
+ }
package/proto/buf.yaml ADDED
@@ -0,0 +1,11 @@
1
+ # This code is generated automatically.
2
+ # You are not supposed to touch it!
3
+ #
4
+ # This file is also used by the buf plugin in VSCode.
5
+
6
+ version: v1
7
+ lint:
8
+ use:
9
+ - DEFAULT
10
+ - COMMENTS
11
+ allow_comment_ignores: true
@@ -0,0 +1,54 @@
1
+ // Implementation of standard grpc health protocol
2
+ // https://github.com/grpc/grpc/blob/master/doc/health-checking.md
3
+
4
+ syntax = "proto3";
5
+
6
+ package grpc.health.v1;
7
+
8
+ // HealthCheckRequest
9
+ message HealthCheckRequest {
10
+ // service
11
+ string service = 1;
12
+ }
13
+
14
+ // HealthCheckResponse
15
+ message HealthCheckResponse {
16
+ // ServingStatus
17
+ enum ServingStatus {
18
+ // UNKNOWN
19
+ // buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
20
+ // buf:lint:ignore ENUM_VALUE_PREFIX
21
+ UNKNOWN = 0;
22
+
23
+ // SERVING
24
+ // buf:lint:ignore ENUM_VALUE_PREFIX
25
+ SERVING = 1;
26
+
27
+ // NOT_SERVING
28
+ // buf:lint:ignore ENUM_VALUE_PREFIX
29
+ NOT_SERVING = 2;
30
+
31
+ // SERVICE_UNKNOWN — Used only by the Watch method.
32
+ // buf:lint:ignore ENUM_VALUE_PREFIX
33
+ SERVICE_UNKNOWN = 3;
34
+ }
35
+
36
+ // status
37
+ ServingStatus status = 1;
38
+ }
39
+
40
+ // buf:lint:ignore SERVICE_SUFFIX
41
+ // Health
42
+ service Health {
43
+ // Check
44
+ // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
45
+ // buf:lint:ignore RPC_REQUEST_STANDARD_NAME
46
+ // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
47
+ rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
48
+
49
+ // Watch
50
+ // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
51
+ // buf:lint:ignore RPC_REQUEST_STANDARD_NAME
52
+ // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
53
+ rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
54
+ }
@@ -0,0 +1,20 @@
1
+ // metrics
2
+ syntax = "proto3";
3
+
4
+ package grpc.metrics.v1;
5
+
6
+ // Empty request
7
+ message GetRequest {}
8
+
9
+ // Metrics response
10
+ message GetResponse {
11
+ // String in prometheus format
12
+ string metrics = 1;
13
+ }
14
+
15
+ // MetricsService
16
+ // buf:lint:ignore SERVICE_SUFFIX
17
+ service Metrics {
18
+ // Get metrics in stringiried prometheus format
19
+ rpc Get(GetRequest) returns (GetResponse);
20
+ }