Compute
POST/v2/metrics/
Compute a metric on a single datum.
Parameters:
- metric: The metric name and arguments to compute.
Returns:
- The computed metric value.
Raises:
- HTTPException 400: If there is an error computing the metric.
- HTTPException 500: If there is an error computing the metric.
Request
- application/json
Body
required
metric Metric (string)required
kwargs objectrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...