export async function getCTRPercentData()

in lib/looker.ts [131:163]


export async function getCTRPercentData(
  id: string,
  platform: Platform,
  template: string,
  channel?: string,
  experiment?: string,
  branch?: string,
  startDate?: string | null,
  endDate?: string | null,
): Promise<CTRData | undefined> {
  switch (platform) {
    case "fenix":
      return getAndroidCTRPercentData(
        id,
        template,
        channel,
        experiment,
        branch,
        startDate,
        endDate,
      );
    default:
      return getDesktopCTRPercentData(
        id,
        template,
        channel,
        experiment,
        branch,
        startDate,
        endDate,
      );
  }
}