MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getOverview

Function getOverview

apps/api/src/controllers/insights.controller.ts:121–133  ·  view source on GitHub ↗
(
  req: FastifyRequest<{
    Params: { projectId?: string };
    Querystring: z.infer<typeof zOverviewQuery>;
  }>,
  reply: FastifyReply
)

Source from the content-addressed store, hash-verified

119});
120
121export async function getOverview(
122 req: FastifyRequest<{
123 Params: { projectId?: string };
124 Querystring: z.infer<typeof zOverviewQuery>;
125 }>,
126 reply: FastifyReply
127) {
128 const projectId = await getProjectId(req as RequestWithProjectParam);
129 const { startDate, endDate } = await resolveDates(projectId, req.query);
130 return reply.send(
131 await getAnalyticsOverviewCore({ projectId, startDate, endDate, interval: req.query.interval })
132 );
133}
134
135// ---------------------------------------------------------------------------
136// Analytics — metrics (legacy)

Callers

nothing calls this directly

Calls 4

getAnalyticsOverviewCoreFunction · 0.90
getProjectIdFunction · 0.70
resolveDatesFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected