콘텐츠로 이동

integrations/webVitals/utils/buildPerPageDataObject

이 콘텐츠는 아직 번역되지 않았습니다.

type perPageDataEntry = {
CLS: {
average: number;
rating: string;
};
INP: {
average: number;
rating: string;
};
LCP: {
average: number;
rating: string;
};
pageRoute: string;
sampleSize: number;
};

Defined in: studiocms/packages/studiocms/src/integrations/webVitals/utils/buildPerPageDataObject.ts:12^

CLS: {
average: number;
rating: string;
};

Defined in: studiocms/packages/studiocms/src/integrations/webVitals/utils/buildPerPageDataObject.ts:15^

average: number;
rating: string;

INP: {
average: number;
rating: string;
};

Defined in: studiocms/packages/studiocms/src/integrations/webVitals/utils/buildPerPageDataObject.ts:23^

average: number;
rating: string;

LCP: {
average: number;
rating: string;
};

Defined in: studiocms/packages/studiocms/src/integrations/webVitals/utils/buildPerPageDataObject.ts:19^

average: number;
rating: string;

pageRoute: string;

Defined in: studiocms/packages/studiocms/src/integrations/webVitals/utils/buildPerPageDataObject.ts:13^

sampleSize: number;

Defined in: studiocms/packages/studiocms/src/integrations/webVitals/utils/buildPerPageDataObject.ts:14^

function buildPerPageRouteDataObject(webVitalData: WebVitalsResponseItem[]): {
historicalData: perPageDataEntry[];
last24HoursData: perPageDataEntry[];
last30DaysData: perPageDataEntry[];
last7DaysData: perPageDataEntry[];
}

Defined in: studiocms/packages/studiocms/src/integrations/webVitals/utils/buildPerPageDataObject.ts:37^

WebVitalsResponseItem[]

{
historicalData: perPageDataEntry[];
last24HoursData: perPageDataEntry[];
last30DaysData: perPageDataEntry[];
last7DaysData: perPageDataEntry[];
}
historicalData: perPageDataEntry[] = perPageData;
last24HoursData: perPageDataEntry[] = last24HoursPerPageData;
last30DaysData: perPageDataEntry[] = last30DaysPerPageData;
last7DaysData: perPageDataEntry[] = last7DaysPerPageData;