@devvit/protos 0.11.7 → 0.11.8-next-2025-02-10-c496a14e8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. package/meta.min.json +7825 -0
  2. package/package.json +4 -4
  3. package/protos.min.js +2 -0
  4. package/protos.min.js.map +7 -0
  5. package/schema/.snootobuf/deps/buf/validate/expression.proto +92 -0
  6. package/schema/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
  7. package/schema/.snootobuf/deps/buf/validate/validate.proto +4130 -0
  8. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
  9. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
  10. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
  11. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
  12. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
  13. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
  14. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
  15. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
  16. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +773 -0
  17. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
  18. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +100 -0
  19. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
  20. package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
  21. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
  22. package/schema/.snootobuf/deps/devvit/options/options.proto +98 -0
  23. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +29 -0
  24. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
  25. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
  26. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
  27. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +107 -0
  28. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
  29. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
  30. package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
  31. package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
  32. package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
  33. package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
  34. package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
  35. package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
  36. package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
  37. package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
  38. package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
  39. package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
  40. package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
  41. package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
  42. package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
  43. package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
  44. package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
  45. package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
  46. package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
  47. package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
  48. package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
  49. package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
  50. package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
  51. package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
  52. package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
  53. package/schema/.snootobuf/deps/enum/vote.proto +12 -0
  54. package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
  55. package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
  56. package/schema/.snootobuf/deps/evaluator/evaluator.proto +203 -0
  57. package/schema/.snootobuf/deps/google/api/annotations.proto +31 -0
  58. package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +288 -0
  59. package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +175 -0
  60. package/schema/.snootobuf/deps/google/api/auth.proto +237 -0
  61. package/schema/.snootobuf/deps/google/api/backend.proto +185 -0
  62. package/schema/.snootobuf/deps/google/api/billing.proto +77 -0
  63. package/schema/.snootobuf/deps/google/api/client.proto +431 -0
  64. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +322 -0
  65. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +315 -0
  66. package/schema/.snootobuf/deps/google/api/config_change.proto +84 -0
  67. package/schema/.snootobuf/deps/google/api/consumer.proto +82 -0
  68. package/schema/.snootobuf/deps/google/api/context.proto +92 -0
  69. package/schema/.snootobuf/deps/google/api/control.proto +41 -0
  70. package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
  71. package/schema/.snootobuf/deps/google/api/documentation.proto +168 -0
  72. package/schema/.snootobuf/deps/google/api/endpoint.proto +69 -0
  73. package/schema/.snootobuf/deps/google/api/error_reason.proto +589 -0
  74. package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +183 -0
  75. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
  76. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
  77. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
  78. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
  79. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
  80. package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
  81. package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
  82. package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
  83. package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
  84. package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
  85. package/schema/.snootobuf/deps/google/api/field_behavior.proto +104 -0
  86. package/schema/.snootobuf/deps/google/api/field_info.proto +106 -0
  87. package/schema/.snootobuf/deps/google/api/http.proto +371 -0
  88. package/schema/.snootobuf/deps/google/api/httpbody.proto +81 -0
  89. package/schema/.snootobuf/deps/google/api/label.proto +48 -0
  90. package/schema/.snootobuf/deps/google/api/launch_stage.proto +72 -0
  91. package/schema/.snootobuf/deps/google/api/log.proto +54 -0
  92. package/schema/.snootobuf/deps/google/api/logging.proto +81 -0
  93. package/schema/.snootobuf/deps/google/api/metric.proto +268 -0
  94. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +130 -0
  95. package/schema/.snootobuf/deps/google/api/monitoring.proto +107 -0
  96. package/schema/.snootobuf/deps/google/api/policy.proto +85 -0
  97. package/schema/.snootobuf/deps/google/api/quota.proto +184 -0
  98. package/schema/.snootobuf/deps/google/api/resource.proto +243 -0
  99. package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
  100. package/schema/.snootobuf/deps/google/api/service.proto +191 -0
  101. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
  102. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
  103. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
  104. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
  105. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
  106. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
  107. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
  108. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
  109. package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
  110. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
  111. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +508 -0
  112. package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
  113. package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +305 -0
  114. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
  115. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +793 -0
  116. package/schema/.snootobuf/deps/google/api/source_info.proto +31 -0
  117. package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
  118. package/schema/.snootobuf/deps/google/api/usage.proto +96 -0
  119. package/schema/.snootobuf/deps/google/api/visibility.proto +113 -0
  120. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
  121. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
  122. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
  123. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
  124. package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
  125. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
  126. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
  127. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
  128. package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
  129. package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
  130. package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
  131. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
  132. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
  133. package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
  134. package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
  135. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
  136. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
  137. package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
  138. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
  139. package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
  140. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
  141. package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
  142. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
  143. package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
  144. package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
  145. package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
  146. package/schema/.snootobuf/deps/google/type/color.proto +170 -0
  147. package/schema/.snootobuf/deps/google/type/date.proto +50 -0
  148. package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
  149. package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
  150. package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
  151. package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
  152. package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
  153. package/schema/.snootobuf/deps/google/type/money.proto +43 -0
  154. package/schema/.snootobuf/deps/google/type/month.proto +66 -0
  155. package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
  156. package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
  157. package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
  158. package/schema/.snootobuf/deps/openapi/helper.proto +20 -0
  159. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  160. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
  161. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
  162. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
  163. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
  164. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
  165. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
  166. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
  167. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
  168. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
  169. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
  170. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
  171. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
  172. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
  173. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
  174. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
  175. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
  176. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
  177. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
  178. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
  179. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
  180. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
  181. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
  182. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
  183. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
  184. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
  185. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
  186. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
  187. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
  188. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
  189. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
  190. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
  191. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
  192. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
  193. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
  194. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
  195. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
  196. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +89 -0
  197. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +322 -0
  198. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
  199. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
  200. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
  201. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +48 -0
  202. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
  203. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
  204. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
  205. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
  206. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +23 -0
  207. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
  208. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
  209. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +49 -0
  210. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
  211. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
  212. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
  213. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
  214. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +195 -0
  215. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
  216. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
  217. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
  218. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
  219. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  220. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
  221. package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
  222. package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
  223. package/schema/.snootobuf/deps/validate/validate.proto +862 -0
  224. package/schema/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.proto +3 -0
  225. package/schema/snootobuf.devenv.lock +444 -388
  226. package/schema/snootobuf.lock +444 -388
  227. package/schema/snootobuf.redditapi.lock +444 -388
  228. package/schema/snootobuf.ts.lock +444 -388
  229. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +2 -0
  230. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts.map +1 -1
  231. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +16 -0
  232. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +4 -0
  233. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
