Home / Function/ Egress() — supabase Function Reference

Egress() — supabase Function Reference

Architecture documentation for the Egress() function in Egress.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  0dc955f3_7584_b1cb_b02e_dd2d6222000b["Egress()"]
  f313d58a_c706_9bf3_eb3c_2de6b61f112e["dailyUsageToDataPoints()"]
  0dc955f3_7584_b1cb_b02e_dd2d6222000b -->|calls| f313d58a_c706_9bf3_eb3c_2de6b61f112e
  style 0dc955f3_7584_b1cb_b02e_dd2d6222000b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Organization/Usage/Egress.tsx lines 18–58

const Egress = ({
  orgSlug,
  projectRef,
  subscription,
  currentBillingCycleSelected,
  orgDailyStats,
  isLoadingOrgDailyStats,
  startDate,
  endDate,
}: EgressProps) => {
  const chartMeta: {
    [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean }
  } = {
    [PricingMetric.EGRESS]: {
      data: dailyUsageToDataPoints(orgDailyStats, (metric) => metric === PricingMetric.EGRESS),
      margin: 16,
      isLoading: isLoadingOrgDailyStats,
    },
    [PricingMetric.CACHED_EGRESS]: {
      data: dailyUsageToDataPoints(
        orgDailyStats,
        (metric) => metric === PricingMetric.CACHED_EGRESS
      ),
      margin: 16,
      isLoading: isLoadingOrgDailyStats,
    },
  }

  return (
    <UsageSection
      orgSlug={orgSlug}
      projectRef={projectRef}
      categoryKey="egress"
      chartMeta={chartMeta}
      subscription={subscription}
      currentBillingCycleSelected={currentBillingCycleSelected}
      startDate={startDate}
      endDate={endDate}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Egress() do?
Egress() is a function in the supabase codebase.
What does Egress() call?
Egress() calls 1 function(s): dailyUsageToDataPoints.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free