@alis-build/alis-usage-v1 1.5.0 → 1.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.
@@ -1,7 +1,29 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/usage/v1/usage.proto (package alis.usage.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // API usage snapshots that Alis products publish about their own traffic.
6
+ //
7
+ // The package defines one payload, `ProductUsage`: request counts, error
8
+ // rates, latency percentiles and approximate caller counts per gRPC method,
9
+ // aggregated from the Cloud Run request logs of a product's deployments. Each
10
+ // product computes a snapshot hourly and publishes it to the Pub/Sub topic
11
+ // `alis.usage.v1.ProductUsage` in its own Google Cloud project, where any
12
+ // consumer with access to that project may subscribe.
13
+ //
14
+ // A snapshot contains:
15
+ //
16
+ // - `Window`: rolling 24-hour, 7-day and 30-day aggregates, broken down by
17
+ // deployment project (`DeploymentUsage`) and then by method
18
+ // (`MethodUsage`).
19
+ // - `DailyCount`: request and error counts per UTC day and deployment project
20
+ // over the last 30 days, for trend charts.
21
+ //
22
+ // Methods are identified by protobuf package, service and method name, so the
23
+ // figures line up with the product's protobuf contracts. Snapshots are an
24
+ // adoption and usage view for builders, not a replacement for Cloud Logging
25
+ // or Cloud Trace.
26
+
5
27
  import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
28
  import type { Message } from "@bufbuild/protobuf";
7
29
  import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
@@ -12,60 +34,120 @@ import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
12
34
  export declare const file_alis_usage_v1_usage: GenFile;
13
35
 
14
36
  /**
37
+ * A product-level API usage snapshot, derived from the Cloud Run request logs
38
+ * of all the product's deployments. Every Alis service is a gRPC service, so
39
+ * each request URL path carries "<package>.<Service>/<Method>" — the same
40
+ * identifiers locked at the Define stage — which makes these aggregates
41
+ * directly consistent with the product's protobuf contracts.
42
+ *
43
+ * Snapshots are analytical aggregates over what may be tens of thousands of
44
+ * requests; the underlying log records are not retained here. This is an
45
+ * adoption/usage lens for builders, not a replacement for observability
46
+ * (Cloud Trace, Cloud Logging, error reporting).
47
+ *
48
+ * Each product publishes one snapshot per schedule tick (hourly) to the
49
+ * Pub/Sub topic named after this message's fully qualified name,
50
+ * "alis.usage.v1.ProductUsage", in the product's Google Cloud project. Any
51
+ * consumer with access to the product project may subscribe.
52
+ *
15
53
  * @generated from message alis.usage.v1.ProductUsage
16
54
  */
17
55
  export declare type ProductUsage = Message<"alis.usage.v1.ProductUsage"> & {
18
56
  /**
57
+ * The product these usage statistics relate to.
58
+ * Format: organisations/{organisation}/products/{product}
59
+ *
19
60
  * @generated from field: string product = 1;
20
61
  */
21
62
  product: string;
22
63
 
23
64
  /**
65
+ * The Google Cloud project id of the product project publishing this
66
+ * snapshot, e.g. "myorg-ab-prod-a1b2c3". Consumers should verify this
67
+ * against the product's registered project before trusting the payload.
68
+ *
24
69
  * @generated from field: string product_project_id = 2;
25
70
  */
26
71
  productProjectId: string;
27
72
 
28
73
  /**
74
+ * The time at which this snapshot was computed.
75
+ *
29
76
  * @generated from field: google.protobuf.Timestamp snapshot_time = 3;
30
77
  */
31
78
  snapshotTime?: Timestamp | undefined;
32
79
 
33
80
  /**
81
+ * Aggregates for each rolling window, computed relative to snapshot_time.
82
+ *
34
83
  * @generated from field: repeated alis.usage.v1.ProductUsage.Window windows = 4;
35
84
  */
36
85
  windows: ProductUsage_Window[];
37
86
 
38
87
  /**
88
+ * Request counts per UTC day per deployment project over the last 30 days,
89
+ * intended for trend/sparkline rendering.
90
+ *
39
91
  * @generated from field: repeated alis.usage.v1.ProductUsage.DailyCount daily_trend = 5;
40
92
  */
41
93
  dailyTrend: ProductUsage_DailyCount[];
42
94
  };
43
95
 
44
96
  /**
97
+ * A product-level API usage snapshot, derived from the Cloud Run request logs
98
+ * of all the product's deployments. Every Alis service is a gRPC service, so
99
+ * each request URL path carries "<package>.<Service>/<Method>" — the same
100
+ * identifiers locked at the Define stage — which makes these aggregates
101
+ * directly consistent with the product's protobuf contracts.
102
+ *
103
+ * Snapshots are analytical aggregates over what may be tens of thousands of
104
+ * requests; the underlying log records are not retained here. This is an
105
+ * adoption/usage lens for builders, not a replacement for observability
106
+ * (Cloud Trace, Cloud Logging, error reporting).
107
+ *
108
+ * Each product publishes one snapshot per schedule tick (hourly) to the
109
+ * Pub/Sub topic named after this message's fully qualified name,
110
+ * "alis.usage.v1.ProductUsage", in the product's Google Cloud project. Any
111
+ * consumer with access to the product project may subscribe.
112
+ *
45
113
  * @generated from message alis.usage.v1.ProductUsage
46
114
  */
47
115
  export declare type ProductUsageJson = {
48
116
  /**
117
+ * The product these usage statistics relate to.
118
+ * Format: organisations/{organisation}/products/{product}
119
+ *
49
120
  * @generated from field: string product = 1;
50
121
  */
51
122
  product?: string;
52
123
 
53
124
  /**
125
+ * The Google Cloud project id of the product project publishing this
126
+ * snapshot, e.g. "myorg-ab-prod-a1b2c3". Consumers should verify this
127
+ * against the product's registered project before trusting the payload.
128
+ *
54
129
  * @generated from field: string product_project_id = 2;
55
130
  */
56
131
  productProjectId?: string;
57
132
 
58
133
  /**
134
+ * The time at which this snapshot was computed.
135
+ *
59
136
  * @generated from field: google.protobuf.Timestamp snapshot_time = 3;
60
137
  */
61
138
  snapshotTime?: TimestampJson;
62
139
 
63
140
  /**
141
+ * Aggregates for each rolling window, computed relative to snapshot_time.
142
+ *
64
143
  * @generated from field: repeated alis.usage.v1.ProductUsage.Window windows = 4;
65
144
  */
66
145
  windows?: ProductUsage_WindowJson[];
67
146
 
68
147
  /**
148
+ * Request counts per UTC day per deployment project over the last 30 days,
149
+ * intended for trend/sparkline rendering.
150
+ *
69
151
  * @generated from field: repeated alis.usage.v1.ProductUsage.DailyCount daily_trend = 5;
70
152
  */
71
153
  dailyTrend?: ProductUsage_DailyCountJson[];
@@ -78,50 +160,72 @@ export declare type ProductUsageJson = {
78
160
  export declare const ProductUsageSchema: GenMessage<ProductUsage, {jsonType: ProductUsageJson}>;
79
161
 
80
162
  /**
163
+ * Aggregates over one rolling window.
164
+ *
81
165
  * @generated from message alis.usage.v1.ProductUsage.Window
82
166
  */
83
167
  export declare type ProductUsage_Window = Message<"alis.usage.v1.ProductUsage.Window"> & {
84
168
  /**
169
+ * Which rolling window these aggregates cover.
170
+ *
85
171
  * @generated from field: alis.usage.v1.ProductUsage.WindowKind kind = 1;
86
172
  */
87
173
  kind: ProductUsage_WindowKind;
88
174
 
89
175
  /**
176
+ * The start of the window.
177
+ *
90
178
  * @generated from field: google.protobuf.Timestamp start_time = 2;
91
179
  */
92
180
  startTime?: Timestamp | undefined;
93
181
 
94
182
  /**
183
+ * The end of the window. Rolling windows run up to `snapshot_time`.
184
+ *
95
185
  * @generated from field: google.protobuf.Timestamp end_time = 3;
96
186
  */
97
187
  endTime?: Timestamp | undefined;
98
188
 
99
189
  /**
190
+ * One entry per deployment (environment) Google Cloud project that
191
+ * received traffic in the window.
192
+ *
100
193
  * @generated from field: repeated alis.usage.v1.ProductUsage.DeploymentUsage deployments = 4;
101
194
  */
102
195
  deployments: ProductUsage_DeploymentUsage[];
103
196
  };
104
197
 
105
198
  /**
199
+ * Aggregates over one rolling window.
200
+ *
106
201
  * @generated from message alis.usage.v1.ProductUsage.Window
107
202
  */
108
203
  export declare type ProductUsage_WindowJson = {
109
204
  /**
205
+ * Which rolling window these aggregates cover.
206
+ *
110
207
  * @generated from field: alis.usage.v1.ProductUsage.WindowKind kind = 1;
111
208
  */
112
209
  kind?: ProductUsage_WindowKindJson;
113
210
 
114
211
  /**
212
+ * The start of the window.
213
+ *
115
214
  * @generated from field: google.protobuf.Timestamp start_time = 2;
116
215
  */
117
216
  startTime?: TimestampJson;
118
217
 
119
218
  /**
219
+ * The end of the window. Rolling windows run up to `snapshot_time`.
220
+ *
120
221
  * @generated from field: google.protobuf.Timestamp end_time = 3;
121
222
  */
122
223
  endTime?: TimestampJson;
123
224
 
124
225
  /**
226
+ * One entry per deployment (environment) Google Cloud project that
227
+ * received traffic in the window.
228
+ *
125
229
  * @generated from field: repeated alis.usage.v1.ProductUsage.DeploymentUsage deployments = 4;
126
230
  */
127
231
  deployments?: ProductUsage_DeploymentUsageJson[];
@@ -134,40 +238,58 @@ export declare type ProductUsage_WindowJson = {
134
238
  export declare const ProductUsage_WindowSchema: GenMessage<ProductUsage_Window, {jsonType: ProductUsage_WindowJson}>;
135
239
 
136
240
  /**
241
+ * Aggregates for one deployment project within a window.
242
+ *
137
243
  * @generated from message alis.usage.v1.ProductUsage.DeploymentUsage
138
244
  */
139
245
  export declare type ProductUsage_DeploymentUsage = Message<"alis.usage.v1.ProductUsage.DeploymentUsage"> & {
140
246
  /**
247
+ * The Google Cloud project id of the deployment (environment) project,
248
+ * as recorded on the Cloud Run revision's monitored resource.
249
+ *
141
250
  * @generated from field: string google_project_id = 1;
142
251
  */
143
252
  googleProjectId: string;
144
253
 
145
254
  /**
255
+ * Totals across all methods in this deployment for the window.
256
+ *
146
257
  * @generated from field: alis.usage.v1.ProductUsage.MethodStats totals = 2;
147
258
  */
148
259
  totals?: ProductUsage_MethodStats | undefined;
149
260
 
150
261
  /**
262
+ * Per-method aggregates, ordered by request_count descending.
263
+ *
151
264
  * @generated from field: repeated alis.usage.v1.ProductUsage.MethodUsage methods = 3;
152
265
  */
153
266
  methods: ProductUsage_MethodUsage[];
154
267
  };
155
268
 
156
269
  /**
270
+ * Aggregates for one deployment project within a window.
271
+ *
157
272
  * @generated from message alis.usage.v1.ProductUsage.DeploymentUsage
158
273
  */
159
274
  export declare type ProductUsage_DeploymentUsageJson = {
160
275
  /**
276
+ * The Google Cloud project id of the deployment (environment) project,
277
+ * as recorded on the Cloud Run revision's monitored resource.
278
+ *
161
279
  * @generated from field: string google_project_id = 1;
162
280
  */
163
281
  googleProjectId?: string;
164
282
 
165
283
  /**
284
+ * Totals across all methods in this deployment for the window.
285
+ *
166
286
  * @generated from field: alis.usage.v1.ProductUsage.MethodStats totals = 2;
167
287
  */
168
288
  totals?: ProductUsage_MethodStatsJson;
169
289
 
170
290
  /**
291
+ * Per-method aggregates, ordered by request_count descending.
292
+ *
171
293
  * @generated from field: repeated alis.usage.v1.ProductUsage.MethodUsage methods = 3;
172
294
  */
173
295
  methods?: ProductUsage_MethodUsageJson[];
@@ -180,60 +302,84 @@ export declare type ProductUsage_DeploymentUsageJson = {
180
302
  export declare const ProductUsage_DeploymentUsageSchema: GenMessage<ProductUsage_DeploymentUsage, {jsonType: ProductUsage_DeploymentUsageJson}>;
181
303
 
182
304
  /**
305
+ * Aggregates for one gRPC method.
306
+ *
183
307
  * @generated from message alis.usage.v1.ProductUsage.MethodUsage
184
308
  */
185
309
  export declare type ProductUsage_MethodUsage = Message<"alis.usage.v1.ProductUsage.MethodUsage"> & {
186
310
  /**
311
+ * The protobuf package, e.g. "myorg.ab.orders.v1".
312
+ *
187
313
  * @generated from field: string package = 1;
188
314
  */
189
315
  package: string;
190
316
 
191
317
  /**
318
+ * The unqualified service name, e.g. "OrdersService".
319
+ *
192
320
  * @generated from field: string service = 2;
193
321
  */
194
322
  service: string;
195
323
 
196
324
  /**
325
+ * The method name, e.g. "GetOrder".
326
+ *
197
327
  * @generated from field: string method = 3;
198
328
  */
199
329
  method: string;
200
330
 
201
331
  /**
332
+ * The Cloud Run service that served the requests, e.g. "orders-v1".
333
+ *
202
334
  * @generated from field: string cloud_run_service = 4;
203
335
  */
204
336
  cloudRunService: string;
205
337
 
206
338
  /**
339
+ * Request statistics for this method in this deployment and window.
340
+ *
207
341
  * @generated from field: alis.usage.v1.ProductUsage.MethodStats stats = 5;
208
342
  */
209
343
  stats?: ProductUsage_MethodStats | undefined;
210
344
  };
211
345
 
212
346
  /**
347
+ * Aggregates for one gRPC method.
348
+ *
213
349
  * @generated from message alis.usage.v1.ProductUsage.MethodUsage
214
350
  */
215
351
  export declare type ProductUsage_MethodUsageJson = {
216
352
  /**
353
+ * The protobuf package, e.g. "myorg.ab.orders.v1".
354
+ *
217
355
  * @generated from field: string package = 1;
218
356
  */
219
357
  package?: string;
220
358
 
221
359
  /**
360
+ * The unqualified service name, e.g. "OrdersService".
361
+ *
222
362
  * @generated from field: string service = 2;
223
363
  */
224
364
  service?: string;
225
365
 
226
366
  /**
367
+ * The method name, e.g. "GetOrder".
368
+ *
227
369
  * @generated from field: string method = 3;
228
370
  */
229
371
  method?: string;
230
372
 
231
373
  /**
374
+ * The Cloud Run service that served the requests, e.g. "orders-v1".
375
+ *
232
376
  * @generated from field: string cloud_run_service = 4;
233
377
  */
234
378
  cloudRunService?: string;
235
379
 
236
380
  /**
381
+ * Request statistics for this method in this deployment and window.
382
+ *
237
383
  * @generated from field: alis.usage.v1.ProductUsage.MethodStats stats = 5;
238
384
  */
239
385
  stats?: ProductUsage_MethodStatsJson;
@@ -246,80 +392,118 @@ export declare type ProductUsage_MethodUsageJson = {
246
392
  export declare const ProductUsage_MethodUsageSchema: GenMessage<ProductUsage_MethodUsage, {jsonType: ProductUsage_MethodUsageJson}>;
247
393
 
248
394
  /**
395
+ * Request statistics derived from Cloud Run request logs.
396
+ *
249
397
  * @generated from message alis.usage.v1.ProductUsage.MethodStats
250
398
  */
251
399
  export declare type ProductUsage_MethodStats = Message<"alis.usage.v1.ProductUsage.MethodStats"> & {
252
400
  /**
401
+ * The number of requests.
402
+ *
253
403
  * @generated from field: int64 request_count = 1;
254
404
  */
255
405
  requestCount: bigint;
256
406
 
257
407
  /**
408
+ * Requests with an HTTP status other than 200. gRPC errors surface as
409
+ * non-200 statuses on the Cloud Run request log entry.
410
+ *
258
411
  * @generated from field: int64 error_count = 2;
259
412
  */
260
413
  errorCount: bigint;
261
414
 
262
415
  /**
416
+ * error_count / request_count, in [0, 1].
417
+ *
263
418
  * @generated from field: double error_rate = 3;
264
419
  */
265
420
  errorRate: number;
266
421
 
267
422
  /**
423
+ * Request latency percentiles in seconds.
424
+ *
268
425
  * @generated from field: double latency_p50 = 4;
269
426
  */
270
427
  latencyP50: number;
271
428
 
272
429
  /**
430
+ * 95th percentile request latency, in seconds.
431
+ *
273
432
  * @generated from field: double latency_p95 = 5;
274
433
  */
275
434
  latencyP95: number;
276
435
 
277
436
  /**
437
+ * 99th percentile request latency, in seconds.
438
+ *
278
439
  * @generated from field: double latency_p99 = 6;
279
440
  */
280
441
  latencyP99: number;
281
442
 
282
443
  /**
444
+ * Approximate number of distinct callers, estimated from the request's
445
+ * (remote IP, user agent) pair. Request logs carry no caller identity, so
446
+ * treat this as an indication rather than an exact audience count.
447
+ *
283
448
  * @generated from field: int64 distinct_callers = 7;
284
449
  */
285
450
  distinctCallers: bigint;
286
451
  };
287
452
 
288
453
  /**
454
+ * Request statistics derived from Cloud Run request logs.
455
+ *
289
456
  * @generated from message alis.usage.v1.ProductUsage.MethodStats
290
457
  */
291
458
  export declare type ProductUsage_MethodStatsJson = {
292
459
  /**
460
+ * The number of requests.
461
+ *
293
462
  * @generated from field: int64 request_count = 1;
294
463
  */
295
464
  requestCount?: string;
296
465
 
297
466
  /**
467
+ * Requests with an HTTP status other than 200. gRPC errors surface as
468
+ * non-200 statuses on the Cloud Run request log entry.
469
+ *
298
470
  * @generated from field: int64 error_count = 2;
299
471
  */
300
472
  errorCount?: string;
301
473
 
302
474
  /**
475
+ * error_count / request_count, in [0, 1].
476
+ *
303
477
  * @generated from field: double error_rate = 3;
304
478
  */
305
479
  errorRate?: number | "NaN" | "Infinity" | "-Infinity";
306
480
 
307
481
  /**
482
+ * Request latency percentiles in seconds.
483
+ *
308
484
  * @generated from field: double latency_p50 = 4;
309
485
  */
310
486
  latencyP50?: number | "NaN" | "Infinity" | "-Infinity";
311
487
 
312
488
  /**
489
+ * 95th percentile request latency, in seconds.
490
+ *
313
491
  * @generated from field: double latency_p95 = 5;
314
492
  */
315
493
  latencyP95?: number | "NaN" | "Infinity" | "-Infinity";
316
494
 
317
495
  /**
496
+ * 99th percentile request latency, in seconds.
497
+ *
318
498
  * @generated from field: double latency_p99 = 6;
319
499
  */
320
500
  latencyP99?: number | "NaN" | "Infinity" | "-Infinity";
321
501
 
322
502
  /**
503
+ * Approximate number of distinct callers, estimated from the request's
504
+ * (remote IP, user agent) pair. Request logs carry no caller identity, so
505
+ * treat this as an indication rather than an exact audience count.
506
+ *
323
507
  * @generated from field: int64 distinct_callers = 7;
324
508
  */
325
509
  distinctCallers?: string;
@@ -332,50 +516,72 @@ export declare type ProductUsage_MethodStatsJson = {
332
516
  export declare const ProductUsage_MethodStatsSchema: GenMessage<ProductUsage_MethodStats, {jsonType: ProductUsage_MethodStatsJson}>;
333
517
 
334
518
  /**
519
+ * Request counts for one UTC day in one deployment project.
520
+ *
335
521
  * @generated from message alis.usage.v1.ProductUsage.DailyCount
336
522
  */
337
523
  export declare type ProductUsage_DailyCount = Message<"alis.usage.v1.ProductUsage.DailyCount"> & {
338
524
  /**
525
+ * The UTC day in RFC 3339 date-only form, e.g. "2026-08-31".
526
+ *
339
527
  * @generated from field: string date = 1;
340
528
  */
341
529
  date: string;
342
530
 
343
531
  /**
532
+ * The Google Cloud project id of the deployment (environment) project.
533
+ *
344
534
  * @generated from field: string google_project_id = 2;
345
535
  */
346
536
  googleProjectId: string;
347
537
 
348
538
  /**
539
+ * The number of requests on that day.
540
+ *
349
541
  * @generated from field: int64 request_count = 3;
350
542
  */
351
543
  requestCount: bigint;
352
544
 
353
545
  /**
546
+ * The number of requests on that day with an HTTP status other than 200,
547
+ * counted as in `MethodStats.error_count`.
548
+ *
354
549
  * @generated from field: int64 error_count = 4;
355
550
  */
356
551
  errorCount: bigint;
357
552
  };
358
553
 
359
554
  /**
555
+ * Request counts for one UTC day in one deployment project.
556
+ *
360
557
  * @generated from message alis.usage.v1.ProductUsage.DailyCount
361
558
  */
362
559
  export declare type ProductUsage_DailyCountJson = {
363
560
  /**
561
+ * The UTC day in RFC 3339 date-only form, e.g. "2026-08-31".
562
+ *
364
563
  * @generated from field: string date = 1;
365
564
  */
366
565
  date?: string;
367
566
 
368
567
  /**
568
+ * The Google Cloud project id of the deployment (environment) project.
569
+ *
369
570
  * @generated from field: string google_project_id = 2;
370
571
  */
371
572
  googleProjectId?: string;
372
573
 
373
574
  /**
575
+ * The number of requests on that day.
576
+ *
374
577
  * @generated from field: int64 request_count = 3;
375
578
  */
376
579
  requestCount?: string;
377
580
 
378
581
  /**
582
+ * The number of requests on that day with an HTTP status other than 200,
583
+ * counted as in `MethodStats.error_count`.
584
+ *
379
585
  * @generated from field: int64 error_count = 4;
380
586
  */
381
587
  errorCount?: string;
@@ -388,31 +594,43 @@ export declare type ProductUsage_DailyCountJson = {
388
594
  export declare const ProductUsage_DailyCountSchema: GenMessage<ProductUsage_DailyCount, {jsonType: ProductUsage_DailyCountJson}>;
389
595
 
390
596
  /**
597
+ * The rolling windows a snapshot reports on.
598
+ *
391
599
  * @generated from enum alis.usage.v1.ProductUsage.WindowKind
392
600
  */
393
601
  export enum ProductUsage_WindowKind {
394
602
  /**
603
+ * Not set. The default value; should not be used.
604
+ *
395
605
  * @generated from enum value: WINDOW_KIND_UNSPECIFIED = 0;
396
606
  */
397
607
  UNSPECIFIED = 0,
398
608
 
399
609
  /**
610
+ * The 24 hours up to snapshot_time.
611
+ *
400
612
  * @generated from enum value: WINDOW_KIND_ROLLING_24H = 1;
401
613
  */
402
614
  ROLLING_24H = 1,
403
615
 
404
616
  /**
617
+ * The 7 days up to snapshot_time.
618
+ *
405
619
  * @generated from enum value: WINDOW_KIND_ROLLING_7D = 2;
406
620
  */
407
621
  ROLLING_7D = 2,
408
622
 
409
623
  /**
624
+ * The 30 days up to snapshot_time.
625
+ *
410
626
  * @generated from enum value: WINDOW_KIND_ROLLING_30D = 3;
411
627
  */
412
628
  ROLLING_30D = 3,
413
629
  }
414
630
 
415
631
  /**
632
+ * The rolling windows a snapshot reports on.
633
+ *
416
634
  * @generated from enum alis.usage.v1.ProductUsage.WindowKind
417
635
  */
418
636
  export declare type ProductUsage_WindowKindJson = "WINDOW_KIND_UNSPECIFIED" | "WINDOW_KIND_ROLLING_24H" | "WINDOW_KIND_ROLLING_7D" | "WINDOW_KIND_ROLLING_30D";
@@ -1,7 +1,29 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/usage/v1/usage.proto (package alis.usage.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // API usage snapshots that Alis products publish about their own traffic.
6
+ //
7
+ // The package defines one payload, `ProductUsage`: request counts, error
8
+ // rates, latency percentiles and approximate caller counts per gRPC method,
9
+ // aggregated from the Cloud Run request logs of a product's deployments. Each
10
+ // product computes a snapshot hourly and publishes it to the Pub/Sub topic
11
+ // `alis.usage.v1.ProductUsage` in its own Google Cloud project, where any
12
+ // consumer with access to that project may subscribe.
13
+ //
14
+ // A snapshot contains:
15
+ //
16
+ // - `Window`: rolling 24-hour, 7-day and 30-day aggregates, broken down by
17
+ // deployment project (`DeploymentUsage`) and then by method
18
+ // (`MethodUsage`).
19
+ // - `DailyCount`: request and error counts per UTC day and deployment project
20
+ // over the last 30 days, for trend charts.
21
+ //
22
+ // Methods are identified by protobuf package, service and method name, so the
23
+ // figures line up with the product's protobuf contracts. Snapshots are an
24
+ // adoption and usage view for builders, not a replacement for Cloud Logging
25
+ // or Cloud Trace.
26
+
5
27
  import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
6
28
  import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
29
 
@@ -60,6 +82,8 @@ export const ProductUsage_WindowKindSchema = /*@__PURE__*/
60
82
  enumDesc(file_alis_usage_v1_usage, 0, 0);
61
83
 
62
84
  /**
85
+ * The rolling windows a snapshot reports on.
86
+ *
63
87
  * @generated from enum alis.usage.v1.ProductUsage.WindowKind
64
88
  */
65
89
  export const ProductUsage_WindowKind = /*@__PURE__*/
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  },
24
24
  "type": "module",
25
25
  "types": "./index.d.ts",
26
- "version": "1.5.0"
26
+ "version": "1.7.0"
27
27
  }