Get Environment Usage
GET
/v1/environments/{id}/usageGet an environment's current usage.
Request
Path Params
id
string
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
required
type
string
required
attributes
object
required
Example
{
"data": {
"id": 1785,
"type": "environment_usage",
"attributes": {
"billing_period": {
"from": "2024-04-09T14:08:07.787292Z",
"to": "2024-05-09T14:08:07.787440Z"
},
"storage": {
"used": 0,
"left": 4096,
"available": 4096,
"percent_used": 0,
"threshold_warning": false
},
"memory_limit": {
"used": 256,
"available": 256
},
"dynamic_requests": {
"used": 0,
"left": 0,
"available": 0,
"percent_used": 0,
"threshold_warning": false
},
"peak_dynamic_requests": {
"used": 0
}
}
}
}
Modified at 4 months ago