Skip to content

Commit

Permalink
feat(analyticsdata): update the API
Browse files Browse the repository at this point in the history
#### analyticsdata:v1beta

The following keys were added:
- schemas.ResponseMetaData.properties.samplingMetadatas.description
- schemas.ResponseMetaData.properties.samplingMetadatas.items.$ref
- schemas.ResponseMetaData.properties.samplingMetadatas.type
- schemas.SamplingMetadata.description
- schemas.SamplingMetadata.id
- schemas.SamplingMetadata.properties.samplesReadCount.description
- schemas.SamplingMetadata.properties.samplesReadCount.format
- schemas.SamplingMetadata.properties.samplesReadCount.type
- schemas.SamplingMetadata.properties.samplingSpaceSize.description
- schemas.SamplingMetadata.properties.samplingSpaceSize.format
- schemas.SamplingMetadata.properties.samplingSpaceSize.type
- schemas.SamplingMetadata.type

The following keys were changed:
- schemas.ResponseMetaData.properties.subjectToThresholding.description
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 27, 2023
1 parent 134dc22 commit a4be20b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
28 changes: 26 additions & 2 deletions discovery/analyticsdata-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
}
}
},
"revision": "20230920",
"revision": "20231114",
"rootUrl": "https://analyticsdata.googleapis.com/",
"schemas": {
"ActiveMetricRestriction": {
Expand Down Expand Up @@ -1349,12 +1349,19 @@
"description": "If empty reason is specified, the report is empty for this reason.",
"type": "string"
},
"samplingMetadatas": {
"description": "If this report results is [sampled](https://support.google.com/analytics/answer/13331292), this describes the percentage of events used in this report. One `samplingMetadatas` is populated for each date range. Each `samplingMetadatas` corresponds to a date range in order that date ranges were specified in the request. However if the results are not sampled, this field will not be defined.",
"items": {
"$ref": "SamplingMetadata"
},
"type": "array"
},
"schemaRestrictionResponse": {
"$ref": "SchemaRestrictionResponse",
"description": "Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388)."
},
"subjectToThresholding": {
"description": "If `subjectToThresholding` is true, this report is subject to thresholding and only returns data that meets the minimum aggregation thresholds. It is possible for a request to be subject to thresholding thresholding and no data is absent from the report, and this happens when all data is above the thresholds. To learn more, see [Data thresholds](https://support.google.com/analytics/answer/9383630) and [About Demographics and Interests](https://support.google.com/analytics/answer/2799357).",
"description": "If `subjectToThresholding` is true, this report is subject to thresholding and only returns data that meets the minimum aggregation thresholds. It is possible for a request to be subject to thresholding thresholding and no data is absent from the report, and this happens when all data is above the thresholds. To learn more, see [Data thresholds](https://support.google.com/analytics/answer/9383630).",
"type": "boolean"
},
"timeZone": {
Expand Down Expand Up @@ -1797,6 +1804,23 @@
},
"type": "object"
},
"SamplingMetadata": {
"description": "If this report results is [sampled](https://support.google.com/analytics/answer/13331292), this describes the percentage of events used in this report. Sampling is the practice of analyzing a subset of all data in order to uncover the meaningful information in the larger data set.",
"id": "SamplingMetadata",
"properties": {
"samplesReadCount": {
"description": "The total number of events read in this sampled report for a date range. This is the size of the subset this property's data that was analyzed in this report.",
"format": "int64",
"type": "string"
},
"samplingSpaceSize": {
"description": "The total number of events present in this property's data that could have been analyzed in this report for a date range. Sampling uncovers the meaningful information about the larger data set, and this is the size of the larger data set. To calculate the percentage of available data that was used in this report, compute `samplesReadCount/samplingSpaceSize`.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"SchemaRestrictionResponse": {
"description": "The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).",
"id": "SchemaRestrictionResponse",
Expand Down
19 changes: 18 additions & 1 deletion src/apis/analyticsdata/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -820,12 +820,16 @@ export namespace analyticsdata_v1beta {
* If empty reason is specified, the report is empty for this reason.
*/
emptyReason?: string | null;
/**
* If this report results is [sampled](https://support.google.com/analytics/answer/13331292), this describes the percentage of events used in this report. One `samplingMetadatas` is populated for each date range. Each `samplingMetadatas` corresponds to a date range in order that date ranges were specified in the request. However if the results are not sampled, this field will not be defined.
*/
samplingMetadatas?: Schema$SamplingMetadata[];
/**
* Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
*/
schemaRestrictionResponse?: Schema$SchemaRestrictionResponse;
/**
* If `subjectToThresholding` is true, this report is subject to thresholding and only returns data that meets the minimum aggregation thresholds. It is possible for a request to be subject to thresholding thresholding and no data is absent from the report, and this happens when all data is above the thresholds. To learn more, see [Data thresholds](https://support.google.com/analytics/answer/9383630) and [About Demographics and Interests](https://support.google.com/analytics/answer/2799357).
* If `subjectToThresholding` is true, this report is subject to thresholding and only returns data that meets the minimum aggregation thresholds. It is possible for a request to be subject to thresholding thresholding and no data is absent from the report, and this happens when all data is above the thresholds. To learn more, see [Data thresholds](https://support.google.com/analytics/answer/9383630).
*/
subjectToThresholding?: boolean | null;
/**
Expand Down Expand Up @@ -1120,6 +1124,19 @@ export namespace analyticsdata_v1beta {
*/
totals?: Schema$Row[];
}
/**
* If this report results is [sampled](https://support.google.com/analytics/answer/13331292), this describes the percentage of events used in this report. Sampling is the practice of analyzing a subset of all data in order to uncover the meaningful information in the larger data set.
*/
export interface Schema$SamplingMetadata {
/**
* The total number of events read in this sampled report for a date range. This is the size of the subset this property's data that was analyzed in this report.
*/
samplesReadCount?: string | null;
/**
* The total number of events present in this property's data that could have been analyzed in this report for a date range. Sampling uncovers the meaningful information about the larger data set, and this is the size of the larger data set. To calculate the percentage of available data that was used in this report, compute `samplesReadCount/samplingSpaceSize`.
*/
samplingSpaceSize?: string | null;
}
/**
* The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
*/
Expand Down

0 comments on commit a4be20b

Please sign in to comment.