GET
/
v2
/
usage
/
function
/
{organization_name}
/
{function_name}
curl --request GET \
  --url https://mango.sievedata.com/v2/usage/function/{organization_name}/{function_name} \
  --header 'X-API-Key: <api-key>'
{
  "cpu": {
    "cost_dollars": 14.74,
    "compute_seconds": 1192.671
  },
  "total_compute_seconds": 1192.671,
  "total_cost_dollars": 14.74
}

Request

This endpoint retrieves usage statistics for your’s organization usage of a specific function, filtered by the provided start and end timestamps.

organization_name
string
required

name of Sieve organization.

function_name
string
required

name of Sieve model.

start_timestamp
int

The start timestamp for filtering the usage data. If not provided, the current billing period will be used.

end_timestamp
int

The end timestamp for filtering the usage data. If not provided, the current billing period will be used.

output
string
  • cost Return cost in dollars.
  • compute Return CPU/GPU time in seconds.

Response

Was this page helpful?