lib/webVitals/types
Interfaces
'Read the “', Interfaces, '” section'GetWebVitalsData
'Read the “', GetWebVitalsData, '” section'Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:111
Interface representing the data structure for web vitals.
Properties
'Read the “', Properties, '” section'raw: Omit<WebVitalsResponseItem, "rating_end" | "quartile" | "quartile_end">[];
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:115
Array of raw web vitals data items, excluding ‘rating_end’, ‘quartile’, and ‘quartile_end’ properties.
routeSummary
'Read the “', routeSummary, '” section'routeSummary: WebVitalsRouteSummary[];
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:120
Summary of web vitals data for different routes.
sevenDays
'Read the “', sevenDays, '” section'sevenDays: { routeSummary: WebVitalsRouteSummary[]; summary: WebVitalsSummary;};
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:145
Web vitals data for the last 7 days.
routeSummary
'Read the “', routeSummary, '” section'routeSummary: WebVitalsRouteSummary[];
Summary of web vitals data for different routes in the last 7 days.
summary: WebVitalsSummary;
Summary of web vitals data for the last 7 days.
summary: WebVitalsSummary;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:125
Overall summary of web vitals data.
thirtyDays
'Read the “', thirtyDays, '” section'thirtyDays: { routeSummary: WebVitalsRouteSummary[]; summary: WebVitalsSummary;};
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:160
Web vitals data for the last 30 days.
routeSummary
'Read the “', routeSummary, '” section'routeSummary: WebVitalsRouteSummary[];
Summary of web vitals data for different routes in the last 30 days.
summary: WebVitalsSummary;
Summary of web vitals data for the last 30 days.
twentyFourHours
'Read the “', twentyFourHours, '” section'twentyFourHours: { routeSummary: WebVitalsRouteSummary[]; summary: WebVitalsSummary;};
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:130
Web vitals data for the last 24 hours.
routeSummary
'Read the “', routeSummary, '” section'routeSummary: WebVitalsRouteSummary[];
Summary of web vitals data for different routes in the last 24 hours.
summary: WebVitalsSummary;
Summary of web vitals data for the last 24 hours.
IntermediateWebVitalsRouteSummary
'Read the “', IntermediateWebVitalsRouteSummary, '” section'Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:75
Represents a summary of web vitals for a specific route.
Extended by
'Read the “', Extended by, '” section'Properties
'Read the “', Properties, '” section'metrics: Partial<Record<"CLS" | "INP" | "LCP", MetricStats>>;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:89
A partial record of core web vitals metrics and their statistics.
passingCoreWebVitals
'Read the “', passingCoreWebVitals, '” section'passingCoreWebVitals: boolean;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:84
Indicates whether the core web vitals for the route are passing.
route: string;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:79
The route for which the web vitals are summarized.
score: number;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:91
MetricStats
'Read the “', MetricStats, '” section'Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:66
Represents the statistics of a web vital metric.
Properties
'Read the “', Properties, '” section'rating: "good" | "needs-improvement" | "poor";
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:68
sampleSize
'Read the “', sampleSize, '” section'sampleSize: number;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:69
value: number;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:67
WebVitalsMetricSummary
'Read the “', WebVitalsMetricSummary, '” section'Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:30
Represents a summary of web vitals metrics.
Properties
'Read the “', Properties, '” section'histogram
'Read the “', histogram, '” section'histogram: Record<"good" | "needs-improvement" | "poor", number>;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:31
A histogram that maps each web vitals rating to a number.
percentiles
'Read the “', percentiles, '” section'percentiles: Partial<Record<"p75", { rating: "good" | "needs-improvement" | "poor"; value: number;}>>;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:32
An object containing percentiles, specifically the 75th percentile (p75), with its value and corresponding web vitals rating.
sampleSize
'Read the “', sampleSize, '” section'sampleSize: number;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:33
The size of the sample used to calculate the metrics.
WebVitalsRouteSummary
'Read the “', WebVitalsRouteSummary, '” section'Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:104
Represents a summary of web vitals metrics for a specific route.
Extends the IntermediateWebVitalsRouteSummary
interface.
WebVitalsRouteSummary
Properties
'Read the “', Properties, '” section'metrics: Record<"CLS" | "INP" | "LCP", MetricStats>;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:105
A record of core web vitals metrics and their corresponding statistics.
Overrides
'Read the “', Overrides, '” section'IntermediateWebVitalsRouteSummary
.metrics
passingCoreWebVitals
'Read the “', passingCoreWebVitals, '” section'passingCoreWebVitals: boolean;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:84
Indicates whether the core web vitals for the route are passing.
Inherited from
'Read the “', Inherited from, '” section'IntermediateWebVitalsRouteSummary
.passingCoreWebVitals
route: string;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:79
The route for which the web vitals are summarized.
Inherited from
'Read the “', Inherited from, '” section'IntermediateWebVitalsRouteSummary
.route
score: number;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:91
Inherited from
'Read the “', Inherited from, '” section'IntermediateWebVitalsRouteSummary
.score
Type Aliases
'Read the “', Type Aliases, '” section'WebVitalsResponseItem
'Read the “', WebVitalsResponseItem, '” section'type WebVitalsResponseItem = { id: string; name: string; pathname: string; quartile: number; quartile_end: boolean; rating: "good" | "needs-improvement" | "poor"; rating_end: boolean; route: string; timestamp: Date; value: number;};
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:17
Represents a single web vitals response item.
Type declaration
'Read the “', Type declaration, '” section'id: string;
name: string;
pathname: string;
quartile?
'Read the “', quartile?, '” section'optional quartile: number;
quartile_end?
'Read the “', quartile_end?, '” section'optional quartile_end: boolean;
rating: "good" | "needs-improvement" | "poor";
rating_end?
'Read the “', rating_end?, '” section'optional rating_end: boolean;
route: string;
timestamp
'Read the “', timestamp, '” section'timestamp: Date;
value: number;
WebVitalsSummary
'Read the “', WebVitalsSummary, '” section'type WebVitalsSummary = Record<string, WebVitalsMetricSummary>;
Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:61
This type is a record where the keys are strings representing the names of the metrics,
and the values are WebVitalsMetricSummary
objects containing the summary details for each metric.