Skip to main content

PageSpeedMetric

One of the six performance metrics returned by pageSpeedRunAnalysis, including value, units, score, and related recommendations.

type PageSpeedMetric {
id: String!
acronym: String!
title: String!
descriptionMarkdown: String
value: Float
unit: PageSpeedMetricUnit
displayValue: String
score: Float
rating: PageSpeedRating!
weight: Int!
recommendationIds: [String!]!
}

Fields​

PageSpeedMetric.id ● String! non-null scalar​

PageSpeedMetric.acronym ● String! non-null scalar​

PageSpeedMetric.title ● String! non-null scalar​

PageSpeedMetric.descriptionMarkdown ● String scalar​

Captured metric explanation in Markdown; null when absent.

PageSpeedMetric.value ● Float scalar​

Raw numeric value in unit; null when no numeric value is supplied.

PageSpeedMetric.unit ● PageSpeedMetricUnit enum​

Unit of value; null for missing or unrecognized captured units.

PageSpeedMetric.displayValue ● String scalar​

Provider-formatted metric text; null when absent.

PageSpeedMetric.score ● Float scalar​

Numeric score as a fraction from 0 to 1; null when no numeric score is supplied.

PageSpeedMetric.rating ● PageSpeedRating! non-null enum​

GOOD at score >= 0.9, NEEDS_IMPROVEMENT at >= 0.5, POOR below 0.5, UNRATED without a numeric score.

PageSpeedMetric.weight ● Int! non-null scalar​

Performance scoring weight from the captured audit reference; zero when absent.

PageSpeedMetric.recommendationIds ● [String!]! non-null scalar​

Audit IDs linked to this metric in the captured report.

Member Of​

PageSpeedRunAnalysis object