Credit allocation rule summary
POST/license/api/v1/credit-allocation-rule-summary
Get credit allocation rule summary.
Request
- application/json
Body
timeRange object
Time range for credit allocation rule request
Possible values: [relative
, absolute
, to_now
, from_now
]
One of 'relative', 'absolute', 'to_now', or 'from_now'
value object
Time range value for credit allocation rule request. For relative, provide an object with unit and amount fields. For absolute, provide an object with startTime and endTime fields. For to_now or from_now, provide a string time unit.
Possible values: [hour
, day
, week
, month
, year
]
Time unit when type=relative, to_now, or from_now. The unit 'week' is only supported when type=relative.
Possible values: >= 1
Number of time units when type=relative
Start time when type=absolute. startTime must be milli-seconds since epoch.
End time when type=absolute. endTime must be milli-seconds since epoch.
Responses
- 200
- 400
Success
- */*
- Schema
- Example (from schema)
Schema
Purchased credits
Credits used for the time period
{
"purchased": 0,
"usage": 0
}
invalid_parameter_value
- */*
- Schema
- Example (from schema)
Schema
timestamp
Http status
Error message
Error message
Request path
{
"timestamp": "string",
"status": 0,
"error": "string",
"message": "string",
"path": "string"
}