Skip to content

Commit 95dd249

Browse files
Google APIscopybara-github
authored andcommitted
feat: add kind field which is used to distinguish between response types
feat: add `potentially_thresholded_requests_per_hour` field to `PropertyQuota` PiperOrigin-RevId: 365882072
1 parent 6823bdc commit 95dd249

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

google/analytics/data/v1beta/analytics_data_api.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ message RunReportResponse {
244244

245245
// This Analytics Property's quota state including this request.
246246
PropertyQuota property_quota = 9;
247+
248+
// Identifies what kind of resource this message is. This `kind` is always the
249+
// fixed string "analyticsData#runReport". Useful to distinguish between
250+
// response types in JSON.
251+
string kind = 10;
247252
}
248253

249254
// The request to generate a pivot report.
@@ -369,6 +374,11 @@ message RunPivotReportResponse {
369374

370375
// This Analytics Property's quota state including this request.
371376
PropertyQuota property_quota = 7;
377+
378+
// Identifies what kind of resource this message is. This `kind` is always the
379+
// fixed string "analyticsData#runPivotReport". Useful to distinguish between
380+
// response types in JSON.
381+
string kind = 8;
372382
}
373383

374384
// The batch request containing multiple report requests.
@@ -393,6 +403,11 @@ message BatchRunReportsRequest {
393403
message BatchRunReportsResponse {
394404
// Individual responses. Each response has a separate report request.
395405
repeated RunReportResponse reports = 1;
406+
407+
// Identifies what kind of resource this message is. This `kind` is always the
408+
// fixed string "analyticsData#batchRunReports". Useful to distinguish between
409+
// response types in JSON.
410+
string kind = 2;
396411
}
397412

398413
// The batch request containing multiple pivot report requests.
@@ -417,6 +432,11 @@ message BatchRunPivotReportsRequest {
417432
message BatchRunPivotReportsResponse {
418433
// Individual responses. Each response has a separate pivot report request.
419434
repeated RunPivotReportResponse pivot_reports = 1;
435+
436+
// Identifies what kind of resource this message is. This `kind` is always the
437+
// fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
438+
// between response types in JSON.
439+
string kind = 2;
420440
}
421441

422442
// Request for a property's dimension and metric metadata.
@@ -519,4 +539,9 @@ message RunRealtimeReportResponse {
519539

520540
// This Analytics Property's Realtime quota state including this request.
521541
PropertyQuota property_quota = 8;
542+
543+
// Identifies what kind of resource this message is. This `kind` is always the
544+
// fixed string "analyticsData#runRealtimeReport". Useful to distinguish
545+
// between response types in JSON.
546+
string kind = 9;
522547
}

google/analytics/data/v1beta/data.proto

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ message Pivot {
381381
int64 offset = 3;
382382

383383
// The number of unique combinations of dimension values to return in this
384-
// pivot. If unspecified, up to 10,000 unique combinations of dimension values
385-
// are returned. `limit` must be positive.
384+
// pivot. The `limit` parameter is required. A `limit` of 10,000 is common for
385+
// single pivot requests.
386386
//
387387
// The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
388388
// must not exceed 100,000. For example, a two pivot request with `limit:
@@ -667,6 +667,12 @@ message PropertyQuota {
667667
// server errors per hour; Analytics 360 Properties and cloud project pairs
668668
// can have up to 50 server errors per hour.
669669
QuotaStatus server_errors_per_project_per_hour = 4;
670+
671+
// Analytics Properties can send up to 120 requests with potentially
672+
// thresholded dimensions per hour. In a batch request, each report request
673+
// is individually counted for this quota if the request contains potentially
674+
// thresholded dimensions.
675+
QuotaStatus potentially_thresholded_requests_per_hour = 5;
670676
}
671677

672678
// Current state for a particular quota group.

0 commit comments

Comments
 (0)