Skip to content

Commit

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

The following keys were added:
- schemas.LighthouseAuditResultV5.properties.metricSavings.$ref
- schemas.LighthouseAuditResultV5.properties.metricSavings.description
- schemas.MetricSavings.description
- schemas.MetricSavings.id
- schemas.MetricSavings.properties.CLS.description
- schemas.MetricSavings.properties.CLS.format
- schemas.MetricSavings.properties.CLS.type
- schemas.MetricSavings.properties.FCP.description
- schemas.MetricSavings.properties.FCP.format
- schemas.MetricSavings.properties.FCP.type
- schemas.MetricSavings.properties.INP.description
- schemas.MetricSavings.properties.INP.format
- schemas.MetricSavings.properties.INP.type
- schemas.MetricSavings.properties.LCP.description
- schemas.MetricSavings.properties.LCP.format
- schemas.MetricSavings.properties.LCP.type
- schemas.MetricSavings.properties.TBT.description
- schemas.MetricSavings.properties.TBT.format
- schemas.MetricSavings.properties.TBT.type
- schemas.MetricSavings.type
  • Loading branch information
yoshi-automation authored and sofisl committed Sep 4, 2024
1 parent 16514a1 commit 20d9d57
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
38 changes: 37 additions & 1 deletion discovery/pagespeedonline-v5.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
}
}
},
"revision": "20240530",
"revision": "20240829",
"rootUrl": "https://pagespeedonline.googleapis.com/",
"schemas": {
"AuditRefs": {
Expand Down Expand Up @@ -432,6 +432,10 @@
"description": "The audit's id.",
"type": "string"
},
"metricSavings": {
"$ref": "MetricSavings",
"description": "The metric savings of the audit."
},
"numericUnit": {
"description": "The unit of the numeric_value field. Used to format the numeric value for display.",
"type": "string"
Expand Down Expand Up @@ -592,6 +596,38 @@
},
"type": "object"
},
"MetricSavings": {
"description": "The metric savings of the audit.",
"id": "MetricSavings",
"properties": {
"CLS": {
"description": "Optional. Optional numeric value representing the audit's savings for the CLS metric.",
"format": "double",
"type": "number"
},
"FCP": {
"description": "Optional. Optional numeric value representing the audit's savings for the FCP metric.",
"format": "double",
"type": "number"
},
"INP": {
"description": "Optional. Optional numeric value representing the audit's savings for the INP metric.",
"format": "double",
"type": "number"
},
"LCP": {
"description": "Optional. Optional numeric value representing the audit's savings for the LCP metric.",
"format": "double",
"type": "number"
},
"TBT": {
"description": "Optional. Optional numeric value representing the audit's savings for the TBT metric.",
"format": "double",
"type": "number"
}
},
"type": "object"
},
"PagespeedApiLoadingExperienceV5": {
"description": "The CrUX loading experience object that contains CrUX data breakdowns.",
"id": "PagespeedApiLoadingExperienceV5",
Expand Down
29 changes: 29 additions & 0 deletions src/apis/pagespeedonline/v5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ export namespace pagespeedonline_v5 {
* The audit's id.
*/
id?: string | null;
/**
* The metric savings of the audit.
*/
metricSavings?: Schema$MetricSavings;
/**
* The unit of the numeric_value field. Used to format the numeric value for display.
*/
Expand Down Expand Up @@ -451,6 +455,31 @@ export namespace pagespeedonline_v5 {
*/
userAgent?: string | null;
}
/**
* The metric savings of the audit.
*/
export interface Schema$MetricSavings {
/**
* Optional. Optional numeric value representing the audit's savings for the CLS metric.
*/
CLS?: number | null;
/**
* Optional. Optional numeric value representing the audit's savings for the FCP metric.
*/
FCP?: number | null;
/**
* Optional. Optional numeric value representing the audit's savings for the INP metric.
*/
INP?: number | null;
/**
* Optional. Optional numeric value representing the audit's savings for the LCP metric.
*/
LCP?: number | null;
/**
* Optional. Optional numeric value representing the audit's savings for the TBT metric.
*/
TBT?: number | null;
}
/**
* The CrUX loading experience object that contains CrUX data breakdowns.
*/
Expand Down

0 comments on commit 20d9d57

Please sign in to comment.