@@ -0,0 +1,54 @@
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ import "google/api/label.proto";
20
+
21
+ option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "LogProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+ // A description of a log type. Example in YAML format:
28
+ //
29
+ // - name: library.googleapis.com/activity_history
30
+ // description: The history of borrowing and returning library items.
31
+ // display_name: Activity
32
+ // labels:
33
+ // - key: /customer_id
34
+ // description: Identifier of a library customer
35
+ message LogDescriptor {
36
+ // The name of the log. It must be less than 512 characters long and can
37
+ // include the following characters: upper- and lower-case alphanumeric
38
+ // characters [A-Za-z0-9], and punctuation characters including
39
+ // slash, underscore, hyphen, period [/_-.].
40
+ string name = 1;
41
+
42
+ // The set of labels that are available to describe a specific log entry.
43
+ // Runtime requests that contain labels not specified here are
44
+ // considered invalid.
45
+ repeated LabelDescriptor labels = 2;
46
+
47
+ // A human-readable description of this log. This information appears in
48
+ // the documentation and can contain details.
49
+ string description = 3;
50
+
51
+ // The human-readable name for this log. This information appears on
52
+ // the user interface and should be concise.
53
+ string display_name = 4;
54
+ }
@@ -0,0 +1,81 @@
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
+ option java_multiple_files = true;
21
+ option java_outer_classname = "LoggingProto";
22
+ option java_package = "com.google.api";
23
+ option objc_class_prefix = "GAPI";
24
+
25
+ // Logging configuration of the service.
26
+ //
27
+ // The following example shows how to configure logs to be sent to the
28
+ // producer and consumer projects. In the example, the `activity_history`
29
+ // log is sent to both the producer and consumer projects, whereas the
30
+ // `purchase_history` log is only sent to the producer project.
31
+ //
32
+ // monitored_resources:
33
+ // - type: library.googleapis.com/branch
34
+ // labels:
35
+ // - key: /city
36
+ // description: The city where the library branch is located in.
37
+ // - key: /name
38
+ // description: The name of the branch.
39
+ // logs:
40
+ // - name: activity_history
41
+ // labels:
42
+ // - key: /customer_id
43
+ // - name: purchase_history
44
+ // logging:
45
+ // producer_destinations:
46
+ // - monitored_resource: library.googleapis.com/branch
47
+ // logs:
48
+ // - activity_history
49
+ // - purchase_history
50
+ // consumer_destinations:
51
+ // - monitored_resource: library.googleapis.com/branch
52
+ // logs:
53
+ // - activity_history
54
+ message Logging {
55
+ // Configuration of a specific logging destination (the producer project
56
+ // or the consumer project).
57
+ message LoggingDestination {
58
+ // The monitored resource type. The type must be defined in the
59
+ // [Service.monitored_resources][google.api.Service.monitored_resources]
60
+ // section.
61
+ string monitored_resource = 3;
62
+
63
+ // Names of the logs to be sent to this destination. Each name must
64
+ // be defined in the [Service.logs][google.api.Service.logs] section. If the
65
+ // log name is not a domain scoped name, it will be automatically prefixed
66
+ // with the service name followed by "/".
67
+ repeated string logs = 1;
68
+ }
69
+
70
+ // Logging configurations for sending logs to the producer project.
71
+ // There can be multiple producer destinations, each one must have a
72
+ // different monitored resource type. A log can be used in at most
73
+ // one producer destination.
74
+ repeated LoggingDestination producer_destinations = 1;
75
+
76
+ // Logging configurations for sending logs to the consumer project.
77
+ // There can be multiple consumer destinations, each one must have a
78
+ // different monitored resource type. A log can be used in at most
79
+ // one consumer destination.
80
+ repeated LoggingDestination consumer_destinations = 2;
81
+ }
@@ -0,0 +1,268 @@
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ import "google/api/label.proto";
20
+ import "google/api/launch_stage.proto";
21
+ import "google/protobuf/duration.proto";
22
+
23
+ option go_package = "google.golang.org/genproto/googleapis/api/metric;metric";
24
+ option java_multiple_files = true;
25
+ option java_outer_classname = "MetricProto";
26
+ option java_package = "com.google.api";
27
+ option objc_class_prefix = "GAPI";
28
+
29
+ // Defines a metric type and its schema. Once a metric descriptor is created,
30
+ // deleting or altering it stops data collection and makes the metric type's
31
+ // existing data unusable.
32
+ //
33
+ message MetricDescriptor {
34
+ // The kind of measurement. It describes how the data is reported.
35
+ // For information on setting the start time and end time based on
36
+ // the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
37
+ enum MetricKind {
38
+ // Do not use this default value.
39
+ METRIC_KIND_UNSPECIFIED = 0;
40
+
41
+ // An instantaneous measurement of a value.
42
+ GAUGE = 1;
43
+
44
+ // The change in a value during a time interval.
45
+ DELTA = 2;
46
+
47
+ // A value accumulated over a time interval. Cumulative
48
+ // measurements in a time series should have the same start time
49
+ // and increasing end times, until an event resets the cumulative
50
+ // value to zero and sets a new start time for the following
51
+ // points.
52
+ CUMULATIVE = 3;
53
+ }
54
+
55
+ // The value type of a metric.
56
+ enum ValueType {
57
+ // Do not use this default value.
58
+ VALUE_TYPE_UNSPECIFIED = 0;
59
+
60
+ // The value is a boolean.
61
+ // This value type can be used only if the metric kind is `GAUGE`.
62
+ BOOL = 1;
63
+
64
+ // The value is a signed 64-bit integer.
65
+ INT64 = 2;
66
+
67
+ // The value is a double precision floating point number.
68
+ DOUBLE = 3;
69
+
70
+ // The value is a text string.
71
+ // This value type can be used only if the metric kind is `GAUGE`.
72
+ STRING = 4;
73
+
74
+ // The value is a [`Distribution`][google.api.Distribution].
75
+ DISTRIBUTION = 5;
76
+
77
+ // The value is money.
78
+ MONEY = 6;
79
+ }
80
+
81
+ // Additional annotations that can be used to guide the usage of a metric.
82
+ message MetricDescriptorMetadata {
83
+ // Deprecated. Must use the
84
+ // [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
85
+ // instead.
86
+ LaunchStage launch_stage = 1 [deprecated = true];
87
+
88
+ // The sampling period of metric data points. For metrics which are written
89
+ // periodically, consecutive data points are stored at this time interval,
90
+ // excluding data loss due to errors. Metrics with a higher granularity have
91
+ // a smaller sampling period.
92
+ google.protobuf.Duration sample_period = 2;
93
+
94
+ // The delay of data points caused by ingestion. Data points older than this
95
+ // age are guaranteed to be ingested and available to be read, excluding
96
+ // data loss due to errors.
97
+ google.protobuf.Duration ingest_delay = 3;
98
+ }
99
+
100
+ // The resource name of the metric descriptor.
101
+ string name = 1;
102
+
103
+ // The metric type, including its DNS name prefix. The type is not
104
+ // URL-encoded. All user-defined metric types have the DNS name
105
+ // `custom.googleapis.com` or `external.googleapis.com`. Metric types should
106
+ // use a natural hierarchical grouping. For example:
107
+ //
108
+ // "custom.googleapis.com/invoice/paid/amount"
109
+ // "external.googleapis.com/prometheus/up"
110
+ // "appengine.googleapis.com/http/server/response_latencies"
111
+ string type = 8;
112
+
113
+ // The set of labels that can be used to describe a specific
114
+ // instance of this metric type. For example, the
115
+ // `appengine.googleapis.com/http/server/response_latencies` metric
116
+ // type has a label for the HTTP response code, `response_code`, so
117
+ // you can look at latencies for successful responses or just
118
+ // for responses that failed.
119
+ repeated LabelDescriptor labels = 2;
120
+
121
+ // Whether the metric records instantaneous values, changes to a value, etc.
122
+ // Some combinations of `metric_kind` and `value_type` might not be supported.
123
+ MetricKind metric_kind = 3;
124
+
125
+ // Whether the measurement is an integer, a floating-point number, etc.
126
+ // Some combinations of `metric_kind` and `value_type` might not be supported.
127
+ ValueType value_type = 4;
128
+
129
+ // The units in which the metric value is reported. It is only applicable
130
+ // if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
131
+ // defines the representation of the stored metric values.
132
+ //
133
+ // Different systems might scale the values to be more easily displayed (so a
134
+ // value of `0.02kBy` _might_ be displayed as `20By`, and a value of
135
+ // `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
136
+ // `kBy`, then the value of the metric is always in thousands of bytes, no
137
+ // matter how it might be displayed.
138
+ //
139
+ // If you want a custom metric to record the exact number of CPU-seconds used
140
+ // by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
141
+ // `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
142
+ // CPU-seconds, then the value is written as `12005`.
143
+ //
144
+ // Alternatively, if you want a custom metric to record data in a more
145
+ // granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
146
+ // `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
147
+ // or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
148
+ //
149
+ // The supported units are a subset of [The Unified Code for Units of
150
+ // Measure](https://unitsofmeasure.org/ucum.html) standard:
151
+ //
152
+ // **Basic units (UNIT)**
153
+ //
154
+ // * `bit` bit
155
+ // * `By` byte
156
+ // * `s` second
157
+ // * `min` minute
158
+ // * `h` hour
159
+ // * `d` day
160
+ // * `1` dimensionless
161
+ //
162
+ // **Prefixes (PREFIX)**
163
+ //
164
+ // * `k` kilo (10^3)
165
+ // * `M` mega (10^6)
166
+ // * `G` giga (10^9)
167
+ // * `T` tera (10^12)
168
+ // * `P` peta (10^15)
169
+ // * `E` exa (10^18)
170
+ // * `Z` zetta (10^21)
171
+ // * `Y` yotta (10^24)
172
+ //
173
+ // * `m` milli (10^-3)
174
+ // * `u` micro (10^-6)
175
+ // * `n` nano (10^-9)
176
+ // * `p` pico (10^-12)
177
+ // * `f` femto (10^-15)
178
+ // * `a` atto (10^-18)
179
+ // * `z` zepto (10^-21)
180
+ // * `y` yocto (10^-24)
181
+ //
182
+ // * `Ki` kibi (2^10)
183
+ // * `Mi` mebi (2^20)
184
+ // * `Gi` gibi (2^30)
185
+ // * `Ti` tebi (2^40)
186
+ // * `Pi` pebi (2^50)
187
+ //
188
+ // **Grammar**
189
+ //
190
+ // The grammar also includes these connectors:
191
+ //
192
+ // * `/` division or ratio (as an infix operator). For examples,
193
+ // `kBy/{email}` or `MiBy/10ms` (although you should almost never
194
+ // have `/s` in a metric `unit`; rates should always be computed at
195
+ // query time from the underlying cumulative or delta value).
196
+ // * `.` multiplication or composition (as an infix operator). For
197
+ // examples, `GBy.d` or `k{watt}.h`.
198
+ //
199
+ // The grammar for a unit is as follows:
200
+ //
201
+ // Expression = Component { "." Component } { "/" Component } ;
202
+ //
203
+ // Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
204
+ // | Annotation
205
+ // | "1"
206
+ // ;
207
+ //
208
+ // Annotation = "{" NAME "}" ;
209
+ //
210
+ // Notes:
211
+ //
212
+ // * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
213
+ // is used alone, then the unit is equivalent to `1`. For examples,
214
+ // `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
215
+ // * `NAME` is a sequence of non-blank printable ASCII characters not
216
+ // containing `{` or `}`.
217
+ // * `1` represents a unitary [dimensionless
218
+ // unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
219
+ // as in `1/s`. It is typically used when none of the basic units are
220
+ // appropriate. For example, "new users per day" can be represented as
221
+ // `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
222
+ // users). Alternatively, "thousands of page views per day" would be
223
+ // represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
224
+ // value of `5.3` would mean "5300 page views per day").
225
+ // * `%` represents dimensionless value of 1/100, and annotates values giving
226
+ // a percentage (so the metric values are typically in the range of 0..100,
227
+ // and a metric value `3` means "3 percent").
228
+ // * `10^2.%` indicates a metric contains a ratio, typically in the range
229
+ // 0..1, that will be multiplied by 100 and displayed as a percentage
230
+ // (so a metric value `0.03` means "3 percent").
231
+ string unit = 5;
232
+
233
+ // A detailed description of the metric, which can be used in documentation.
234
+ string description = 6;
235
+
236
+ // A concise name for the metric, which can be displayed in user interfaces.
237
+ // Use sentence case without an ending period, for example "Request count".
238
+ // This field is optional but it is recommended to be set for any metrics
239
+ // associated with user-visible concepts, such as Quota.
240
+ string display_name = 7;
241
+
242
+ // Optional. Metadata which can be used to guide usage of the metric.
243
+ MetricDescriptorMetadata metadata = 10;
244
+
245
+ // Optional. The launch stage of the metric definition.
246
+ LaunchStage launch_stage = 12;
247
+
248
+ // Read-only. If present, then a [time
249
+ // series][google.monitoring.v3.TimeSeries], which is identified partially by
250
+ // a metric type and a
251
+ // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
252
+ // is associated with this metric type can only be associated with one of the
253
+ // monitored resource types listed here.
254
+ repeated string monitored_resource_types = 13;
255
+ }
256
+
257
+ // A specific metric, identified by specifying values for all of the
258
+ // labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
259
+ message Metric {
260
+ // An existing metric type, see
261
+ // [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
262
+ // `custom.googleapis.com/invoice/paid/amount`.
263
+ string type = 3;
264
+
265
+ // The set of label values that uniquely identify this metric. All
266
+ // labels listed in the `MetricDescriptor` must be assigned values.
267
+ map<string, string> labels = 2;
268
+ }
@@ -0,0 +1,130 @@
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ import "google/api/label.proto";
20
+ import "google/api/launch_stage.proto";
21
+ import "google/protobuf/struct.proto";
22
+
23
+ option cc_enable_arenas = true;
24
+ option go_package = "google.golang.org/genproto/googleapis/api/monitoredres;monitoredres";
25
+ option java_multiple_files = true;
26
+ option java_outer_classname = "MonitoredResourceProto";
27
+ option java_package = "com.google.api";
28
+ option objc_class_prefix = "GAPI";
29
+
30
+ // An object that describes the schema of a
31
+ // [MonitoredResource][google.api.MonitoredResource] object using a type name
32
+ // and a set of labels. For example, the monitored resource descriptor for
33
+ // Google Compute Engine VM instances has a type of
34
+ // `"gce_instance"` and specifies the use of the labels `"instance_id"` and
35
+ // `"zone"` to identify particular VM instances.
36
+ //
37
+ // Different APIs can support different monitored resource types. APIs generally
38
+ // provide a `list` method that returns the monitored resource descriptors used
39
+ // by the API.
40
+ //
41
+ message MonitoredResourceDescriptor {
42
+ // Optional. The resource name of the monitored resource descriptor:
43
+ // `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
44
+ // {type} is the value of the `type` field in this object and
45
+ // {project_id} is a project ID that provides API-specific context for
46
+ // accessing the type. APIs that do not use project information can use the
47
+ // resource name format `"monitoredResourceDescriptors/{type}"`.
48
+ string name = 5;
49
+
50
+ // Required. The monitored resource type. For example, the type
51
+ // `"cloudsql_database"` represents databases in Google Cloud SQL.
52
+ // For a list of types, see [Monitored resource
53
+ // types](https://cloud.google.com/monitoring/api/resources)
54
+ // and [Logging resource
55
+ // types](https://cloud.google.com/logging/docs/api/v2/resource-list).
56
+ string type = 1;
57
+
58
+ // Optional. A concise name for the monitored resource type that might be
59
+ // displayed in user interfaces. It should be a Title Cased Noun Phrase,
60
+ // without any article or other determiners. For example,
61
+ // `"Google Cloud SQL Database"`.
62
+ string display_name = 2;
63
+
64
+ // Optional. A detailed description of the monitored resource type that might
65
+ // be used in documentation.
66
+ string description = 3;
67
+
68
+ // Required. A set of labels used to describe instances of this monitored
69
+ // resource type. For example, an individual Google Cloud SQL database is
70
+ // identified by values for the labels `"database_id"` and `"zone"`.
71
+ repeated LabelDescriptor labels = 4;
72
+
73
+ // Optional. The launch stage of the monitored resource definition.
74
+ LaunchStage launch_stage = 7;
75
+ }
76
+
77
+ // An object representing a resource that can be used for monitoring, logging,
78
+ // billing, or other purposes. Examples include virtual machine instances,
79
+ // databases, and storage devices such as disks. The `type` field identifies a
80
+ // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object
81
+ // that describes the resource's schema. Information in the `labels` field
82
+ // identifies the actual resource and its attributes according to the schema.
83
+ // For example, a particular Compute Engine VM instance could be represented by
84
+ // the following object, because the
85
+ // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
86
+ // `"gce_instance"` has labels
87
+ // `"project_id"`, `"instance_id"` and `"zone"`:
88
+ //
89
+ // { "type": "gce_instance",
90
+ // "labels": { "project_id": "my-project",
91
+ // "instance_id": "12345678901234",
92
+ // "zone": "us-central1-a" }}
93
+ message MonitoredResource {
94
+ // Required. The monitored resource type. This field must match
95
+ // the `type` field of a
96
+ // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
97
+ // object. For example, the type of a Compute Engine VM instance is
98
+ // `gce_instance`. Some descriptors include the service name in the type; for
99
+ // example, the type of a Datastream stream is
100
+ // `datastream.googleapis.com/Stream`.
101
+ string type = 1;
102
+
103
+ // Required. Values for all of the labels listed in the associated monitored
104
+ // resource descriptor. For example, Compute Engine VM instances use the
105
+ // labels `"project_id"`, `"instance_id"`, and `"zone"`.
106
+ map<string, string> labels = 2;
107
+ }
108
+
109
+ // Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource]
110
+ // object. [MonitoredResource][google.api.MonitoredResource] objects contain the
111
+ // minimum set of information to uniquely identify a monitored resource
112
+ // instance. There is some other useful auxiliary metadata. Monitoring and
113
+ // Logging use an ingestion pipeline to extract metadata for cloud resources of
114
+ // all types, and store the metadata in this message.
115
+ message MonitoredResourceMetadata {
116
+ // Output only. Values for predefined system metadata labels.
117
+ // System labels are a kind of metadata extracted by Google, including
118
+ // "machine_image", "vpc", "subnet_id",
119
+ // "security_group", "name", etc.
120
+ // System label values can be only strings, Boolean values, or a list of
121
+ // strings. For example:
122
+ //
123
+ // { "name": "my-test-instance",
124
+ // "security_group": ["a", "b", "c"],
125
+ // "spot_instance": false }
126
+ google.protobuf.Struct system_labels = 1;
127
+
128
+ // Output only. A map of user-defined metadata labels.
129
+ map<string, string> user_labels = 2;
130
+ }
@@ -0,0 +1,107 @@
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
+ option java_multiple_files = true;
21
+ option java_outer_classname = "MonitoringProto";
22
+ option java_package = "com.google.api";
23
+ option objc_class_prefix = "GAPI";
24
+
25
+ // Monitoring configuration of the service.
26
+ //
27
+ // The example below shows how to configure monitored resources and metrics
28
+ // for monitoring. In the example, a monitored resource and two metrics are
29
+ // defined. The `library.googleapis.com/book/returned_count` metric is sent
30
+ // to both producer and consumer projects, whereas the
31
+ // `library.googleapis.com/book/num_overdue` metric is only sent to the
32
+ // consumer project.
33
+ //
34
+ // monitored_resources:
35
+ // - type: library.googleapis.com/Branch
36
+ // display_name: "Library Branch"
37
+ // description: "A branch of a library."
38
+ // launch_stage: GA
39
+ // labels:
40
+ // - key: resource_container
41
+ // description: "The Cloud container (ie. project id) for the Branch."
42
+ // - key: location
43
+ // description: "The location of the library branch."
44
+ // - key: branch_id
45
+ // description: "The id of the branch."
46
+ // metrics:
47
+ // - name: library.googleapis.com/book/returned_count
48
+ // display_name: "Books Returned"
49
+ // description: "The count of books that have been returned."
50
+ // launch_stage: GA
51
+ // metric_kind: DELTA
52
+ // value_type: INT64
53
+ // unit: "1"
54
+ // labels:
55
+ // - key: customer_id
56
+ // description: "The id of the customer."
57
+ // - name: library.googleapis.com/book/num_overdue
58
+ // display_name: "Books Overdue"
59
+ // description: "The current number of overdue books."
60
+ // launch_stage: GA
61
+ // metric_kind: GAUGE
62
+ // value_type: INT64
63
+ // unit: "1"
64
+ // labels:
65
+ // - key: customer_id
66
+ // description: "The id of the customer."
67
+ // monitoring:
68
+ // producer_destinations:
69
+ // - monitored_resource: library.googleapis.com/Branch
70
+ // metrics:
71
+ // - library.googleapis.com/book/returned_count
72
+ // consumer_destinations:
73
+ // - monitored_resource: library.googleapis.com/Branch
74
+ // metrics:
75
+ // - library.googleapis.com/book/returned_count
76
+ // - library.googleapis.com/book/num_overdue
77
+ message Monitoring {
78
+ // Configuration of a specific monitoring destination (the producer project
79
+ // or the consumer project).
80
+ message MonitoringDestination {
81
+ // The monitored resource type. The type must be defined in
82
+ // [Service.monitored_resources][google.api.Service.monitored_resources]
83
+ // section.
84
+ string monitored_resource = 1;
85
+
86
+ // Types of the metrics to report to this monitoring destination.
87
+ // Each type must be defined in
88
+ // [Service.metrics][google.api.Service.metrics] section.
89
+ repeated string metrics = 2;
90
+ }
91
+
92
+ // Monitoring configurations for sending metrics to the producer project.
93
+ // There can be multiple producer destinations. A monitored resource type may
94
+ // appear in multiple monitoring destinations if different aggregations are
95
+ // needed for different sets of metrics associated with that monitored
96
+ // resource type. A monitored resource and metric pair may only be used once
97
+ // in the Monitoring configuration.
98
+ repeated MonitoringDestination producer_destinations = 1;
99
+
100
+ // Monitoring configurations for sending metrics to the consumer project.
101
+ // There can be multiple consumer destinations. A monitored resource type may
102
+ // appear in multiple monitoring destinations if different aggregations are
103
+ // needed for different sets of metrics associated with that monitored
104
+ // resource type. A monitored resource and metric pair may only be used once
105
+ // in the Monitoring configuration.
106
+ repeated MonitoringDestination consumer_destinations = 2;
107
+ }