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

Request

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

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?