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

Function queryEvents

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

Source from the content-addressed store, hash-verified

467});
468
469export async function queryEvents(
470 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zEventsQuery> }>,
471 reply: FastifyReply
472) {
473 const projectId = await getProjectId(req as RequestWithProjectParam);
474 return reply.send(await queryEventsCore({ projectId, ...req.query }));
475}
476
477export async function listEventNames(
478 req: FastifyRequest<{ Params: { projectId?: string } }>,

Callers

nothing calls this directly

Calls 3

queryEventsCoreFunction · 0.90
getProjectIdFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected