useEgressQuota
useEgressQuota(
props):UseQueryResult<DataSetStats,Error>
Defined in: synapse-react/src/warm-storage/use-egress-quota.ts:37
Get the egress quota for a data set from FilBeam.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
props | UseEgressQuotaProps | The props to use. |
Returns
Section titled “Returns”UseQueryResult<DataSetStats, Error>
The egress quota for the data set.
Example
Section titled “Example”const { data: egressQuota, isLoading } = useEgressQuota({ dataSetId: 123n })if (egressQuota) { console.log(`CDN Egress: ${egressQuota.cdnEgressQuota}`) console.log(`Cache Miss Egress: ${egressQuota.cacheMissEgressQuota}`)}