Aller au contenu

lib/webVitals/types

Ce contenu n’est pas encore disponible dans votre langue.

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:111

Interface representing the data structure for web vitals.

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: WebVitalsRouteSummary[];

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:120

Summary of web vitals data for different routes.

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: 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: {
routeSummary: WebVitalsRouteSummary[];
summary: WebVitalsSummary;
};

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:160

Web vitals data for the last 30 days.

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: {
routeSummary: WebVitalsRouteSummary[];
summary: WebVitalsSummary;
};

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:130

Web vitals data for the last 24 hours.

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.


Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:75

Represents a summary of web vitals for a specific route.

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: 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


Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:66

Represents the statistics of a web vital metric.

rating: "good" | "needs-improvement" | "poor";

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:68

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


Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:30

Represents a summary of web vitals metrics.

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: 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: number;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:33

The size of the sample used to calculate the metrics.


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

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.

IntermediateWebVitalsRouteSummary.metrics

passingCoreWebVitals: boolean;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:84

Indicates whether the core web vitals for the route are passing.

IntermediateWebVitalsRouteSummary.passingCoreWebVitals

route: string;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:79

The route for which the web vitals are summarized.

IntermediateWebVitalsRouteSummary.route

score: number;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:91

IntermediateWebVitalsRouteSummary.score

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.

id: string;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:18

The unique identifier for the web vitals response item.

name: string;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:21

The name of the web vital metric.

pathname: string;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:19

The pathname of the web page.

optional quartile: number;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:26

Optional quartile value of the web vital metric.

optional quartile_end: boolean;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:27

Optional flag indicating if the quartile value is final.

rating: "good" | "needs-improvement" | "poor";

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:23

The rating of the web vital metric.

optional rating_end: boolean;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:25

Optional flag indicating if the rating is final.

route: string;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:20

The route of the web page.

timestamp: Date;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:24

The timestamp when the web vital metric was recorded.

value: number;

Defined in: studiocms/packages/studiocms/src/lib/webVitals/types.ts:22

The value of the web vital metric.


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.